|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.domain.DomainQuery
com.arsdigita.domain.DomainCollection
com.arsdigita.cms.ItemCollection
Represents a set of content
items
.
DomainCollection
,
DataCollection
Field Summary |
Fields inherited from class com.arsdigita.domain.DomainCollection |
m_dataCollection, versionId |
Fields inherited from class com.arsdigita.domain.DomainQuery |
m_dataQuery |
Constructor Summary | |
ItemCollection(com.arsdigita.persistence.DataCollection dataCollection)
Constructor. |
Method Summary | |
void |
addNameFilter(String name)
Filter items by name and leave only those in the collection whose name equals the given value. |
void |
addVersionFilter(boolean live)
Filter items by version and leave only those in the collection that are live (if true is passed in) or that are draft items
(if false ) is passed in. |
ContentItem |
getContentItem()
Returns a ContentItem for the current position in
the collection. |
Date |
getCreationDate()
|
String |
getDisplayName()
Return the display name for the current object. |
com.arsdigita.domain.DomainObject |
getDomainObject()
Returns a DomainObject for the current position in
the collection. |
BigDecimal |
getID()
Return the object ID for the content item at the current position in the collection. |
String |
getLanguage()
Return the language of the content item at the current position in the collection. |
Date |
getLastModifiedDate()
|
String |
getName()
Return the name of the content item at the current position in the collection. |
String |
getVersion()
Return the version of the content item at the current position in the collection. |
Methods inherited from class com.arsdigita.domain.DomainQuery |
addEqualsFilter, addFilter, addFilter, addInSubqueryFilter, addInSubqueryFilter, addNotEqualsFilter, addNotInSubqueryFilter, addOrder, addOrderWithNull, addPath, alias, clearFilter, clearOrder, close, first, get, getFilterFactory, getParameter, getPosition, getPropertyValues, getType, hasProperty, isAfterLast, isBeforeFirst, isEmpty, isFirst, isLast, last, next, previous, removeFilter, reset, rewind, setFilter, setOrder, setParameter, setRange, setRange, setReturnsLowerBound, setReturnsUpperBound, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ItemCollection(com.arsdigita.persistence.DataCollection dataCollection)
Method Detail |
public com.arsdigita.domain.DomainObject getDomainObject()
DomainObject
for the current position in
the collection.
public ContentItem getContentItem()
ContentItem
for the current position in
the collection.
public BigDecimal getID()
public String getName()
public String getDisplayName()
ACSObject.DISPLAY_NAME
that is
used. Otherwise, the underlying content item is instantiated, and its
display name is returned.
public String getVersion()
public String getLanguage()
public void addNameFilter(String name)
name
- the name for which items should be filtered.public void addVersionFilter(boolean live)
true
is passed in) or that are draft items
(if false
) is passed in.
live
- true
if only live items should remain in the
collection, false
if only draft items should remain.public Date getLastModifiedDate()
public Date getCreationDate()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |