Interface DisableConditions<T extends DisableCondition>

Type Parameters:
T - The type of disable condition
All Known Implementing Classes:
AbstractDisableConditions, AbstractStaticRelativeDisableConditions, ConfigDisableConditions, ContentStaticRelativeDisableConditions, DataHolderRelativeDisableConditions, DataHolderStaticRelativeDisableConditions, SkinDisableConditions, UsersAndGroupsDataDisableConditions, VoidRelativeDisableConditions, VoidStaticRelativeDisableConditions

public interface DisableConditions<T extends DisableCondition>
List of disable conditions Composed by a list of sub conditions or conditions and a association operator
  • Method Details

    • getConditions

      Get the conditions
      Returns:
      The list of conditions
    • getSubConditions

      Get the sub conditions
      Returns:
      The list of underlying conditions
    • removeConditions

      void removeConditions(String conditionName)
      Removes all the conditions with the given name The conditions in the sub conditions are removed too
      Parameters:
      conditionName - The name of the conditions to remove
    • getAssociationType

      Get the association
      Returns:
      The association
    • setAssociation

      Set the association
      Parameters:
      associationType - The new association between underlying conditions
    • init

      default void init(Model model, ModelItem definition) throws Exception
      Used to do more initialization, checks... needing model items of distant objects Called by Model parsing when the model items of all models have been initialized.
      Parameters:
      model - the model containing the definition
      definition - the model item defining this disable condition
      Throws:
      Exception - if an error occurs or if an additional check fails.
    • getExternalDisableConditions

      Retrieves the external conditions of the current DisableConditions Each condition has an index to avoid confusion if there is several conditions with the same id
      Parameters:
      context - the definition context
      Returns:
      the external conditions of the current DisableConditions