|
|||||||||||
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.contenttypes.MultiPartArticle
CMS content type that represents a multi-part article.
Field Summary | |
static String |
ARTICLE
|
static String |
BASE_DATA_OBJECT_TYPE
data object type for this domain object |
static int |
DOWN
|
static String |
RANK
named query parameters |
static String |
SECTION
|
static String |
SECTIONS
|
static String |
SUMMARY
PDL property names |
static int |
SUMMARY_LENGTH
|
static int |
UP
rank direction changes |
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, TITLE, versionId |
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 | |
MultiPartArticle()
Default constructor. |
|
MultiPartArticle(BigDecimal id)
Constructor. |
|
MultiPartArticle(com.arsdigita.persistence.DataObject obj)
Constructor. |
|
MultiPartArticle(com.arsdigita.persistence.OID id)
Constructor. |
|
MultiPartArticle(String type)
Constructor. |
Method Summary | |
void |
addSection(ArticleSection section)
Add the specified ArticleSection to this object. |
void |
addSection(ArticleSection section,
int rank)
|
void |
addSection(ArticleSection section,
Integer rank)
Add the specified ArticleSection to this object. |
void |
beforeSave()
|
void |
changeSectionRank(ArticleSection section,
BigDecimal dest)
|
void |
changeSectionRank(ArticleSection source,
int destRank)
Change the rank of the sections with the given id within this object. |
void |
changeSectionRank(BigDecimal sectionID,
BigDecimal dest)
|
void |
changeSectionRank(BigDecimal sectionID,
int rank)
Change the rank of a given ArticleSection in this object. |
String |
getBaseDataObjectType()
|
protected int |
getMaxRank()
Returns the highest section rank. |
protected int |
getRank(BigDecimal sectionID)
|
String |
getSearchSummary()
|
ArticleSectionCollection |
getSections()
Get the collection of sections. |
String |
getSummary()
Accessor. |
void |
removeSection(ArticleSection section)
Remove the given ArticleSection from this object. |
void |
setSummary(String summary)
Accessor. |
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.cms.ContentItem |
addCategory, addPendingVersion, afterSave, assertDraft, assertLive, assertMaster, assertPending, beforeDelete, canPublishToFS, copy, copy, copyProperty, copyProperty, copyServices, copyServicesFrom, createLiveVersion, createPendingVersion, get, getCategories, getCategoryCollection, getChildren, getContentSection, getContentType, getCreationDate, getCreationIP, getCreationUser, getDraftVersion, getLanguage, getLastModifiedDate, getLastModifiedIP, getLastModifiedUser, getLifecycle, getLiveVersion, getLocale, getName, getParent, getPath, getPathInfo, getPathInfo, getPathNoJsp, getPendingVersions, getPublicVersion, getVersion, getWorkingVersion, initialize, isDraftVersion, isLive, isLiveVersion, isPendingVersion, isPublished, makeCopy, promotePendingVersion, publish, publishToFS, removeCategory, removeLifecycle, removePendingVersion, set, setContentSection, setContentType, setDefaultCategory, setLanguage, setLifecycle, setLive, setLiveVersion, setParent, setVersion, setVersionRecursively, unpublish, unpublishFromFS |
Methods inherited from class com.arsdigita.versioning.VersionedACSObject |
applyTag, applyUniqueTag, autoPropagateMaster, getMaster, getRolledBackTo, getTransactions, getTransactions, isMaster, isRolledBack, isSubtype, permanentlyDelete, propagateMaster, 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 SUMMARY
public static final String SECTIONS
public static final int UP
public static final int DOWN
public static final String BASE_DATA_OBJECT_TYPE
public static final String RANK
public static final String ARTICLE
public static final String SECTION
public static final int SUMMARY_LENGTH
Constructor Detail |
public MultiPartArticle()
public MultiPartArticle(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
id
- the id of the object to retrievepublic MultiPartArticle(com.arsdigita.persistence.OID id) throws com.arsdigita.domain.DataObjectNotFoundException
id
- the object id of the object to retrievepublic MultiPartArticle(com.arsdigita.persistence.DataObject obj)
obj
- the object data to usepublic MultiPartArticle(String type)
Method Detail |
public void beforeSave()
public String getBaseDataObjectType()
public String getSummary()
public void setSummary(String summary)
public void addSection(ArticleSection section)
section
- the ArticleSection to addpublic void addSection(ArticleSection section, Integer rank)
section
- the ArticleSection to addrank
- the rank of the ArticleSection in the association.public void addSection(ArticleSection section, int rank)
public ArticleSectionCollection getSections()
public void removeSection(ArticleSection section)
section
- the ArticleSection to removepublic void changeSectionRank(BigDecimal sectionID, int rank)
public void changeSectionRank(BigDecimal sectionID, BigDecimal dest)
public void changeSectionRank(ArticleSection section, BigDecimal dest)
protected int getRank(BigDecimal sectionID)
public void changeSectionRank(ArticleSection source, int destRank)
source
- the section to reorderprotected int getMaxRank()
public String getSearchSummary()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |