Class PropertyModificationAllowedCheck
java.lang.Object
org.alfresco.module.org_alfresco_module_rm.util.PropertyModificationAllowedCheck
Utility check for modification of a properties based off presence in a whitelist.
- Since:
- 3.2
- Author:
- Ross Gale
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
check
(Map<QName, Serializable> before, Map<QName, Serializable> after) Compares the node properties with the requested update to make sure all potential updates are permittedvoid
setEditableURIs
(List<String> editableURIs) Setter for list of model URI'svoid
setWhiteList
(List<QName> whiteList) Setter for list of qnames
-
Constructor Details
-
PropertyModificationAllowedCheck
public PropertyModificationAllowedCheck()
-
-
Method Details
-
setEditableURIs
Setter for list of model URI's- Parameters:
editableURIs
- List
-
setWhiteList
Setter for list of qnames- Parameters:
whiteList
- List
-
check
Compares the node properties with the requested update to make sure all potential updates are permitted- Parameters:
before
- current node propertiesafter
- updated properties for the node- Returns:
- true - if all modified property keys are in the whitelist or in the list of model URI's for which the properties can be modified
-