|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.platform.security.api.BasicMetaMatrixPrincipal
public class BasicMetaMatrixPrincipal
Field Summary |
---|
Fields inherited from interface com.metamatrix.platform.security.api.MetaMatrixPrincipal |
---|
NAME_LEN_LIMIT, TYPE_ADMIN, TYPE_GROUP, TYPE_LABEL_ADMIN, TYPE_LABEL_GROUP, TYPE_LABEL_USER, TYPE_NAMES, TYPE_USER |
Constructor Summary | |
---|---|
protected |
BasicMetaMatrixPrincipal(BasicMetaMatrixPrincipal obj)
Copy CTOR. |
|
BasicMetaMatrixPrincipal(java.lang.String name,
int type)
Create a minimal BasicMetaMatrixPrincipal . |
|
BasicMetaMatrixPrincipal(java.lang.String name,
int type,
java.util.Set groupNames)
Create a BasicMetaMatrixPrincipal with all attributes required for
display in the MetaMatrix Console. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Return a cloned instance of this object. |
boolean |
equals(java.lang.Object par1)
|
java.util.Set |
getGroupNames()
Returns the Principal for each group that this principal is a member of. |
MetaMatrixPrincipalName |
getMetaMatrixPrincipalName()
Get the MetaMatrixPrincipalName for this principal. |
java.lang.String |
getName()
Returns the name of this principal. |
int |
getType()
Get the type of principal |
java.lang.String |
getTypeLabel()
Get the String form for the type of principal |
int |
hashCode()
|
static MetaMatrixPrincipal |
merge(MetaMatrixPrincipal p1,
MetaMatrixPrincipal p2)
Merge all of the attributes of the input principal into the target principal. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicMetaMatrixPrincipal(java.lang.String name, int type, java.util.Set groupNames)
BasicMetaMatrixPrincipal
with all attributes required for
display in the MetaMatrix Console.
name
- the name of the principal.type
- the principal type (user or group) see MetaMatrixPrincipal
.groupNames
- the memberships to which this principal belongs (explicitly).properties
- the properties that will be displayed in the Console (location, phone #, etc)
for this principal. NOTE: these properties may be null
.public BasicMetaMatrixPrincipal(java.lang.String name, int type)
BasicMetaMatrixPrincipal
.
NOTE: For this object to be displayed properly in the MetaMatrix Console, it's group memberships must be added after creation. This is currently not exposed.
name
- the name of the principal.type
- the principal type (user or group) see MetaMatrixPrincipal
.protected BasicMetaMatrixPrincipal(BasicMetaMatrixPrincipal obj)
obj
- the object to copyMethod Detail |
---|
public MetaMatrixPrincipalName getMetaMatrixPrincipalName()
MetaMatrixPrincipalName
for this principal.
getMetaMatrixPrincipalName
in interface MetaMatrixPrincipal
MetaMatrixPrincipalName
for this principal.MetaMatrixPrincipaName.
public java.util.Set getGroupNames()
getGroupNames
in interface MetaMatrixPrincipal
public boolean equals(java.lang.Object par1)
equals
in interface java.security.Principal
equals
in class java.lang.Object
public int getType()
getType
in interface MetaMatrixPrincipal
public java.lang.String getTypeLabel()
getTypeLabel
in interface MetaMatrixPrincipal
public java.lang.String getName()
getName
in interface java.security.Principal
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in interface MetaMatrixPrincipal
clone
in class java.lang.Object
public static MetaMatrixPrincipal merge(MetaMatrixPrincipal p1, MetaMatrixPrincipal p2) throws InvalidSessionException
p1
- the first principal that is to be mergedp2
- the second principal that is to be merged
InvalidMetaMatrixSessionException
- if the two input MetaMatrixPrincipal
instances do not have the same username.
java.lang.IllegalArgumentException
- if either of the two input principals
are null.
InvalidSessionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |