Class AbstractPermissionChangePatch

java.lang.Object
org.alfresco.repo.admin.patch.AbstractPatch
org.alfresco.repo.admin.patch.impl.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 Details

    • AbstractPermissionChangePatch

      public AbstractPermissionChangePatch()
  • Method Details

    • setAclCrudDAO

      public void setAclCrudDAO(AclCrudDAO aclCrudDAO)
    • renamePermission

      protected int renamePermission(QName oldTypeQName, String oldName, QName newTypeQName, 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