Interface RMCaveatConfigService
- All Known Implementing Classes:
RMCaveatConfigServiceImpl
public interface RMCaveatConfigService
-
Method Summary
Modifier and TypeMethodDescriptionaddRMConstraint
(String listName, String listTitle, String[] allowedValues) add RM constraint listvoid
addRMConstraintListValue
(String listName, String authorityName, String value) Add a single value to an authority in a list.void
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)getRMConstraint
(String listName) boolean
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 an authority from a listvoid
removeRMConstraintListValue
(String listName, String valueName) Remove an authority from a listupdateOrCreateCaveatConfig
(File jsonFile) updateOrCreateCaveatConfig
(String jsonString) updateRMConstraintAllowedValues
(String listName, String[] allowedValues) update RM constraint list allowed valuesvoid
updateRMConstraintListAuthority
(String listName, String authorityName, List<String> values) Replace the values for an authority in a list.void
updateRMConstraintListValue
(String listName, String value, List<String> authorities) Replace the values for an authority in a list.updateRMConstraintTitle
(String listName, String newTitle) update RM constraint Title
-
Method Details
-
init
void init() -
getRMAllowedValues
Get allowed values for given caveat list (for current user)- Parameters:
constraintName
-- 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
-
getAllRMConstraints
Set<RMConstraintInfo> getAllRMConstraints() -
getListDetails
Get the details of a caveat list- Parameters:
listName
-- Returns:
-
updateOrCreateCaveatConfig
-
updateOrCreateCaveatConfig
-
updateOrCreateCaveatConfig
-
addRMConstraint
add RM constraint list- Parameters:
listName
- the name of the RMConstraintListlistTitle
-
-
updateRMConstraintAllowedValues
update RM constraint list allowed values- Parameters:
listName
- the name of the RMConstraintList - can not be changedallowedValues
-
-
updateRMConstraintTitle
update RM constraint Title- Parameters:
listName
- the name of the RMConstraintList - can not be changednewTitle
- the new value for the title constraint
-
deleteRMConstraint
delete RM Constraint- Parameters:
listName
- the name of the RMConstraintList
-
addRMConstraintListValue
Add a single value to an authority in a list. The existing values of the list remain.- Parameters:
listName
- the name of the RMConstraintListauthorityName
-value
-- Throws:
org.alfresco.error.AlfrescoRuntimeException
- if either the list or the authority do not already exist.
-
updateRMConstraintListAuthority
Replace the values for an authority in a list. The existing values are removed. If the authority does not already exist in the list, it will be added- Parameters:
listName
- the name of the RMConstraintListauthorityName
-values
-
-
removeRMConstraintListAuthority
Remove an authority from a list- Parameters:
listName
- the name of the RMConstraintListauthorityName
-
-
updateRMConstraintListValue
Replace the values for an authority in a list. The existing values are removed. If the authority does not already exist in the list, it will be added- Parameters:
listName
- the name of the RMConstraintListvalue
-authorities
-
-
removeRMConstraintListValue
Remove an authority from a list- Parameters:
listName
- the name of the RMConstraintListvalueName
-
-