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 Details

    • PropertyModificationAllowedCheck

      public PropertyModificationAllowedCheck()
  • Method Details

    • setEditableURIs

      public void setEditableURIs(List<String> editableURIs)
      Setter for list of model URI's
      Parameters:
      editableURIs - List
    • setWhiteList

      public void setWhiteList(List<QName> whiteList)
      Setter for list of qnames
      Parameters:
      whiteList - List
    • check

      public boolean check(Map<QName,Serializable> before, Map<QName,Serializable> after)
      Compares the node properties with the requested update to make sure all potential updates are permitted
      Parameters:
      before - current node properties
      after - 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