Search in sources :

Example 1 with Permissions

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);
}
Also used : Permissions(org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions)

Example 2 with Permissions

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);
}
Also used : CommandWithPermissions(org.jboss.as.cli.impl.aesh.cmd.deployment.security.CommandWithPermissions) Permissions(org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions)

Example 3 with Permissions

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);
}
Also used : Permissions(org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions)

Example 4 with Permissions

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);
}
Also used : Permissions(org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions)

Aggregations

Permissions (org.jboss.as.cli.impl.aesh.cmd.deployment.security.Permissions)4 CommandWithPermissions (org.jboss.as.cli.impl.aesh.cmd.deployment.security.CommandWithPermissions)1