|
|||||||||||
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
com.arsdigita.cms.Folder.ItemCollection
A collection of items that can be filtered to return only folders or only nonfolders.
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 | |
Folder.ItemCollection(com.arsdigita.persistence.DataQuery query)
Convenience Constructor that always sorts the collection by isFolder and ID |
|
Folder.ItemCollection(com.arsdigita.persistence.DataQuery query,
boolean bSort)
Constructor |
Method Summary | |
void |
addFolderFilter(boolean v)
Filter the collection by whether items are folders or not. |
BigDecimal |
getBundleID()
Only used on CollectionS returned by getPrimaryInstance() |
Date |
getCreationDate()
For performance reaons, override superclass methods and try to get the audit info without instantiating a content item. |
String |
getDisplayName()
Return the display name for the current object. |
Date |
getLastModifiedDate()
|
String |
getTypeLabel()
Return the pretty name of the content type of the current item. |
boolean |
isFolder()
Return true if the current item in the collection is a
folder. |
boolean |
isLive()
|
void |
setRange(Integer beginIndex,
Integer endIndex)
Sets the range of the dataquery. |
Methods inherited from class com.arsdigita.cms.ItemCollection |
addNameFilter, addVersionFilter, getContentItem, getDomainObject, getID, getLanguage, getName, getVersion |
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, setReturnsLowerBound, setReturnsUpperBound, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Folder.ItemCollection(com.arsdigita.persistence.DataQuery query, boolean bSort)
query
- the Data Query to use to retrieve the collectionbSort
- whether to sort the collection by isFolder and IDpublic Folder.ItemCollection(com.arsdigita.persistence.DataQuery query)
query
- the Data Query to use to retrieve the collectionMethod Detail |
public void setRange(Integer beginIndex, Integer endIndex)
beginIndex
- The start indexendIndex
- The end indexpublic String getDisplayName()
ItemCollection
ACSObject.DISPLAY_NAME
that is
used. Otherwise, the underlying content item is instantiated, and its
display name is returned.
getDisplayName
in class ItemCollection
public Date getCreationDate()
getCreationDate
in class ItemCollection
public Date getLastModifiedDate()
getLastModifiedDate
in class ItemCollection
public String getTypeLabel()
public void addFolderFilter(boolean v)
v
- true
if the data query should only list folders,
false
if the data query should only list non-folder
items.public boolean isFolder()
true
if the current item in the collection is a
folder.
true
if the current item in the collection is a
folder.public boolean isLive()
public BigDecimal getBundleID()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |