Interface RMCaveatConfigComponent
- All Known Implementing Classes:
RMCaveatConfigComponentImpl
public interface RMCaveatConfigComponent
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRMConstraint
(String listName) Add RM constraintvoid
addRMConstraintListValue
(String listName, String authorityName, String value) Add RM constraint value for given authorityvoid
deleteRMConstraint
(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 listboolean
Check whether access to 'record component' node is vetoed for current user due to caveat(s)void
init()
void
removeRMConstraintListAuthority
(String listName, String authorityName) Remove RM constraint authority (all values)void
removeRMConstraintListValue
(String listName, String valueName) Remove RM constraint value (all authorities)updateOrCreateCaveatConfig
(File jsonFile) updateOrCreateCaveatConfig
(String jsonString) void
updateRMConstraintListAuthority
(String listName, String authorityName, List<String> values) Update RM constraint values for given authorityvoid
updateRMConstraintListValue
(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
-