Class HoldsCommonEvaluator

  • All Implemented Interfaces:
    org.alfresco.web.evaluator.Evaluator

    public class HoldsCommonEvaluator
    extends BaseRMEvaluator
    Combined evaluator for records and active content for AddTo/RemoveFrom Hold action
    Since:
    3.2
    Author:
    Roxana Lucanu
    • Field Summary

      • Fields inherited from class org.alfresco.web.evaluator.BaseEvaluator

        args, metadata, negateOutput
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean evaluate​(org.json.simple.JSONObject jsonObject)
      Calls specific evaluator considering the document type
      void setDocEvaluator​(org.alfresco.web.evaluator.Evaluator docEvaluator)
      Sets the active content evaluator
      void setRecordEvaluator​(org.alfresco.web.evaluator.Evaluator recordEvaluator)
      Sets the record evaluator
      • Methods inherited from class org.alfresco.web.evaluator.BaseEvaluator

        evaluate, evaluate, evaluate, getArg, getArgs, getContainerType, getHasContent, getHeader, getIsLocked, getIsPortlet, getIsWorkingCopy, getJSONValue, getMatchesCurrentUser, getMetadata, getNodeAspects, getNodeType, getProperty, getSiteId, getSitePreset, getUserId, setNegateOutput
    • Constructor Detail

      • HoldsCommonEvaluator

        public HoldsCommonEvaluator()
    • Method Detail

      • setRecordEvaluator

        public void setRecordEvaluator​(org.alfresco.web.evaluator.Evaluator recordEvaluator)
        Sets the record evaluator
        Parameters:
        recordEvaluator -
      • setDocEvaluator

        public void setDocEvaluator​(org.alfresco.web.evaluator.Evaluator docEvaluator)
        Sets the active content evaluator
        Parameters:
        docEvaluator -
      • evaluate

        public boolean evaluate​(org.json.simple.JSONObject jsonObject)
        Calls specific evaluator considering the document type
        Specified by:
        evaluate in interface org.alfresco.web.evaluator.Evaluator
        Specified by:
        evaluate in class org.alfresco.web.evaluator.BaseEvaluator
        Parameters:
        jsonObject -
        Returns:
        boolean