|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainObject
com.arsdigita.domain.ObservableDomainObject
com.arsdigita.kernel.ACSObject
com.arsdigita.versioning.VersionedACSObject
com.arsdigita.cms.ContentItem
com.arsdigita.cms.ContentPage
com.arsdigita.cms.TextPage
com.arsdigita.cms.Article
A class that represents an Article
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
protected static String |
IMAGES
|
static String |
versionId
|
Fields inherited from class com.arsdigita.cms.TextPage |
SUMMARY_SIZE, TEXT_ASSET |
Fields inherited from class com.arsdigita.cms.ContentPage |
LAUNCH_DATE, PAGES_IN_CATEGORY, PAGES_IN_FOLDER, QUERY_CATEGORY_ID, QUERY_PAGE, QUERY_ROOT_ID, QUERY_TYPE, SUMMARY, TITLE |
Fields inherited from class com.arsdigita.cms.ContentItem |
ANCESTORS, AUDITING, CHILDREN, CONTENT_SECTION, CONTENT_TYPE, DRAFT, DRAFT_VERSION, LANGUAGE, LIVE, NAME, PARENT, PENDING, VERSION, VERSIONS |
Fields inherited from class com.arsdigita.versioning.VersionedACSObject |
IS_DELETED, MASTER |
Fields inherited from class com.arsdigita.kernel.ACSObject |
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE |
Constructor Summary | |
Article()
Default constructor. |
|
Article(BigDecimal id)
Constructor. |
|
Article(com.arsdigita.persistence.DataObject obj)
|
|
Article(com.arsdigita.persistence.OID oid)
Constructor. |
|
Article(String type)
|
Method Summary | |
boolean |
addImage(ImageAsset image,
String caption)
Add an image to this article. |
void |
clearImages()
Unassociate all images from this article |
String |
getBaseDataObjectType()
|
String |
getCaption(ImageAsset image)
Deprecated. Do not use this method, it will always return the first available caption regardless of what image is in use. Use ArticleImageAssnCollection.getCaption() or ArticleImageAssociation.getCaption(). |
ImageAssetCollection |
getImages()
Get the images for this article |
protected void |
propagateMaster(com.arsdigita.versioning.VersionedACSObject master)
|
boolean |
removeImage(ImageAsset image)
Remove a image from this article. |
Methods inherited from class com.arsdigita.cms.TextPage |
getSearchSummary, getTextAsset, setTextAsset |
Methods inherited from class com.arsdigita.cms.ContentPage |
getContentBundle, getDisplayName, getLaunchDate, getPagesInSectionQuery, getPagesInSectionQuery, getPagesInSectionQuery, getPagesInSectionQuery, getTitle, setLaunchDate, setName, setPagesQueryParameters, setPagesQueryParameters, setTitle |
Methods inherited from class com.arsdigita.versioning.VersionedACSObject |
applyTag, applyUniqueTag, autoPropagateMaster, getMaster, getRolledBackTo, getTransactions, getTransactions, isMaster, isRolledBack, isSubtype, permanentlyDelete, recordAttributeChange, rollBackTo, rollBackTo, rollForward, save, setMaster, trackChanges |
Methods inherited from class com.arsdigita.kernel.ACSObject |
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID |
Methods inherited from class com.arsdigita.domain.ObservableDomainObject |
addObserver, getObservers |
Methods inherited from class com.arsdigita.domain.DomainObject |
add, add, addToAssociation, afterDelete, clear, delete, disconnect, equals, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String versionId
public static final String BASE_DATA_OBJECT_TYPE
protected static final String IMAGES
Constructor Detail |
public Article()
public Article(com.arsdigita.persistence.OID oid) throws com.arsdigita.domain.DataObjectNotFoundException
DataObject
is retrieved
from the persistent storage mechanism with an OID
specified by oid.
oid
- The OID
for the retrieved
DataObject
.public Article(String type)
public Article(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
DataObject
is retrieved
from the persistent storage mechanism with an OID
specified by id and
Article.BASE_DATA_OBJECT_TYPE
.
id
- The id
for the retrieved
DataObject
.public Article(com.arsdigita.persistence.DataObject obj)
Method Detail |
public String getBaseDataObjectType()
getBaseDataObjectType
in class TextPage
public boolean addImage(ImageAsset image, String caption)
image
- the image to addcaption
- the caption for the image
public String getCaption(ImageAsset image)
public boolean removeImage(ImageAsset image)
public ImageAssetCollection getImages()
public void clearImages()
protected void propagateMaster(com.arsdigita.versioning.VersionedACSObject master)
propagateMaster
in class TextPage
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |