Class ExpressionServiceImpl

java.lang.Object
fr.becpg.repo.expressions.impl.ExpressionServiceImpl
All Implemented Interfaces:
ExpressionService

@Service("expressionService") public class ExpressionServiceImpl extends Object implements ExpressionService

ExpressionServiceImpl class.

Version:
$Id: $Id
Author:
matthieu
  • Field Details

    • logger

      private org.apache.commons.logging.Log logger
    • jsPattern

      private static final Pattern jsPattern
    • spelPattern

      private static final Pattern spelPattern
    • DEBUG_MESG

      private static final String DEBUG_MESG
      See Also:
    • HELPER_JS

      private static final String HELPER_JS
      See Also:
    • scriptService

      @Autowired private org.alfresco.service.cmr.repository.ScriptService scriptService
    • serviceRegistry

      @Autowired private org.alfresco.service.ServiceRegistry serviceRegistry
    • spelFormulaService

      @Autowired private SpelFormulaService spelFormulaService
    • ML_PREFIX

      private static final String ML_PREFIX
      See Also:
    • nodeService

      @Autowired protected org.alfresco.service.cmr.repository.NodeService nodeService
    • mlNodeService

      @Autowired @Qualifier("mlAwareNodeService") protected org.alfresco.service.cmr.repository.NodeService mlNodeService
    • namespaceService

      @Autowired protected org.alfresco.service.namespace.NamespaceService namespaceService
    • dictionaryService

      @Autowired private EntityDictionaryService dictionaryService
    • associationService

      @Autowired private AssociationService associationService
    • attributeExtractorService

      @Autowired private AttributeExtractorService attributeExtractorService
  • Constructor Details

    • ExpressionServiceImpl

      public ExpressionServiceImpl()
  • Method Details

    • extractExpr

      public String extractExpr(org.alfresco.service.cmr.repository.NodeRef nodeRef, String exprFormat)

      extractExpr.

      Specified by:
      extractExpr in interface ExpressionService
      Parameters:
      nodeRef - a NodeRef object
      exprFormat - a String object
      Returns:
      a String object
    • extractExpr

      public String extractExpr(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef docNodeRef, String exprFormat)

      extractExpr.

      Specified by:
      extractExpr in interface ExpressionService
      Parameters:
      nodeRef - a NodeRef object
      docNodeRef - a NodeRef object
      exprFormat - a String object
      Returns:
      a String object
    • extractPropText

      private String extractPropText(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef docNodeRef, String propQname)
    • extractPropText

      private String extractPropText(org.alfresco.service.cmr.repository.NodeRef nodeRef, String propQname)
    • extractExpr

      public String extractExpr(org.json.JSONObject object, String exprFormat)

      extractExpr.

      Specified by:
      extractExpr in interface ExpressionService
      Parameters:
      object - a JSONObject object
      exprFormat - a String object
      Returns:
      a String object
    • extractPropText

      private String extractPropText(org.json.JSONObject object, String propQname)
    • eval

      public <T extends RepositoryEntity> Object eval(String condition, T formulatedEntity)

      eval.

      Specified by:
      eval in interface ExpressionService
      Type Parameters:
      T - a T class
      Parameters:
      condition - a String object
      formulatedEntity - a T object
      Returns:
      a Object object
    • eval

      public Object eval(String condition, List<org.alfresco.service.cmr.repository.NodeRef> nodeRefs)

      eval.

      Specified by:
      eval in interface ExpressionService
      Parameters:
      condition - a String object
      nodeRefs - a List object
      Returns:
      a Object object