Class PropertyModificationAllowedCheck
- java.lang.Object
-
- org.alfresco.module.org_alfresco_module_rm.util.PropertyModificationAllowedCheck
-
public class PropertyModificationAllowedCheck extends Object
Utility check for modification of a properties based off presence in a whitelist.- Since:
- 3.2
- Author:
- Ross Gale
-
-
Constructor Summary
Constructors Constructor Description PropertyModificationAllowedCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.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<org.alfresco.service.namespace.QName> whiteList)
Setter for list of qnames
-
-
-
Method Detail
-
setEditableURIs
public void setEditableURIs(List<String> editableURIs)
Setter for list of model URI's- Parameters:
editableURIs
- List
-
setWhiteList
public void setWhiteList(List<org.alfresco.service.namespace.QName> whiteList)
Setter for list of qnames- Parameters:
whiteList
- List
-
check
public boolean check(Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
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
-
-