public class AddRoleToGroupTask extends AbstractRepositoryTask
GroupManager
.DO_NOTHING, log
Constructor and Description |
---|
AddRoleToGroupTask(String taskName,
String roleName,
String groupName) |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(InstallContext ctx)
Executes task and adds role to the specified group.
|
execute
getDescription, getName, toString
protected void doExecute(InstallContext ctx) throws javax.jcr.RepositoryException, TaskExecutionException
doExecute
in class AbstractRepositoryTask
javax.jcr.RepositoryException
TaskExecutionException
- 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–2020 Magnolia International Ltd.. All rights reserved.