Dekoh platform API

dekoh.portal.fwk.persistence
Class TaggedDioCollection

java.lang.Object
  extended by dekoh.portal.fwk.persistence.DigitalObject
      extended by dekoh.portal.fwk.persistence.DioCollection
          extended by dekoh.portal.fwk.persistence.TaggedDioCollection

public class TaggedDioCollection
extends DioCollection

Since:
Jan 4, 2007

Field Summary
 
Fields inherited from class dekoh.portal.fwk.persistence.DioCollection
digitalObjects
 
Fields inherited from class dekoh.portal.fwk.persistence.DigitalObject
addTime, contentCreationTime, description, id, isProtected, lastUpdated, name, owner, type
 
Constructor Summary
TaggedDioCollection(DIOEntityManager em, int resultSetPageSize, int pageNumber, int total, String applicationId, LocalUser owner, String[] tags)
          Create a collection of all DigitalObject that are tagged with *all* tags passed to this constructor.
TaggedDioCollection(DIOEntityManager em, int resultSetPageSize, int pageNumber, int total, String applicationId, String[] tags)
           
TaggedDioCollection(DIOEntityManager em, LocalUser owner, String[] tags)
          See TaggedDioCollection.TaggedDioCollection(DIOEntityManager, LocalUser, String[]) TaggedDioCollection(em, default_max_resultset_size, tags}
 
Method Summary
 DigitalObject getDigitalObject(int dioId)
           
 Page getDigitalObjectPage()
           
 Set getDigitalObjects()
          Consider using DioCollection.addDigitalObject(DigitalObject) to add new DigitalObjects to this collection.
 
Methods inherited from class dekoh.portal.fwk.persistence.DioCollection
addDigitalObject, getAllChildrenCount, getChildCollectionIds, getChildrenCountOfType, getChildrenOfAType, getCollectionChildren, getCollectionChildren, getCollectionChildrenCount, getDigitalObject, getDigitalObjectPage, getDigitalObjectPage, getFirstChildCollection, getFirstChildDigitalObjectId, getFirstChildDigitalObjectId, getNonCollectionChildren, getNonCollectionChildren, getNonCollectionChildrenCount, getNonCollectionChildrenIds, getNonCollectionChildrenIds, getNonCollectionChildrenQuery, getPreviewDigitalObject, getPreviewDigitalObjectAcessPath, getSortPref, getTemplateProperties, iterator, removeDigitalObject, replacePreviewDioInCollectionHierarchy, replacePreviewDioInCollectionHierarchy, setDigitalObjects, setOrAddTemplateProperties, setPreviewDioInCollectionHierarchy
 
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
 

Constructor Detail

TaggedDioCollection

public TaggedDioCollection(DIOEntityManager em,
                           LocalUser owner,
                           String[] tags)
See TaggedDioCollection.TaggedDioCollection(DIOEntityManager, LocalUser, String[]) TaggedDioCollection(em, default_max_resultset_size, tags}

Parameters:
em - - DIOEntityManager
owner -
tags - - array of tags

TaggedDioCollection

public TaggedDioCollection(DIOEntityManager em,
                           int resultSetPageSize,
                           int pageNumber,
                           int total,
                           String applicationId,
                           String[] tags)

TaggedDioCollection

public TaggedDioCollection(DIOEntityManager em,
                           int resultSetPageSize,
                           int pageNumber,
                           int total,
                           String applicationId,
                           LocalUser owner,
                           String[] tags)
Create a collection of all DigitalObject that are tagged with *all* tags passed to this constructor. For instance
 new TaggedDioCollection(em, "moscone center","san francisco" )
 
wiil return all DigitalObjects tagged with words moscone center and san francisco Name of this collection will be set to toString() of tags.

Parameters:
em - - DIOEntityManager
resultSetPageSize - - number of results per page.
pageNumber - - the results to get from
total -
applicationId -
owner -
tags - list of tags to look for
Method Detail

getDigitalObjectPage

public Page getDigitalObjectPage()

getDigitalObject

public DigitalObject getDigitalObject(int dioId)
Overrides:
getDigitalObject in class DioCollection
Parameters:
dioId - primary key of the digital object looking for
Returns:
Digital object entity if it is part of this collection

getDigitalObjects

public Set getDigitalObjects()
Description copied from class: DioCollection
Consider using DioCollection.addDigitalObject(DigitalObject) to add new DigitalObjects to this collection.

Overrides:
getDigitalObjects in class DioCollection
Returns:
current live list of digital objects.

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers