org.glassfish.admin.rest.cli
Class CreatePrincipalCommand

java.lang.Object
  extended by org.glassfish.admin.rest.cli.CreatePrincipalCommand
All Implemented Interfaces:
AdminCommand
Direct Known Subclasses:
DeletePrincipalCommand

@Service(name="__create-principal")
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public class CreatePrincipalCommand
extends java.lang.Object
implements AdminCommand

Author:
jasonlee

Field Summary
protected  ConnectorConnectionPool[] ccPools
           
protected  Domain domain
           
protected  java.lang.String mapName
           
protected  java.lang.String poolName
           
protected  java.lang.String[] principals
           
 
Constructor Summary
CreatePrincipalCommand()
           
 
Method Summary
 void execute(AdminCommandContext context)
           
static SecurityMap getSpecifiedSecurityMapForPool(ConnectorConnectionPool[] ccPools, java.lang.String poolName, java.lang.String mapName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

domain

protected Domain domain

poolName

protected java.lang.String poolName

mapName

protected java.lang.String mapName

principals

protected java.lang.String[] principals

ccPools

protected ConnectorConnectionPool[] ccPools
Constructor Detail

CreatePrincipalCommand

public CreatePrincipalCommand()
Method Detail

execute

public void execute(AdminCommandContext context)
Specified by:
execute in interface AdminCommand

getSpecifiedSecurityMapForPool

public static SecurityMap getSpecifiedSecurityMapForPool(ConnectorConnectionPool[] ccPools,
                                                         java.lang.String poolName,
                                                         java.lang.String mapName)


Copyright © 2012 GlassFish Community. All Rights Reserved.