|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.admin.objects.MMAdminObject
com.metamatrix.admin.objects.MMPrincipal
public class MMPrincipal
Field Summary |
---|
Fields inherited from interface com.metamatrix.admin.api.objects.Principal |
---|
NAME_LEN_LIMIT, TYPE_ADMIN, TYPE_GROUP, TYPE_LABEL_ADMIN, TYPE_LABEL_GROUP, TYPE_LABEL_USER, TYPE_USER |
Fields inherited from interface com.metamatrix.admin.api.objects.AdminObject |
---|
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD |
Constructor Summary | |
---|---|
MMPrincipal(java.lang.String[] principalName,
int type)
Ctor |
Method Summary | |
---|---|
int |
getType()
Get the Principal type for this principal. |
java.lang.String |
getTypeLabel()
Get the Principal type String for this principal. |
static boolean |
isUserOrGroup(java.lang.String className)
Determine whether the given className
is either of Principal.TYPE_USER or Principal.TYPE_GROUP . |
java.lang.String |
toString()
Get MetaMatrix Object as a String |
Methods inherited from class com.metamatrix.admin.objects.MMAdminObject |
---|
buildIdentifier, buildIdentifierArray, buildIdentifierList, getCreated, getCreatedBy, getCreatedDate, getIdentifier, getIdentifierArray, getLastChangedBy, getLastChangedDate, getLastUpdated, getLastUpdatedBy, getName, getNameFromIdentifier, getObjectType, getParentName, getProperties, getPropertiesAsString, getPropertyValue, getProps, isDeployed, isEnabled, isRegistered, setCreated, setCreatedBy, setDeployed, setEnabled, setIdentifier, setLastUpdated, setLastUpdatedBy, setProperties, setRegistered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.admin.api.objects.AdminObject |
---|
getIdentifier, getName, getProperties, getPropertyValue |
Constructor Detail |
---|
public MMPrincipal(java.lang.String[] principalName, int type)
principalName
- The name of the Principal
.type
- The value of the Principal
.Method Detail |
---|
public java.lang.String toString()
MMAdminObject
toString
in class MMAdminObject
MMAdminObject.toString()
public int getType()
Principal
getType
in interface Principal
Principal.getType()
public java.lang.String getTypeLabel()
Principal
getTypeLabel
in interface Principal
Principal.getTypeLabel()
public static boolean isUserOrGroup(java.lang.String className)
className
is either of Principal.TYPE_USER
or Principal.TYPE_GROUP
.
className
- the className in question.
true
iff the given type represents
one or the other; User or Group.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |