Package fr.becpg.repo.helper.impl
Class AbstractExprNameExtractor
java.lang.Object
fr.becpg.repo.helper.impl.AbstractExprNameExtractor
- All Implemented Interfaces:
AttributeExtractorService.AttributeExtractorPlugin
- Direct Known Subclasses:
CharactAttributeExtractorPlugin,VariantAttributeExtractorPlugin
public abstract class AbstractExprNameExtractor
extends Object
implements AttributeExtractorService.AttributeExtractorPlugin
Abstract AbstractExprNameExtractor class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprotected ExpressionServiceprotected org.alfresco.service.namespace.NamespaceServiceprotected org.alfresco.service.cmr.repository.NodeServiceFields inherited from interface fr.becpg.repo.helper.AttributeExtractorService.AttributeExtractorPlugin
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringclean.protected StringextractEntityName(org.alfresco.service.cmr.repository.NodeRef nodeRef, String exprFormat) Extracts the display name of an entity.extractExpr(org.alfresco.service.cmr.repository.NodeRef nodeRef, String exprFormat) extractExpr.private StringtemplateCssClass(String typeCss, org.alfresco.service.cmr.repository.NodeRef templateNodeRef) protected StringtemplateCssClasses(String typeCss, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef entityTplRef) Builds the CSS classes carrying the custom icon of an entity: the class of the template the entity was created from and, when the entity is itself a template, the class of its own icon.private StringtoLocalizedText(Serializable value) 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
extractMetadata, extractMetadataKey, extractPropName, extractPropName, extractPropName, getMatchingTypes, matchCriteria
-
Field Details
-
CSS_CLASS_SEPARATOR
- See Also:
-
CSS_ID_SEPARATOR
- See Also:
-
nodeService
@Autowired protected org.alfresco.service.cmr.repository.NodeService nodeService -
namespaceService
@Autowired protected org.alfresco.service.namespace.NamespaceService namespaceService -
expressionService
-
-
Constructor Details
-
AbstractExprNameExtractor
public AbstractExprNameExtractor()
-
-
Method Details
-
extractExpr
extractExpr.
-
extractEntityName
protected String extractEntityName(org.alfresco.service.cmr.repository.NodeRef nodeRef, String exprFormat) Extracts the display name of an entity. An entity template is shown under its title when it has one: the title is multilingual, so each user reads the template in their own language, whereas the name format only knows the single technical name.- Parameters:
nodeRef- the entityexprFormat- the name format applied to an entity that is not a titled template- Returns:
- the display name, possibly
null
-
toLocalizedText
-
clean
clean.
-
templateCssClasses
protected String templateCssClasses(String typeCss, org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef entityTplRef) Builds the CSS classes carrying the custom icon of an entity: the class of the template the entity was created from and, when the entity is itself a template, the class of its own icon.- Parameters:
typeCss- the CSS class of the entity typenodeRef- the entityentityTplRef- the template the entity refers to, possibly null- Returns:
- the CSS classes, each one preceded by a space, or an empty string
-
templateCssClass
-
getPriority
- Specified by:
getPriorityin interfaceAttributeExtractorService.AttributeExtractorPlugin
-