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
public class ExplorerResourcesDAO extends ExplorerResourcesDAO
This DAO overridesExplorerResourcesDAO
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, _i18nUtils, _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 Constructor Description ExplorerResourcesDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Content
_getParentContent(AmetysObject ao)
Get the parent content of a resource or collectionMap<String,Object>
getExplorerNodeProperties(ExplorerNode node)
Get the explorer node propertiesMap<String,Object>
getResourceProperties(Resource resource)
Get the resource propertiesprotected Set<String>
getUserRights(ExplorerNode node)
Get the user rights on the resource collection-
Methods 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, getDefaultInfoAsRootNode, getNodesInfo, getResourceCollectionType, getResourcesRootNodes, getRootNodesInfo, getUserRight, hasRight, isCMISCollection, moveObject, moveObject, renameObject, renameObject, renameResource, renameResource, resourceExists, resourceExists, resourceHistory, restoreResource, service, setDCMetadata, setDCMetadata, updateResource
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ExplorerResourcesDAO
public ExplorerResourcesDAO()
-
-
Method Detail
-
getResourceProperties
public Map<String,Object> getResourceProperties(Resource resource)
Description copied from class:ExplorerResourcesDAO
Get the resource properties- Overrides:
getResourceProperties
in classExplorerResourcesDAO
- Parameters:
resource
- The resources- Returns:
- The properties
-
getExplorerNodeProperties
public Map<String,Object> getExplorerNodeProperties(ExplorerNode node)
Description copied from class:ExplorerResourcesDAO
Get the explorer node properties- Overrides:
getExplorerNodeProperties
in classExplorerResourcesDAO
- Parameters:
node
- The explorer node- Returns:
- The properties
-
getUserRights
protected Set<String> getUserRights(ExplorerNode node)
Description copied from class:ExplorerResourcesDAO
Get the user rights on the resource collection- Overrides:
getUserRights
in classExplorerResourcesDAO
- Parameters:
node
- The explorer node- Returns:
- The user's rights
-
_getParentContent
protected Content _getParentContent(AmetysObject ao)
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
-
-