Package org.ametys.web.explorer
Class ExplorerResourcesDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
org.ametys.cms.explorer.ExplorerResourcesDAO
org.ametys.web.explorer.ExplorerResourcesDAO
- All Implemented Interfaces:
LogEnabled,Component,Contextualizable,Serviceable
This DAO overrides
ExplorerResourcesDAO to handle shared explorer resources and page attachments.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
ExplorerResourcesDAO.VersionInformation -
Field Summary
FieldsFields inherited from class org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
_cocoonContext, _context, _currentUserProvider, _metadataPopulatorEP, _observationManager, _resolver, _rightManager, _threadDAO, _tikaProvider, _userHelper, RIGHTS_COLLECTION_ADD, RIGHTS_COLLECTION_CMIS_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PageGet the parent page of a resource or collectiongetDefaultInfoAsRootNode(ExplorerNode rootNode) Get the necessary default info for a root node.Get the explorer node propertiesgetResourceProperties(Resource resource) Get the resource propertiesGet the root nodes for resourcesgetRootNodeLabel(ExplorerNode rootNode) Get the root node labelgetSharedRootNodeInfo(ExplorerNode sharedRoot) Get the necessary info for the shared root node.getUserRights(ExplorerNode node) Get the user rights on the resource collectionvoidservice(ServiceManager manager) Methods inherited from class org.ametys.cms.explorer.ExplorerResourcesDAO
_getParentContentMethods inherited from class org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
_canAddComment, _canDeleteComment, _canEditComment, _comment2json, _getComment, _getCommentForEditing, _setComment, _version2json, 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, resourcesExists, restoreResource, setDCMetadata, setDCMetadata, updateResourceMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_siteManager
Site manager
-
-
Constructor Details
-
ExplorerResourcesDAO
public ExplorerResourcesDAO()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classExplorerResourcesDAO- Throws:
ServiceException
-
getResourcesRootNodes
Description copied from class:ExplorerResourcesDAOGet the root nodes for resources- Overrides:
getResourcesRootNodesin classExplorerResourcesDAO- Returns:
- the root nodes
-
getDefaultInfoAsRootNode
Description copied from class:ExplorerResourcesDAOGet the necessary default info for a root node. Can be used to construct a root node for a tree (client side).- Overrides:
getDefaultInfoAsRootNodein classExplorerResourcesDAO- Parameters:
rootNode- The root node- Returns:
- A map which contains a set of default info (such as id, applicationId, path, type etc...)
-
getRootNodeLabel
Description copied from class:ExplorerResourcesDAOGet the root node label- Overrides:
getRootNodeLabelin classExplorerResourcesDAO- Parameters:
rootNode- the node- Returns:
- the readable label
-
getResourceProperties
Description copied from class:ExplorerResourcesDAOGet the resource properties- Overrides:
getResourcePropertiesin classExplorerResourcesDAO- Parameters:
resource- The resources- Returns:
- The properties
-
getExplorerNodeProperties
Description copied from class:ExplorerResourcesDAOGet the explorer node properties- Overrides:
getExplorerNodePropertiesin classExplorerResourcesDAO- Parameters:
node- The explorer node- Returns:
- The properties
-
getUserRights
Description copied from class:ExplorerResourcesDAOGet the user rights on the resource collection- Overrides:
getUserRightsin classExplorerResourcesDAO- Parameters:
node- The explorer node- Returns:
- The user's rights
-
_getParentPage
Get the parent page of a resource or collection- Parameters:
ao- The resource or collection- Returns:
- the parent page or null if the object is not part of page attachments
-