|
|||||||||||
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
This class extends content
item
with the additional attributes name and title. The name
attribute is used in generating the URL for this content page.
Field Summary | |
static String |
BASE_DATA_OBJECT_TYPE
|
static String |
LAUNCH_DATE
|
protected static String |
PAGES_IN_CATEGORY
|
protected static String |
PAGES_IN_FOLDER
|
static String |
QUERY_CATEGORY_ID
|
static String |
QUERY_PAGE
|
static String |
QUERY_ROOT_ID
|
static String |
QUERY_TYPE
|
static String |
SUMMARY
|
static String |
TITLE
|
static String |
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 | |
ContentPage()
Default constructor. |
|
ContentPage(BigDecimal id)
Constructor. |
|
ContentPage(com.arsdigita.persistence.DataObject obj)
|
|
ContentPage(com.arsdigita.persistence.OID oid)
Constructor. |
|
ContentPage(String type)
|
Method Summary | |
String |
getBaseDataObjectType()
|
ContentBundle |
getContentBundle()
|
String |
getDisplayName()
Fetch the display name of the content item. |
Date |
getLaunchDate()
|
static com.arsdigita.persistence.DataQuery |
getPagesInSectionQuery(ContentSection s,
String context)
Deprecated. This doesn't filter its results based on the permissions of the current user. Use getPagesInSectionQuery( ContentSection s, String context,
OID userOID ) instead. |
static com.arsdigita.persistence.DataQuery |
getPagesInSectionQuery(ContentSection s,
String context,
com.arsdigita.categorization.Category cat)
Deprecated. This doesn't filter its results based on the permissions of the current user. Use getPagesInSectionQuery( ContentSection s, String context, Category cat, OID userOID )
instead. |
static com.arsdigita.persistence.DataQuery |
getPagesInSectionQuery(ContentSection s,
String context,
com.arsdigita.categorization.Category cat,
com.arsdigita.persistence.OID userOID)
Retrieve all pages within the given content section that belong to the given category |
static com.arsdigita.persistence.DataQuery |
getPagesInSectionQuery(ContentSection s,
String context,
com.arsdigita.persistence.OID userOID)
Retrieve all pages within the given content section. |
String |
getSearchSummary()
|
String |
getTitle()
|
void |
setLaunchDate(Date ldate)
|
void |
setName(String name)
Sets the name of the content page. |
protected static com.arsdigita.persistence.DataQuery |
setPagesQueryParameters(String name,
ContentSection s,
String context)
Deprecated. This doesn't filter its results based on the permissions of the current user. Use setPagesQueryParameters( String name, ContentSection s, String context, OID userOID )
instead. |
protected static com.arsdigita.persistence.DataQuery |
setPagesQueryParameters(String name,
ContentSection s,
String context,
com.arsdigita.persistence.OID userOID)
|
void |
setTitle(String value)
|
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 versionId
public static final String BASE_DATA_OBJECT_TYPE
public static final String TITLE
public static final String SUMMARY
public static final String LAUNCH_DATE
protected static final String PAGES_IN_FOLDER
protected static final String PAGES_IN_CATEGORY
public static final String QUERY_PAGE
public static final String QUERY_TYPE
public static final String QUERY_ROOT_ID
public static final String QUERY_CATEGORY_ID
Constructor Detail |
public ContentPage()
public ContentPage(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 ContentPage(BigDecimal id) throws com.arsdigita.domain.DataObjectNotFoundException
DataObject
is retrieved
from the persistent storage mechanism with an OID
specified by id and
ContentPage.BASE_DATA_OBJECT_TYPE
.
id
- The id
for the retrieved
DataObject
.public ContentPage(com.arsdigita.persistence.DataObject obj)
public ContentPage(String type)
Method Detail |
public String getBaseDataObjectType()
getBaseDataObjectType
in class ContentItem
public String getDisplayName()
ContentItem
ContentItem
is the name property.
getDisplayName
in class ContentItem
public void setName(String name)
ContentBundle
this method sets the bundle's
name as well.
setName
in class ContentItem
name
- The name of the content itempublic final ContentBundle getContentBundle()
public String getTitle()
public void setTitle(String value)
public Date getLaunchDate()
public void setLaunchDate(Date ldate)
protected static com.arsdigita.persistence.DataQuery setPagesQueryParameters(String name, ContentSection s, String context)
setPagesQueryParameters( String name, ContentSection s, String context, OID userOID )
instead.
protected static com.arsdigita.persistence.DataQuery setPagesQueryParameters(String name, ContentSection s, String context, com.arsdigita.persistence.OID userOID)
public static com.arsdigita.persistence.DataQuery getPagesInSectionQuery(ContentSection s, String context, com.arsdigita.categorization.Category cat)
getPagesInSectionQuery( ContentSection s, String context, Category cat, OID userOID )
instead.
s
- the sectioncontext
- if ContentItem.LIVE
, retrieve only live items.
If ContentItem.DRAFT
, return only draft itemscat
- the category
public static com.arsdigita.persistence.DataQuery getPagesInSectionQuery(ContentSection s, String context, com.arsdigita.categorization.Category cat, com.arsdigita.persistence.OID userOID)
s
- the sectioncontext
- if ContentItem.LIVE
, retrieve only live items.
If ContentItem.DRAFT
, return only draft itemscat
- the categoryuserOID
- the OID of the current user
public static com.arsdigita.persistence.DataQuery getPagesInSectionQuery(ContentSection s, String context)
getPagesInSectionQuery( ContentSection s, String context,
OID userOID )
instead.
s
- the sectioncontext
- if ContentItem.LIVE
, retrieve only live items.
If ContentItem.DRAFT
, return only draft items
public static com.arsdigita.persistence.DataQuery getPagesInSectionQuery(ContentSection s, String context, com.arsdigita.persistence.OID userOID)
s
- the sectioncontext
- if ContentItem.LIVE
, retrieve only live items.
If ContentItem.DRAFT
, return only draft itemsuserOID
- the OID of the current user
public String getSearchSummary()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |