info.magnolia.module.delta
Class AddRoleToGroupTask
java.lang.Object
info.magnolia.module.delta.AbstractTask
info.magnolia.module.delta.AbstractRepositoryTask
info.magnolia.module.delta.AddRoleToGroupTask
- All Implemented Interfaces:
- Task
public class AddRoleToGroupTask
- extends AbstractRepositoryTask
A task to add a role to a group, using GroupManager
.
AddRoleToGroupTask
public AddRoleToGroupTask(String taskName,
String roleName,
String groupName)
doExecute
protected void doExecute(InstallContext ctx)
throws javax.jcr.RepositoryException,
TaskExecutionException
- Executes task and adds role to the specified group.
During execute nothing should be saved, as the save should occur after each batch of delta/install/update for
rollbacks to still be possible if an error occurs.
- Specified by:
doExecute
in class AbstractRepositoryTask
- Throws:
javax.jcr.RepositoryException
TaskExecutionException
- See Also:
- to see what a good-citizen task should do.
TODO: The groupManager saves at node level, thus breaking the "save once per module install/update" rule
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.