description="list-containers") }) @AccessRequired(resource="domain", action="read") public class ListContainersCommand implements AdminCommand {
private void addAccessChecksFromAnno(final AccessRequired ar, final AdminCommand command, final List<AccessCheckWork> accessChecks, final Class<?> currentClass, final boolean isTaggable) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException { for (final String resource : ar.resource()) { final String translatedResource = processTokens(resource, command); for (final String action : ar.action()) { final AccessCheck a = new AccessCheck(translatedResource, action); String tag = null; if (isTaggable) { tag = " @AccessRequired on " + currentClass.getName() + LINE_SEP; } accessChecks.add(new AccessCheckWork(a, tag)); } } }
description="list-commands") }) @AccessRequired(resource="domain", action="read") public class ListCommandsCommand implements AdminCommand { private static final String MODE = "mode";
description="list-modules") }) @AccessRequired(resource="domain", action="dump") public class ListModulesCommand implements AdminCommand {
description="_dump-hk2") }) @AccessRequired(resource="domain", action="dump") public class DumpHK2Command implements AdminCommand {
@PerLookup @I18n("list.commands") @AccessRequired(resource="domain", action="dump") public class ListCommandDescriptorsCommand implements AdminCommand { @Inject
description="restart-domain") }) @AccessRequired(resource="domain", action={"stop","start"}) public class RestartDomainCommand extends RestartServer implements AdminCommand {
@CommandLock(CommandLock.LockType.NONE) @I18n("getpayload") @AccessRequired(resource="jobs/job/$jobID", action="read") public class GetPayloadCommand implements AdminCommand {
@Async @I18n("stop.domain.command") @AccessRequired(resource="domain", action="stop") @ExecuteOn(RuntimeType.DAS) public class StopDomainCommand extends StopServer implements AdminCommand {
description="Restart Reasons") }) @AccessRequired(resource="domain", action="dump") public class GetRestartRequiredCommand implements AdminCommand { @Param(optional = true)
description="Get Runtime Info") }) @AccessRequired(resource="domain", action="read") public class RuntimeInfo implements AdminCommand { public RuntimeInfo() {
}) @GetHabitatInfo.Constraint @AccessRequired(resource="domain", action="dump") public class GetHabitatInfo implements AdminCommand { @Inject
description="generate-domain-schema") }) @AccessRequired(resource="domain", action="generate-schema") public class GenerateDomainSchema implements AdminCommand { @Inject
description="List Supported Cipher Suites") }) @AccessRequired(resource="domain/security-service", action="read") public class ListSupportedCipherSuites implements AdminCommand {
@PerLookup @CommandLock(CommandLock.LockType.NONE) @AccessRequired(resource="domain/managed-job-config", action="update") public class ConfigureManagedJobs implements AdminCommand {
description="list-password-aliases") }) @AccessRequired(resource="domain/passwordAliases", action="read") public class ListPasswordAlias implements AdminCommand {
@I18n(AttachCommand.COMMAND_NAME) @ManagedJob @AccessRequired(resource="jobs/job/$jobID", action="attach") public class AttachCommand implements AdminCommand, AdminCommandListener {
}) @AccessRequired(resource="domain/passwordAliases/passwordAlias/$aliasName", action="delete") public class DeletePasswordAlias implements AdminCommand, AdminCommandSecurity.Preauthorization {
description="disable-secure-admin") }) @AccessRequired(resource="domain/secure-admin", action="disable") public class DisableSecureAdminCommand extends SecureAdminCommand {
description="enable-secure-admin") }) @AccessRequired(resource="domain/secure-admin", action="enable") public class EnableSecureAdminCommand extends SecureAdminCommand {