Package org.glassfish.config.support
Class GenericListCommand
- java.lang.Object
-
- org.glassfish.config.support.GenericCrudCommand
-
- org.glassfish.config.support.GenericListCommand
-
- All Implemented Interfaces:
AdminCommand
,AdminCommandSecurity.AccessCheckProvider
,AdminCommandSecurity.Preauthorization
,CommandModelProvider
,org.glassfish.hk2.api.PostConstruct
@PerLookup public class GenericListCommand extends GenericCrudCommand implements AdminCommand, AdminCommandSecurity.AccessCheckProvider
Generic list command implementation.- Author:
- Jerome Dochez, Tom Mueller
-
-
Field Summary
-
Fields inherited from class org.glassfish.config.support.GenericCrudCommand
commandName, level, LOCAL_STRINGS, LOGGER, parentType, targetMethod, targetType
-
-
Constructor Summary
Constructors Constructor Description GenericListCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter valuesCollection<? extends AccessRequired.AccessCheck>
getAccessChecks()
Returns theAccessCheck
s the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics orAccessRequired
annotations.Class
getDecoratorClass()
Decorator class if particular commandCommandModel
getModel()
void
postConstruct()
-
Methods inherited from class org.glassfish.config.support.GenericCrudCommand
convertStringToProperties, elementName, getAnnotation, getInjectionResolver, loadClass, preAuthorization, setInjectionResolver
-
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstruct
in interfaceorg.glassfish.hk2.api.PostConstruct
- Overrides:
postConstruct
in classGenericCrudCommand
-
getAccessChecks
public Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
Description copied from interface:AdminCommandSecurity.AccessCheckProvider
Returns theAccessCheck
s the command has computed at runtime which should be included in the authorization, added to checks that secure admin infers from the command's CRUD or RestEndpoint characteristics orAccessRequired
annotations.- Specified by:
getAccessChecks
in interfaceAdminCommandSecurity.AccessCheckProvider
- Returns:
- the
AccessCheck
s
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommand
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
execute
in interfaceAdminCommand
- Parameters:
context
- information
-
getModel
public CommandModel getModel()
- Specified by:
getModel
in interfaceCommandModelProvider
-
getDecoratorClass
public Class getDecoratorClass()
Description copied from class:GenericCrudCommand
Decorator class if particular command- Specified by:
getDecoratorClass
in classGenericCrudCommand
- Returns:
-
-