Package fr.becpg.repo.helper.impl
Class PersonAttributeExtractorPlugin
java.lang.Object
fr.becpg.repo.helper.impl.PersonAttributeExtractorPlugin
- All Implemented Interfaces:
AttributeExtractorService.AttributeExtractorPlugin
@Service
public class PersonAttributeExtractorPlugin
extends Object
implements AttributeExtractorService.AttributeExtractorPlugin
PersonAttributeExtractorPlugin class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BeCPGCacheServiceprivate static final org.apache.commons.logging.Log(package private) org.alfresco.service.namespace.NamespaceService(package private) org.alfresco.service.cmr.repository.NodeService(package private) org.alfresco.service.cmr.security.PersonService(package private) org.alfresco.repo.tenant.TenantServiceFields inherited from interface fr.becpg.repo.helper.AttributeExtractorService.AttributeExtractorPlugin
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractMetadata(org.alfresco.service.namespace.QName type, org.alfresco.service.cmr.repository.NodeRef nodeRef) extractPropName(org.alfresco.service.namespace.QName type, org.alfresco.service.cmr.repository.NodeRef nodeRef) Extracts the property name from a node based on its type.Collection<org.alfresco.service.namespace.QName>Gets the collection of QNames that match the criteria for this extractor.getPersonDisplayName(String userId) getPersonDisplayName.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.becpg.repo.helper.AttributeExtractorService.AttributeExtractorPlugin
extractPropName, extractPropName, matchCriteria
-
Field Details
-
logger
private static final org.apache.commons.logging.Log logger -
nodeService
@Autowired org.alfresco.service.cmr.repository.NodeService nodeService -
personService
@Autowired org.alfresco.service.cmr.security.PersonService personService -
beCPGCacheService
-
namespaceService
@Autowired org.alfresco.service.namespace.NamespaceService namespaceService -
tenantService
@Autowired org.alfresco.repo.tenant.TenantService tenantService
-
-
Constructor Details
-
PersonAttributeExtractorPlugin
public PersonAttributeExtractorPlugin()
-
-
Method Details
-
getMatchingTypes
Gets the collection of QNames that match the criteria for this extractor.- Specified by:
getMatchingTypesin interfaceAttributeExtractorService.AttributeExtractorPlugin- Returns:
- a collection of matching QNames
-
extractPropName
@Nonnull public String extractPropName(@Nonnull org.alfresco.service.namespace.QName type, @Nonnull org.alfresco.service.cmr.repository.NodeRef nodeRef) Extracts the property name from a node based on its type.- Specified by:
extractPropNamein interfaceAttributeExtractorService.AttributeExtractorPlugin- Parameters:
type- the type of the nodenodeRef- the reference to the node- Returns:
- the extracted property name
-
extractMetadata
@Nonnull public String extractMetadata(@Nonnull org.alfresco.service.namespace.QName type, @Nonnull org.alfresco.service.cmr.repository.NodeRef nodeRef) - Specified by:
extractMetadatain interfaceAttributeExtractorService.AttributeExtractorPlugin
-
getPersonDisplayName
getPersonDisplayName.
-
getPriority
- Specified by:
getPriorityin interfaceAttributeExtractorService.AttributeExtractorPlugin
-