com.waveset.object
Class AuthType

java.lang.Object
  extended bycom.waveset.util.AbstractXmlObject
      extended bycom.waveset.object.AuthType
All Implemented Interfaces:
javax.naming.Referenceable, XmlObject

public class AuthType
extends AbstractXmlObject


Field Summary
static java.lang.String APPROVAL
           
static java.lang.String ATT_DISPLAY_NAME
           
static java.lang.String ATT_EXTENDS
           
static java.lang.String ATT_KEY
           
static java.lang.String ATT_NAME
           
static java.lang.String ATT_RIGHTS
           
static java.lang.String code_id
           
static java.lang.String ELEMENT
           
static java.lang.String ORGANIZATION_APPROVAL
           
static java.lang.String RESOURCE_APPROVAL
           
static java.lang.String ROLE_APPROVAL
           
 
Fields inherited from class com.waveset.util.AbstractXmlObject
_trace
 
Constructor Summary
AuthType()
           
AuthType(org.w3c.dom.Element e)
           
 
Method Summary
protected  void addSubType(java.lang.String s)
           
 java.lang.String getDisplayName()
           
 java.lang.String getDisplayNameOrName()
           
 java.lang.String getElementName()
          Return the element name.
 java.lang.String getName()
           
 java.util.List getSubTypes()
           
 java.util.List getSuperTypes()
           
 boolean isApplicable(java.lang.String name)
          Test to see if this authorization type applies to another type.
 void parseXml(org.w3c.dom.Element e)
           
protected  void resolve()
           
 void setAuditKey(java.lang.String s)
           
 void setDisplayName(java.lang.String s)
           
 void setName(java.lang.String s)
           
 void setRights(Right[] rights)
           
 void setRights(java.lang.String s)
           
 void setSuperTypes(java.util.List l)
           
 void toXml(java.lang.StringBuffer b, int indent)
          Serialize into a buffer with optional indentation.
protected  void unresolve()
          Called by AuthTypes when we're rebuilding the resolutions after incremental type changes.
 
Methods inherited from class com.waveset.util.AbstractXmlObject
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

APPROVAL

public static final java.lang.String APPROVAL
See Also:
Constant Field Values

ROLE_APPROVAL

public static final java.lang.String ROLE_APPROVAL
See Also:
Constant Field Values

RESOURCE_APPROVAL

public static final java.lang.String RESOURCE_APPROVAL
See Also:
Constant Field Values

ORGANIZATION_APPROVAL

public static final java.lang.String ORGANIZATION_APPROVAL
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values

ATT_NAME

public static final java.lang.String ATT_NAME
See Also:
Constant Field Values

ATT_EXTENDS

public static final java.lang.String ATT_EXTENDS
See Also:
Constant Field Values

ATT_DISPLAY_NAME

public static final java.lang.String ATT_DISPLAY_NAME
See Also:
Constant Field Values

ATT_RIGHTS

public static final java.lang.String ATT_RIGHTS
See Also:
Constant Field Values

ATT_KEY

public static final java.lang.String ATT_KEY
See Also:
Constant Field Values
Constructor Detail

AuthType

public AuthType()

AuthType

public AuthType(org.w3c.dom.Element e)
Method Detail

setName

public void setName(java.lang.String s)

setDisplayName

public void setDisplayName(java.lang.String s)

setSuperTypes

public void setSuperTypes(java.util.List l)

setAuditKey

public void setAuditKey(java.lang.String s)

setRights

public void setRights(Right[] rights)

setRights

public void setRights(java.lang.String s)

unresolve

protected void unresolve()
Called by AuthTypes when we're rebuilding the resolutions after incremental type changes.


addSubType

protected void addSubType(java.lang.String s)

resolve

protected void resolve()

getElementName

public java.lang.String getElementName()
Description copied from class: AbstractXmlObject
Return the element name.

Specified by:
getElementName in interface XmlObject
Specified by:
getElementName in class AbstractXmlObject

getName

public java.lang.String getName()

getDisplayName

public java.lang.String getDisplayName()

getDisplayNameOrName

public java.lang.String getDisplayNameOrName()

getSuperTypes

public java.util.List getSuperTypes()

getSubTypes

public java.util.List getSubTypes()

isApplicable

public boolean isApplicable(java.lang.String name)
Test to see if this authorization type applies to another type. This is true if the names are the same, or the given name is in the subTypes list of this type. Since we keep our own name in the subtype map, just have to do one hash.


parseXml

public void parseXml(org.w3c.dom.Element e)

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Description copied from class: AbstractXmlObject
Serialize into a buffer with optional indentation. This must be implemented by the subclass.

Specified by:
toXml in interface XmlObject
Specified by:
toXml in class AbstractXmlObject