FileDocCategorySizeDatePackage
SecurityMapConfigImpl.javaAPI DocGlassfish v2 API4791Fri May 04 22:23:20 BST 2007com.sun.enterprise.management.config

SecurityMapConfigImpl

public final class SecurityMapConfigImpl extends com.sun.enterprise.management.config.AMXConfigImplBase
since
Appserver 9.0

Fields Summary
Constructors Summary
public SecurityMapConfigImpl(com.sun.enterprise.management.support.Delegate delegate)

        super( delegate );
    
Methods Summary
protected voidaddCustomMappings(com.sun.enterprise.management.support.AMXAttributeNameMapper mapper)

	    super.addCustomMappings( mapper );
	    
		mapper.matchName( "PrincipalNames", "Principal" );
		mapper.matchName( "UserGroupNames", "UserGroup" );
	
public voidcreatePrincipal(java.lang.String principal)

	    final String[]  existing    = self().getPrincipalNames();
	    
	    final Set<String>   newSet	= GSetUtil.newSet( existing );
	    newSet.add( principal );
	    
	    final String[]  newOnes = GSetUtil.toStringArray( newSet );
	    
	    delegateSetAttributeNoThrow( "PrincipalNames", newOnes );
	
public voidcreateUserGroup(java.lang.String userGroup)

	    final String[]  existing    = self().getUserGroupNames();
	    
	    final Set<String>   newSet	= GSetUtil.newSet( existing );
	    newSet.add( userGroup );
	    
	    final String[]  newOnes = GSetUtil.toStringArray( newSet );
	    
	    delegateSetAttributeNoThrow( "UserGroupNames", newOnes );
	
public voidremovePrincipal(java.lang.String principal)

	    final String[]  existing    = self().getPrincipalNames();
	    
	    final Set<String>   newSet	= GSetUtil.newSet( existing );
	    newSet.remove( principal );
	    
	    final String[]  newOnes = GSetUtil.toStringArray( newSet );
	    
	    delegateSetAttributeNoThrow( "PrincipalNames", newOnes );
	
public voidremoveUserGroup(java.lang.String userGroup)

	    final String[]  existing    = self().getUserGroupNames();
	    
	    final Set<String>   newSet	= GSetUtil.newSet( existing );
	    newSet.remove( userGroup );
	    
	    final String[]  newOnes = GSetUtil.toStringArray( newSet );
	    
	    delegateSetAttributeNoThrow( "UserGroupNames", newOnes );
	
private com.sun.appserv.management.config.SecurityMapConfigself()

	    return (SecurityMapConfig)getSelf();