|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.schemedit.security.auth.TypedPrincipal
org.dlese.dpc.schemedit.security.auth.CollectionRolePrincipal
public class CollectionRolePrincipal
TypedPrincipals are derived from, and can be treated like Principals but they also contain extra information about the type of the Principal which can be USER, GROUP or DOMAIN. I'm not 100% certain that this is a good way of doing things. Suggestions welcome.
| Field Summary |
|---|
| Fields inherited from class org.dlese.dpc.schemedit.security.auth.TypedPrincipal |
|---|
AUTH, COLLECTION, DOMAIN, GROUP, name, type, typeMap, UNKNOWN, USER |
| Constructor Summary | |
|---|---|
CollectionRolePrincipal()
Create a CollectionRolePrincipal with a blank name. |
|
CollectionRolePrincipal(String name,
String collection)
Create a CollectionRolePrincipal with a name. |
|
CollectionRolePrincipal(String name,
String collection,
int type)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compares the specified Object with this TypedPrincipal
for equality. |
String |
getCollection()
|
void |
setCollection(String collection)
|
| Methods inherited from class org.dlese.dpc.schemedit.security.auth.TypedPrincipal |
|---|
getName, getType, getTypeName, hashCode, setName, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.security.Principal |
|---|
getName, hashCode, toString |
| Constructor Detail |
|---|
public CollectionRolePrincipal(String name,
String collection,
int type)
public CollectionRolePrincipal(String name,
String collection)
name - the name for this Principal.
NullPointerException - if the name
is null.public CollectionRolePrincipal()
| Method Detail |
|---|
public String getCollection()
public void setCollection(String collection)
public boolean equals(Object o)
TypedPrincipalTypedPrincipal
for equality. Returns true if the given object is also a
TypedPrincipal and the two TypedPrincipals have the
same name and type. If the object is any other kind Principal
its will be considered equal if the name matches.
equals in interface Principalequals in class TypedPrincipalo - Object to be compared for equality with this TypedPrincipal.
TypedPrincipal.
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||