com.metamatrix.admin.objects
Class MMPrincipal

java.lang.Object
  extended by com.metamatrix.admin.objects.MMAdminObject
      extended by com.metamatrix.admin.objects.MMPrincipal
All Implemented Interfaces:
AdminObject, Principal, java.io.Serializable
Direct Known Subclasses:
MMGroup, MMUser

public class MMPrincipal
extends MMAdminObject
implements Principal

Since:
4.3
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.metamatrix.admin.objects.MMAdminObject
deployed, enabled, identifier, identifierParts, name, OBJECT_TYPE_CACHE, OBJECT_TYPE_CONNECTOR_BINDING, OBJECT_TYPE_CONNECTOR_TYPE, OBJECT_TYPE_DQP, OBJECT_TYPE_ENTITLEMENT, OBJECT_TYPE_EXTENSION_MODULE, OBJECT_TYPE_GROUP, OBJECT_TYPE_HOST, OBJECT_TYPE_LOG_CONFIGURATION, OBJECT_TYPE_MODEL, OBJECT_TYPE_PROCESS_OBJECT, OBJECT_TYPE_PROPERTY_DEFINITION, OBJECT_TYPE_QUEUE_WORKER_POOL, OBJECT_TYPE_REQUEST, OBJECT_TYPE_RESOURCE, OBJECT_TYPE_ROLE, OBJECT_TYPE_SERVICE, OBJECT_TYPE_SESSION, OBJECT_TYPE_SYSTEM_OBJECT, OBJECT_TYPE_TRANSACTION, OBJECT_TYPE_USER, OBJECT_TYPE_VDB, OBJECTS_PACKAGE, registered, serialVersionUID
 
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

MMPrincipal

public MMPrincipal(java.lang.String[] principalName,
                   int type)
Ctor

Parameters:
principalName - The name of the Principal.
type - The value of the Principal.
Since:
4.3
Method Detail

toString

public java.lang.String toString()
Description copied from class: MMAdminObject
Get MetaMatrix Object as a String

Specified by:
toString in class MMAdminObject
Since:
4.3
See Also:
MMAdminObject.toString()

getType

public int getType()
Description copied from interface: Principal
Get the Principal type for this principal.

Specified by:
getType in interface Principal
Returns:
the internal type of this user.
Since:
4.3
See Also:
Principal.getType()

getTypeLabel

public java.lang.String getTypeLabel()
Description copied from interface: Principal
Get the Principal type String for this principal.

Specified by:
getTypeLabel in interface Principal
Returns:
the String representation type of this user.
Since:
4.3
See Also:
Principal.getTypeLabel()

isUserOrGroup

public static boolean isUserOrGroup(java.lang.String className)
Determine whether the given className is either of Principal.TYPE_USER or Principal.TYPE_GROUP.

Parameters:
className - the className in question.
Returns:
true iff the given type represents one or the other; User or Group.
Since:
4.3


Copyright © 2009. All Rights Reserved.