Package org.ametys.cms.explorer
Class ExplorerResourcesDAO
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
org.ametys.cms.explorer.ExplorerResourcesDAO
- All Implemented Interfaces:
LogEnabled,Component,Contextualizable,Serviceable
- Direct Known Subclasses:
ExplorerResourcesDAO
This DAO overrides
ExplorerResourcesDAO to content attachments.-
Nested Class Summary
Nested classes/interfaces inherited from class org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
ExplorerResourcesDAO.VersionInformation -
Field Summary
Fields inherited from class org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
_cocoonContext, _context, _currentUserProvider, _metadataPopulatorEP, _observationManager, _resolver, _rightManager, _tikaProvider, _userHelper, RIGHTS_COLLECTION_ADD, RIGHTS_COLLECTION_CMIS_ADD, RIGHTS_COLLECTION_DELETE, RIGHTS_COLLECTION_EDIT, RIGHTS_RESOURCE_ADD, 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 ContentGet the parent content of a resource or collectionprotected voiddoDeleteObject(RemovableAmetysObject object) Technically delete the object.Get the explorer node propertiesgetResourceProperties(Resource resource) Get the resource propertiesgetUserRights(ExplorerNode node) Get the user rights on the resource collectionvoidservice(ServiceManager manager) Methods inherited from class org.ametys.plugins.explorer.resources.actions.ExplorerResourcesDAO
_version2json, addCMISCollection, addResourceCollection, addResourceCollection, checkLock, checkpoint, checkUserRight, contextualize, copyResource, copyResource, createResource, deleteObject, deleteObject, editCMISCollection, extractResourceMetadata, filterResourcesByRegExp, getCMISProperties, getDCMetadata, getDefaultInfoAsRootNode, getDefaultInfoAsRootNode, getExplorerNodePathPatterns, getNodesInfo, getResourceCollectionType, getResourcesRootNodes, getRootNodeLabel, 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
-
Constructor Details
-
ExplorerResourcesDAO
public ExplorerResourcesDAO()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classExplorerResourcesDAO- Throws:
ServiceException
-
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
-
_getParentContent
Get the parent content of a resource or collection- Parameters:
ao- The resource or collection- Returns:
- the parent content or null if the object is not part of content attachments
-
doDeleteObject
Description copied from class:ExplorerResourcesDAOTechnically delete the object.- Overrides:
doDeleteObjectin classExplorerResourcesDAO- Parameters:
object- the object to delete
-