|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.security.NamingAuthority | +--com.bea.security.DataDrivenAuthority
The DataDrivenAuthority
class provides a way to programmatically create a new naming authority. By adding attributes, delimiters, dependencies, and sub-authorities, you can define new naming conventions.
By giving this class a name and adding attributes, delimiters,
dependencies, and sub-authorities, you can define new naming conventions and construct a
fully functional naming authority.
NamingAuthority
,
NameAttributeType
Fields inherited from class com.bea.security.NamingAuthority |
cachenames,
initialized,
maxentries,
mgr |
Constructor Summary | |
DataDrivenAuthority(java.lang.String authorityname,
java.lang.String delimiters)
Constructs a data driven authority by name and delimiter string. |
Method Summary | |
void |
addAttribute(NameAttributeType attribute)
Adds a attribute definition to this authority. |
void |
addDependency(java.lang.String authorityname)
Adds a dependent authority to this authority. |
void |
addSubAuthority(NamingAuthority subauthority)
Adds a sub-authority to this authority. |
NameAttributeType[] |
getAttributeTypes()
Gets the attribute types for this authority. |
java.lang.String |
getAuthorityName()
Gets this authority's name. |
java.lang.String |
getDelimiters()
Gets the list of delimiters for this authority. |
java.lang.String[] |
getDependencies()
Gets a list of this authority's dependent naming authority names. |
int |
getNumAttributes()
Gets the number of attributes in this authority. |
NamingAuthority[] |
getSubAuthorities()
Gets a list of references to sub-authorities provided by this authority. |
void |
setAuthorityName(java.lang.String name)
Sets the name of this authority. |
void |
setDelimiters(java.lang.String delimiters)
Sets the delimiters for this authority. |
Methods inherited from class com.bea.security.NamingAuthority |
assembleTokens,
equals,
getDeepTokenEnumeration,
getRuntime,
getTokenEnumeration,
hasSameAuthority |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DataDrivenAuthority(java.lang.String authorityname, java.lang.String delimiters)
authorityname
- the name of this naming authority.delimiters
- a String
of characters that are delimiters for this
authority.Method Detail |
public void addDependency(java.lang.String authorityname) throws ParameterException
authorityname
- the name of the naming authority this authority is dependent upon.public void addSubAuthority(NamingAuthority subauthority) throws ParameterException
sub-authority
- an authority to embed within this authority. By chaining the authorities
together, they will be
registered and unregistered together when the parent is registered or unregistered.public void addAttribute(NameAttributeType attribute) throws ParameterException
attribute
- a NameAttributeType
that defines a field within this name.
This field is typed to give it a behavior and can be optionally
associated with another authority.public void setAuthorityName(java.lang.String name) throws ParameterException
name
- the name of this authority.public void setDelimiters(java.lang.String delimiters) throws ParameterException
delimiters
- the delimiting characters for this name authority.public java.lang.String[] getDependencies()
Strings
.public NamingAuthority[] getSubAuthorities()
NamingAuthority
objects that are sub-authorities for this
naming authority.public java.lang.String getAuthorityName()
public java.lang.String getDelimiters()
public int getNumAttributes()
public NameAttributeType[] getAttributeTypes()
NameAttributeTypes
that define the fields within this
authority.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |