|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdekoh.portal.fwk.persistence.DigitalObject
dekoh.portal.fwk.persistence.DioCollection
public class DioCollection
DioCollection represents the collection of DigitalObjects organised in a LinkedHashSet.
The Policy of organising the DigitaObjects in a collection is left to the Content Application.
| Field Summary | |
|---|---|
protected Set |
digitalObjects
|
| Fields inherited from class dekoh.portal.fwk.persistence.DigitalObject |
|---|
addTime, contentCreationTime, description, id, isProtected, lastUpdated, name, owner, type |
| Constructor Summary | |
|---|---|
protected |
DioCollection()
|
|
DioCollection(String collectionName,
Properties dioProperties,
String applicationId)
|
|
DioCollection(String collectionName,
String applicationId)
|
|
DioCollection(String collectionName,
String applicationId,
int previewDioId,
DIOEntityManager em)
Creates the collection by given name, and sets preview digital object of this collection. |
|
DioCollection(String collectionName,
String applicationId,
LocalUser owner)
|
|
DioCollection(String collectionName,
String applicationId,
String aPoprertyName,
String propertyValue)
|
|
DioCollection(String collectionName,
String applicationId,
String aPoprertyName,
String propertyValue,
LocalUser owner)
|
| Method Summary | |
|---|---|
void |
addDigitalObject(DigitalObject digitalObject)
Adds a given DigitalObject to this collection. |
int |
getAllChildrenCount(DIOEntityManager em)
Gets the number of DigitalObjects in this collection. |
List |
getChildCollectionIds(DIOEntityManager em)
Gets dio ids of all collections that are part of this collection. |
int |
getChildrenCountOfType(Class dioEntityClass,
DIOEntityManager em)
Gets the number of DigitalObjects of type Dio that are part of this collection. |
List |
getChildrenOfAType(Class dioEntityClass,
DIOEntityManager em)
Gets DigitalObjects of type Dio that are part of this collection. |
List |
getCollectionChildren(DIOEntityManager em)
Gets the DioCollections that are part of this collection. |
List |
getCollectionChildren(DIOEntityManager em,
Class clazz)
Deprecated. extending DioCollection is not needed, as each "type" can be qualified by applicationId |
int |
getCollectionChildrenCount(DIOEntityManager em)
Gets the count of DioCollections that are part of this collection. |
DigitalObject |
getDigitalObject(Class entityClass,
int id)
|
DigitalObject |
getDigitalObject(int dioId)
|
Page |
getDigitalObjectPage(DIOEntityManager em,
Class cls,
int pageNumber,
int pageSize)
Gets the Page Page Object for the current collection. |
Page |
getDigitalObjectPage(DIOEntityManager em,
Class cls,
int pageNumber,
int pageSize,
Query childDioPaginatedQuery)
|
Set |
getDigitalObjects()
Deprecated. use DioCollection.getDigitalObjectPage(DIOEntityManager,Class,int,int) |
DioCollection |
getFirstChildCollection(DIOEntityManager em)
|
int |
getFirstChildDigitalObjectId(DIOEntityManager em)
|
int |
getFirstChildDigitalObjectId(DIOEntityManager em,
Query findChildren)
|
List |
getNonCollectionChildren(DIOEntityManager em)
Gets the list of non-collection children whose DType is not DioCollection |
List |
getNonCollectionChildren(DIOEntityManager em,
Query query)
|
int |
getNonCollectionChildrenCount(DIOEntityManager em)
Gets the count of DigitalObjects that are not of type DioCollection. |
List |
getNonCollectionChildrenIds(DIOEntityManager em)
Gets dio ids of all digital objects(except sub collections) that are part of this collection. |
List |
getNonCollectionChildrenIds(DIOEntityManager em,
Query findNonCollectionChildrenIds)
|
Query |
getNonCollectionChildrenQuery(DIOEntityManager em)
|
DigitalObject |
getPreviewDigitalObject(DIOEntityManager em,
Class cls)
|
DioCollectionQueryInterface.DioWithAccessPath |
getPreviewDigitalObjectAcessPath(AccessPath collectionAccessPath,
DIOEntityManager em,
Class cls)
|
String |
getSortPref()
|
Properties |
getTemplateProperties()
Gets the diocollection properties |
Iterator |
iterator()
|
boolean |
removeDigitalObject(DigitalObject digitalObject)
|
void |
replacePreviewDioInCollectionHierarchy(DigitalObject oldPreviewDio,
DIOEntityManager em)
|
void |
replacePreviewDioInCollectionHierarchy(DigitalObject oldPreviewDio,
Query newPreviewDioQuery,
DIOEntityManager em)
Changes the preview of a DioCollection and of all the collection this collection is a part of. |
void |
setDigitalObjects(Set digitalObjects)
|
void |
setOrAddTemplateProperties(Properties templateProperties)
Set or changes the template properties to the current collection |
void |
setPreviewDioInCollectionHierarchy(int childDioRepresntingPreview,
DIOEntityManager em)
|
| Methods inherited from class dekoh.portal.fwk.persistence.DigitalObject |
|---|
_getDioProperty, addTag, addTag, addTags, addTags, equals, getAddTime, getCollectionCount, getCollectionIds, getContentCreationTime, getDescription, getDioCollections, getDioProperties, getDioProperty, getFirstCollection, getId, getLastCollection, getLastUpdated, getName, getOwner, getRating, getTagNames, getTags, getType, hashCode, isProtected, remove, remove, removeTag, removeTag, removeTags, setAddTime, setContentCreationTime, setDescription, setDioProperties, setLastUpdated, setName, setOrAddDioProperty, setOwner, setProtected, setRating, setTags, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Set digitalObjects
| Constructor Detail |
|---|
protected DioCollection()
public DioCollection(String collectionName,
String applicationId,
LocalUser owner)
public DioCollection(String collectionName,
String applicationId,
String aPoprertyName,
String propertyValue)
public DioCollection(String collectionName,
String applicationId,
String aPoprertyName,
String propertyValue,
LocalUser owner)
public DioCollection(String collectionName,
String applicationId)
public DioCollection(String collectionName,
Properties dioProperties,
String applicationId)
public DioCollection(String collectionName,
String applicationId,
int previewDioId,
DIOEntityManager em)
dioId passed is a DioCollection then the preview digital of that collection is copied.
Otherwise, the passed dioId becomes the preview.
collectionName - name of the collection being createdapplicationId - previewDioId - em -
NoSuchEntityException - if there is no DigitalObject with given dioId| Method Detail |
|---|
public DigitalObject getDigitalObject(int dioId)
dioId - primary key of the digital object looking for
DigitalObjectNotInCollectionException - if the digitalObject by given id does not exist in this collection
public DigitalObject getDigitalObject(Class entityClass,
int id)
public Set getDigitalObjects()
DioCollection.getDigitalObjectPage(DIOEntityManager,Class,int,int)
DioCollection.addDigitalObject(DigitalObject) to add new DigitalObjects to this collection.
public void setDigitalObjects(Set digitalObjects)
public boolean removeDigitalObject(DigitalObject digitalObject)
digitalObject -
public void addDigitalObject(DigitalObject digitalObject)
digitalObject -
AccessDeniedException - if digital object is owned by a user and collection is not ownedpublic Iterator iterator()
public int getAllChildrenCount(DIOEntityManager em)
em -
public int getChildrenCountOfType(Class dioEntityClass,
DIOEntityManager em)
dioEntityClass - em -
public int getCollectionChildrenCount(DIOEntityManager em)
em -
public int getFirstChildDigitalObjectId(DIOEntityManager em)
public int getFirstChildDigitalObjectId(DIOEntityManager em,
Query findChildren)
public Query getNonCollectionChildrenQuery(DIOEntityManager em)
public DioCollection getFirstChildCollection(DIOEntityManager em)
public DioCollectionQueryInterface.DioWithAccessPath getPreviewDigitalObjectAcessPath(AccessPath collectionAccessPath,
DIOEntityManager em,
Class cls)
public DigitalObject getPreviewDigitalObject(DIOEntityManager em,
Class cls)
public void setPreviewDioInCollectionHierarchy(int childDioRepresntingPreview,
DIOEntityManager em)
public int getNonCollectionChildrenCount(DIOEntityManager em)
em -
public List getNonCollectionChildrenIds(DIOEntityManager em)
em -
public List getNonCollectionChildrenIds(DIOEntityManager em,
Query findNonCollectionChildrenIds)
public List getChildCollectionIds(DIOEntityManager em)
em -
public List getChildrenOfAType(Class dioEntityClass,
DIOEntityManager em)
dioEntityClass - em -
public List getCollectionChildren(DIOEntityManager em)
em -
public List getCollectionChildren(DIOEntityManager em,
Class clazz)
em - clazz -
public Properties getTemplateProperties()
public void setOrAddTemplateProperties(Properties templateProperties)
templateProperties - template properties
public Page getDigitalObjectPage(DIOEntityManager em,
Class cls,
int pageNumber,
int pageSize)
Page Object for the current collection.
em - Entitymanagercls - DigitalObject classpageNumber - Page to access, if 0 means get all the digital objectspageSize - page size
Page with the above parameters
public Page getDigitalObjectPage(DIOEntityManager em,
Class cls,
int pageNumber,
int pageSize,
Query childDioPaginatedQuery)
public List getNonCollectionChildren(DIOEntityManager em)
em - DIOEntitymanage instance.
public List getNonCollectionChildren(DIOEntityManager em,
Query query)
public void replacePreviewDioInCollectionHierarchy(DigitalObject oldPreviewDio,
DIOEntityManager em)
public void replacePreviewDioInCollectionHierarchy(DigitalObject oldPreviewDio,
Query newPreviewDioQuery,
DIOEntityManager em)
oldPreviewDio - cannot be null.newPreviewDioQuery - query to determine the new previewem - public String getSortPref()
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers