Interface RMCaveatConfigComponent
- All Known Implementing Classes:
RMCaveatConfigComponentImpl
public interface RMCaveatConfigComponent
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddRMConstraint(String listName) Add RM constraintvoidaddRMConstraintListValue(String listName, String authorityName, String value) Add RM constraint value for given authorityvoiddeleteRMConstraint(String listName) Delete RM ConstraintgetListDetails(String listName) Get the details of a caveat listgetRMAllowedValues(String constraintName) Get allowed values for given caveat list (for current user)Get custom caveat modelsgetRMConstraint(String listName) Get RM constraint listbooleanCheck whether access to 'record component' node is vetoed for current user due to caveat(s)voidinit()voidremoveRMConstraintListAuthority(String listName, String authorityName) Remove RM constraint authority (all values)voidremoveRMConstraintListValue(String listName, String valueName) Remove RM constraint value (all authorities)updateOrCreateCaveatConfig(File jsonFile) updateOrCreateCaveatConfig(String jsonString) voidupdateRMConstraintListAuthority(String listName, String authorityName, List<String> values) Update RM constraint values for given authorityvoidupdateRMConstraintListValue(String listName, String valueName, List<String> authorities) Update RM constraint authorities for given value
-
Method Details
-
init
void init() -
getRMAllowedValues
Get allowed values for given caveat list (for current user)- Parameters:
constraintName-- Returns:
-
getRMCaveatModels
Get custom caveat models- Returns:
-
hasAccess
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
Get RM constraint list- Parameters:
listName- the name of the RMConstraintList
-
addRMConstraint
Add RM constraint -
addRMConstraintListValue
Add RM constraint value for given authority -
updateRMConstraintListAuthority
Update RM constraint values for given authority -
updateRMConstraintListValue
Update RM constraint authorities for given value -
removeRMConstraintListValue
Remove RM constraint value (all authorities) -
removeRMConstraintListAuthority
Remove RM constraint authority (all values) -
deleteRMConstraint
Delete RM Constraint- Parameters:
listName- the name of the RMConstraintList
-
getListDetails
Get the details of a caveat list- Parameters:
listName-- Returns:
-
updateOrCreateCaveatConfig
-
updateOrCreateCaveatConfig
-
updateOrCreateCaveatConfig
-