FileDocCategorySizeDatePackage
AuthRealmConfigImpl.javaAPI DocGlassfish v2 API4762Fri May 04 22:23:16 BST 2007com.sun.enterprise.management.config

AuthRealmConfigImpl

public final class AuthRealmConfigImpl extends com.sun.enterprise.management.config.AMXConfigImplBase
Configuration for the <auth-realm> element.

Fields Summary
private static final String[]
STRING_SIG
private static final String[]
UPG_SIG
Constructors Summary
public AuthRealmConfigImpl(com.sun.enterprise.management.support.Delegate delegate)

		super( delegate );
	
Methods Summary
public voidaddUser(java.lang.String user, java.lang.String password, java.lang.String[] groupList)

    
		 
	 
	      
	      
	       
	
		getDelegate().invoke(
		    "addUser",
		    new Object[] { user, password, groupList },
		    UPG_SIG );
	
public java.lang.String[]getGroupNames()

	    String[]  result  = null;
	    
	    // offline is implemented as an Attribute (as it should be)
	    // online is implemented (incorrectly) as an operation.
	    try
	    {
		    result  = (String[])getDelegate().invoke( "getGroupNames", null, null );
		}
		catch( Exception e )
		{
		    try
		    {
		        result  = (String[])delegateGetAttributeNoThrow( "GroupNames" );
		    }
		    catch( Exception ee )
		    {
		        // may not be any for this type of realm
		    }
		}
		
		return result;
	
public java.lang.String[]getUserGroupNames(java.lang.String user)

		return (String[])getDelegate().invoke(
		    "getUserGroupNames",
		    new Object[] { user },
		    STRING_SIG );
	
public java.lang.String[]getUserNames()

	    String[]  result  = null;
	    
	    // offline is implemented as an Attribute (as it should be)
	    // online is implemented (incorrectly) as an operation.
	    try
	    {
		    result  = (String[])getDelegate().invoke( "getUserNames", null, null );
		}
		catch( Exception e )
		{
		    try
		    {
		        result  = (String[])delegateGetAttributeNoThrow( "UserNames" );
		    }
		    catch( Exception ee )
		    {
		        // may not be any for this type of realm
		    }
		}
		
		return result;
	
public voidremoveUser(java.lang.String user)

		getDelegate().invoke( "removeUser", new Object[] { user }, STRING_SIG );
	
public voidupdateUser(java.lang.String user, java.lang.String password, java.lang.String[] groupList)

		getDelegate().invoke( "updateUser",
		    new Object[] { user, password, groupList },
		    UPG_SIG );