Class NotShared2DisableCondition

All Implemented Interfaces:
DisableCondition, Component, Serviceable

Disable condition used to block attribute on not shared program items
  • Constructor Details

  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • evaluate

      public <T> boolean evaluate(ModelItem definition, String dataPath, Optional<String> oldDataPath, Map<String,Object> values, Optional<T> object, Map<String,Object> contextualParameters)
      Description copied from interface: DisableCondition
      Evaluate the current DisableCondition against the given values
      Specified by:
      evaluate in interface DisableCondition
      Type Parameters:
      T - Type of object holding the data to evaluate
      Parameters:
      definition - the definition of the evaluated data
      dataPath - the path of the evaluated data. Needed to get the value to compare as condition ids are relative to this one
      oldDataPath - the old path of the evaluated data. Needed to get stored value if the data has been moved
      values - values to check conditions on
      object - the object holding the data to evaluate and the condition value
      contextualParameters - the contextual parameters
      Returns:
      true if the disable condition is true, false otherwise