Interface RMCaveatConfigComponent

All Known Implementing Classes:
RMCaveatConfigComponentImpl

public interface RMCaveatConfigComponent
  • Method Details

    • init

      void init()
    • getRMAllowedValues

      List<String> getRMAllowedValues(String constraintName)
      Get allowed values for given caveat list (for current user)
      Parameters:
      constraintName -
      Returns:
    • getRMCaveatModels

      List<QName> getRMCaveatModels()
      Get custom caveat models
      Returns:
    • hasAccess

      boolean hasAccess(NodeRef nodeRef)
      Check whether access to 'record component' node is vetoed for current user due to caveat(s)
      Parameters:
      nodeRef -
      Returns:
      false, if caveat(s) veto access otherwise return true
    • getRMConstraint

      RMConstraintInfo getRMConstraint(String listName)
      Get RM constraint list
      Parameters:
      listName - the name of the RMConstraintList
    • addRMConstraint

      void addRMConstraint(String listName)
      Add RM constraint
    • addRMConstraintListValue

      void addRMConstraintListValue(String listName, String authorityName, String value)
      Add RM constraint value for given authority
    • updateRMConstraintListAuthority

      void updateRMConstraintListAuthority(String listName, String authorityName, List<String> values)
      Update RM constraint values for given authority
    • updateRMConstraintListValue

      void updateRMConstraintListValue(String listName, String valueName, List<String> authorities)
      Update RM constraint authorities for given value
    • removeRMConstraintListValue

      void removeRMConstraintListValue(String listName, String valueName)
      Remove RM constraint value (all authorities)
    • removeRMConstraintListAuthority

      void removeRMConstraintListAuthority(String listName, String authorityName)
      Remove RM constraint authority (all values)
    • deleteRMConstraint

      void deleteRMConstraint(String listName)
      Delete RM Constraint
      Parameters:
      listName - the name of the RMConstraintList
    • getListDetails

      Map<String,List<String>> getListDetails(String listName)
      Get the details of a caveat list
      Parameters:
      listName -
      Returns:
    • updateOrCreateCaveatConfig

      NodeRef updateOrCreateCaveatConfig(File jsonFile)
    • updateOrCreateCaveatConfig

      NodeRef updateOrCreateCaveatConfig(String jsonString)
    • updateOrCreateCaveatConfig

      NodeRef updateOrCreateCaveatConfig(InputStream is)