use of org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions in project wildfly-core by wildfly.
the class DeployHandler method setupAccessRequirement.
@Override
protected AccessRequirement setupAccessRequirement(CommandContext ctx) {
Permissions permissions = new Permissions(ctx);
listPermission = permissions.getListPermission();
fullReplacePermission = permissions.getFullReplacePermission();
mainAddPermission = permissions.getMainAddPermission();
serverGroupAddPermission = permissions.getServerGroupAddPermission();
deployPermission = permissions.getDeployPermission();
return AccessRequirements.deploymentAccess(permissions).apply(ctx);
}
use of org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions in project wildfly-core by wildfly.
the class DeploymentCommand method registerDeploymentCommands.
public static void registerDeploymentCommands(CommandContext ctx, CLICommandRegistry registry) throws CommandLineException, CommandLineParserException {
Permissions p = new Permissions(ctx);
DeploymentCommand deploy = new DeploymentCommand(ctx, p);
registry.addCommand(deploy);
}
use of org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions in project wildfly-core by wildfly.
the class DeploymentInfoHandler method setupAccessRequirement.
@Override
protected AccessRequirement setupAccessRequirement(CommandContext ctx) {
Permissions permissions = new Permissions(ctx);
sgChildrenResourcesPermission = permissions.getSgChildrenResourcesPermission();
return AccessRequirements.infoAccess(permissions).apply(ctx);
}
use of org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions in project wildfly-core by wildfly.
the class UndeployHandler method setupAccessRequirement.
@Override
protected AccessRequirement setupAccessRequirement(CommandContext ctx) {
Permissions permissions = new Permissions(ctx);
listPermission = permissions.getListPermission();
mainRemovePermission = permissions.getMainRemovePermission();
undeployPermission = permissions.getUndeployPermission();
return AccessRequirements.undeployLegacyAccess(permissions).apply(ctx);
}
Aggregations