public class ExplorerResourcesDAO extends ExplorerResourcesDAO
ExplorerResourcesDAO
to handle shared explorer resources and page attachments.Modifier and Type | Field and Description |
---|---|
protected SiteManager |
_siteManager
Site manager
|
_cocoonContext, _context, _currentUserProvider, _explorerApplicationEP, _i18nUtils, _metadataPopulatorEP, _observationManager, _resolver, _rightManager, _threadDAO, _tikaProvider, _userHelper, RIGHTS_COLLECTION_ADD, RIGHTS_COLLECTION_DELETE, RIGHTS_COLLECTION_EDIT, RIGHTS_RESOURCE_ADD, RIGHTS_RESOURCE_COMMENT, RIGHTS_RESOURCE_DELETE, RIGHTS_RESOURCE_EDIT_DC, RIGHTS_RESOURCE_MODERATE_COMMENT, RIGHTS_RESOURCE_RENAME, RIGHTS_RESOURCE_UNLOCK_ALL, ROLE
Constructor and Description |
---|
ExplorerResourcesDAO() |
Modifier and Type | Method and Description |
---|---|
protected Page |
_getParentPage(AmetysObject ao)
Get the parent page of a resource or collection
|
Map<String,Object> |
getDefaultInfoAsRootNode(ExplorerNode rootNode)
Get the necessary default info for a root node.
|
Map<String,Object> |
getExplorerNodeProperties(ExplorerNode node)
Get the explorer node properties
|
Map<String,Object> |
getResourceProperties(Resource resource)
Get the resource properties
|
List<ExplorerNode> |
getResourcesRootNodes()
Get the root nodes for resources
|
Map<String,Object> |
getSharedRootNodeInfo(ExplorerNode sharedRoot)
Get the necessary info for the shared root node.
|
protected Set<String> |
getUserRights(ExplorerNode node)
Get the user rights on the resource collection
|
void |
service(ServiceManager manager) |
_getParentContent
_canAddComment, _canDeleteComment, _canEditComment, _getComment, _getCommentForEditing, _setComment, addCMISCollection, addComment, addResourceCollection, addResourceCollection, checkLock, checkpoint, checkUserRight, contextualize, copyResource, copyResource, createResource, deleteComment, deleteObject, deleteObject, editCMISCollection, editComment, extractResourceMetadata, filterResourcesByRegExp, getCMISProperties, getComment, getComments, getDCMetadata, getDefaultInfoAsRootNode, getNodesInfo, getResourceCollectionType, getRootNodesInfo, getUserRight, hasRight, isCMISCollection, moveObject, moveObject, renameObject, renameObject, renameResource, renameResource, resourceExists, resourceExists, resourceHistory, restoreResource, setDCMetadata, setDCMetadata, updateResource
getLogger, setLogger
protected SiteManager _siteManager
public ExplorerResourcesDAO()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ExplorerResourcesDAO
ServiceException
public List<ExplorerNode> getResourcesRootNodes()
ExplorerResourcesDAO
getResourcesRootNodes
in class ExplorerResourcesDAO
public Map<String,Object> getDefaultInfoAsRootNode(ExplorerNode rootNode)
ExplorerResourcesDAO
getDefaultInfoAsRootNode
in class ExplorerResourcesDAO
rootNode
- The root nodepublic Map<String,Object> getSharedRootNodeInfo(ExplorerNode sharedRoot)
sharedRoot
- The shared root nodepublic Map<String,Object> getResourceProperties(Resource resource)
ExplorerResourcesDAO
getResourceProperties
in class ExplorerResourcesDAO
resource
- The resourcespublic Map<String,Object> getExplorerNodeProperties(ExplorerNode node)
ExplorerResourcesDAO
getExplorerNodeProperties
in class ExplorerResourcesDAO
node
- The explorer nodeprotected Set<String> getUserRights(ExplorerNode node)
ExplorerResourcesDAO
getUserRights
in class ExplorerResourcesDAO
node
- The explorer nodeprotected Page _getParentPage(AmetysObject ao)
ao
- The resource or collection