Package com.sun.enterprise.v3.admin
Class SetCommand
- java.lang.Object
-
- com.sun.enterprise.v3.admin.V2DottedNameSupport
-
- com.sun.enterprise.v3.admin.SetCommand
-
- All Implemented Interfaces:
AdminCommand,AdminCommandSecurity.AccessCheckProvider,AdminCommandSecurity.Preauthorization,org.glassfish.hk2.api.PostConstruct
@Service(name="set") @ExecuteOn(INSTANCE) @PerLookup public class SetCommand extends V2DottedNameSupport implements AdminCommand, org.glassfish.hk2.api.PostConstruct, AdminCommandSecurity.AccessCheckProvider, AdminCommandSecurity.Preauthorization
User: Jerome Dochez Date: Jul 11, 2008 Time: 4:39:05 AM
-
-
Constructor Summary
Constructors Constructor Description SetCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(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 theAccessChecks 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 orAccessRequiredannotations.voidpostConstruct()booleanpreAuthorization(AdminCommandContext context)static voidsetLeafElement(ConfigBean node, String elementName, String values)-
Methods inherited from class com.sun.enterprise.v3.admin.V2DottedNameSupport
applyOverrideRules, getAliasedParent, getAllDottedNodes, getAllDottedNodes, getAllSubDottedNames, getMatchingNodes, getNamedNodes, getNodeAttributes, matches, matchName, sortNodesByDottedName, sortTreeNodesByCompletePathName
-
-
-
-
Method Detail
-
postConstruct
public void postConstruct()
- Specified by:
postConstructin interfaceorg.glassfish.hk2.api.PostConstruct
-
preAuthorization
public boolean preAuthorization(AdminCommandContext context)
- Specified by:
preAuthorizationin interfaceAdminCommandSecurity.Preauthorization
-
getAccessChecks
public Collection<? extends AccessRequired.AccessCheck> getAccessChecks()
Description copied from interface:AdminCommandSecurity.AccessCheckProviderReturns theAccessChecks 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 orAccessRequiredannotations.- Specified by:
getAccessChecksin interfaceAdminCommandSecurity.AccessCheckProvider- Returns:
- the
AccessChecks
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommandExecutes 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:
executein interfaceAdminCommand- Parameters:
context- information
-
setLeafElement
public static void setLeafElement(ConfigBean node, String elementName, String values) throws TransactionFailure
- Throws:
TransactionFailure
-
-