info.magnolia.security.setup.migration
Class MoveAclPermissionsBetweenWorkspaces

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.delta.AbstractRepositoryTask
          extended by info.magnolia.security.setup.migration.MoveAclPermissionsBetweenWorkspaces
All Implemented Interfaces:
info.magnolia.module.delta.Task

public class MoveAclPermissionsBetweenWorkspaces
extends info.magnolia.module.delta.AbstractRepositoryTask

Update ACL's from a workspace to another.
For example move ACL's from dms to dam workspace:
- rename nodes with name acl_dms to acl_dam

Check the associated path and correct them if required.
- If the related path (/demo-project/image/icon) is no more valid on the target workspace.
-- check if the path prefixed with one of the element of 'subPaths' will match
--- If one match found and 'updatePath' is set to true, set this path to the ACL property.
- Else log a warning message.


Constructor Summary
MoveAclPermissionsBetweenWorkspaces(String name, String description, String sourceWorkspaceName, String targetWorkspaceName, List<String> subPaths, boolean updatePath)
           
 
Method Summary
protected  void doExecute(info.magnolia.module.InstallContext installContext)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractRepositoryTask
execute
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoveAclPermissionsBetweenWorkspaces

public MoveAclPermissionsBetweenWorkspaces(String name,
                                           String description,
                                           String sourceWorkspaceName,
                                           String targetWorkspaceName,
                                           List<String> subPaths,
                                           boolean updatePath)
Parameters:
sourceWorkspaceName - source workspace name like 'dms'
targetWorkspaceName - target workspace name like 'dam'
subPaths - List of sub path set during migration process.
Method Detail

doExecute

protected void doExecute(info.magnolia.module.InstallContext installContext)
                  throws javax.jcr.RepositoryException,
                         info.magnolia.module.delta.TaskExecutionException
Specified by:
doExecute in class info.magnolia.module.delta.AbstractRepositoryTask
Throws:
javax.jcr.RepositoryException
info.magnolia.module.delta.TaskExecutionException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.