Class AbstractPermissionChangePatch

  • All Implemented Interfaces:
    Patch, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationEventPublisherAware

    public abstract class AbstractPermissionChangePatch
    extends AbstractPatch
    Provides common functionality to change a permission type and/or name.
    Author:
    Derek Hulley
    • Constructor Detail

      • AbstractPermissionChangePatch

        public AbstractPermissionChangePatch()
    • Method Detail

      • setAclCrudDAO

        public void setAclCrudDAO​(AclCrudDAO aclCrudDAO)
      • renamePermission

        protected int renamePermission​(org.alfresco.service.namespace.QName oldTypeQName,
                                       java.lang.String oldName,
                                       org.alfresco.service.namespace.QName newTypeQName,
                                       java.lang.String newName)
        Helper method to rename (move) a permission. This involves checking for the existence of the new permission and then moving all the entries to point to the new permission.
        Parameters:
        oldTypeQName - the old permission type
        oldName - the old permission name
        newTypeQName - the new permission type
        newName - the new permission name
        Returns:
        Returns the number of permission entries modified