Class AuthenticatedUserRolesDataExtractor
- java.lang.Object
-
- org.alfresco.repo.audit.extractor.AbstractDataExtractor
-
- org.alfresco.module.org_alfresco_module_rm.audit.extractor.AuthenticatedUserRolesDataExtractor
-
- All Implemented Interfaces:
org.alfresco.repo.audit.extractor.DataExtractor
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.InitializingBean
public final class AuthenticatedUserRolesDataExtractor extends org.alfresco.repo.audit.extractor.AbstractDataExtractor
An extractor that uses a node context to determine the currently-authenticated user's RM roles. This is not a data generator because it can only function in the context of a given node.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Constructor Summary
Constructors Constructor Description AuthenticatedUserRolesDataExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Serializable
extractData(Serializable value)
int
hashCode()
boolean
isSupported(Serializable data)
void
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
void
setFilePlanRoleService(FilePlanRoleService filePlanRoleService)
void
setFilePlanService(FilePlanService filePlanService)
void
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Used to check that the node in the context is a fileplan component
-
-
-
Method Detail
-
setNodeService
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Used to check that the node in the context is a fileplan component
-
setFilePlanService
public void setFilePlanService(FilePlanService filePlanService)
- Parameters:
filePlanService
- file plan service
-
setFilePlanRoleService
public void setFilePlanRoleService(FilePlanRoleService filePlanRoleService)
- Parameters:
filePlanRoleService
- file plan role service
-
setDictionaryService
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
- Parameters:
dictionaryService
- dictionary service
-
isSupported
public boolean isSupported(Serializable data)
- Returns:
- Returns true if the data is a NodeRef and it represents either a fileplan component or a subtype of content
-
extractData
public Serializable extractData(Serializable value)
- See Also:
DataExtractor.extractData(java.io.Serializable)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classorg.alfresco.repo.audit.extractor.AbstractDataExtractor
-
-