|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Principal
This class contains information for a principal. This information is the union of information found in a User
and a Group
.
Field Summary | |
---|---|
static java.lang.String |
PRINCIPALTYPE_GROUP
Group principal type. |
static java.lang.String |
PRINCIPALTYPE_SERVICE
Service principal type. |
static java.lang.String |
PRINCIPALTYPE_SPECIAL
Deprecated. Use Principal.PRINCIPALTYPE_SYSTEM or Principal.PRINCIPALTYPE_SERVICE instead. |
static java.lang.String |
PRINCIPALTYPE_SYSTEM
System principal type. |
static java.lang.String |
PRINCIPALTYPE_USER
User principal type. |
static java.lang.String |
STATUS_CURRENT
Represents when the status of an object is current (active in the system). |
static java.lang.String |
STATUS_OBSOLETE
Represents when the status of an object is obsolete (deleted from the system). |
static int |
VISIBILITY_SEARCHES
The principal is visible to searches. |
static int |
VISIBLITY_GUI
The principal is visible and can be shown in the user interface. |
static int |
VISIBLITY_INVISIBLE
The principal is invisible. |
Method Summary | |
---|---|
void |
addEmailAlias(java.lang.String alias)
Adds an email alias for this principal. |
void |
clearEmailAlias()
Clears the email alias for this principal. |
java.lang.String |
getCanonicalName()
Retrieves the canonical name of this principal. |
java.lang.String |
getCommonName()
Retrieves the common (display) name of this principal. |
java.lang.String |
getDescription()
Retrieves the description. |
java.util.Set |
getDirectGroupMemberships()
Retrieves a set of Group objects indicating those groups to which this principal directly belongs. |
java.lang.String |
getDomainCommonName()
Retrieves the common (display) name of the domain associated with this principal. |
java.lang.String |
getDomainName()
Retrieves the canonical name of the domain associated with this principal. |
java.lang.String |
getEmail()
Retrieves the primary email identifier associated with this principal. |
java.util.List |
getEmailAlias()
Retrieves a list of the secondary email addresses of the principal. |
java.util.Set |
getGroupMemberships()
Retrieves a set of Group objects indicating those groups to which this principal belongs. |
java.lang.String |
getOid()
Retrieves the principal identifier. |
java.lang.String |
getOrg()
Retrieves the organization to which the principal belongs. |
java.lang.String |
getPrincipalType()
Retrieves the principal type. |
java.util.Set |
getRoleMembership()
Retrieves a set of Role objects indicating those roles which this principal has. |
java.lang.String |
getStatus()
Retrieves the principal's status. |
java.util.Date |
getTimestampCreated()
Retrieves the timestamp that was created for the principal. |
java.util.Date |
getTimestampUpdated()
Retrieves the timestamp that was updated for the principal. |
int |
getVisibility()
Retrieves the visibility level of the principal, indicating whether the principal can be shown in the user interface, or whether it qualifies for searches. |
boolean |
isLocal()
Determines whether this principal is local. |
boolean |
isLocked()
Determines whether this principal is locked. |
boolean |
isSystem()
Determines whether this is a system principal. |
void |
setCanonicalName(java.lang.String canonicalName)
Sets the principal's canonical name. |
void |
setCommonName(java.lang.String commonName)
Sets the principal's common name. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setDomainName(java.lang.String domainName)
Sets the principal's domain name. |
void |
setEmail(java.lang.String email)
Sets the principal's email identifier. |
void |
setEmailAliases(java.util.List emailAlias)
Sets the email aliases. |
void |
setIsSystem(boolean isSystem)
Sets whether this principal is a system principal. |
void |
setLocked(boolean locked)
Sets whether the principal is locked. |
void |
setOid(java.lang.String oid)
Sets the principal's identifier. |
void |
setOrg(java.lang.String org)
Sets the principal's organization. |
void |
setPrincipalType(java.lang.String principalType)
Sets the principal's type. |
void |
setStatus(java.lang.String status)
Sets the principal's status. |
void |
setVisibility(int visibility)
Sets the principal's visibility level. |
Field Detail |
---|
static final int VISIBLITY_INVISIBLE
static final int VISIBILITY_SEARCHES
static final int VISIBLITY_GUI
static final java.lang.String STATUS_CURRENT
static final java.lang.String STATUS_OBSOLETE
static final java.lang.String PRINCIPALTYPE_GROUP
static final java.lang.String PRINCIPALTYPE_SERVICE
static final java.lang.String PRINCIPALTYPE_SPECIAL
Principal.PRINCIPALTYPE_SYSTEM
or Principal.PRINCIPALTYPE_SERVICE
instead.
static final java.lang.String PRINCIPALTYPE_SYSTEM
static final java.lang.String PRINCIPALTYPE_USER
Method Detail |
---|
void setEmailAliases(java.util.List emailAlias)
emailAlias
- A list of email aliases.java.lang.String getDescription()
java.util.Date getTimestampCreated()
java.util.Date getTimestampUpdated()
void setDescription(java.lang.String description)
description
- The description.java.lang.String getCanonicalName()
{getCanonicalName(), getDomainName()}
uniquely identifies the principal.
java.lang.String getCommonName()
java.lang.String getDomainName()
java.lang.String getDomainCommonName()
java.lang.String getOid()
java.lang.String getStatus()
java.lang.String getEmail()
java.lang.String getOrg()
void setCommonName(java.lang.String commonName)
commonName
- The principal's common name.void setStatus(java.lang.String status)
status
- The principal's status.void setDomainName(java.lang.String domainName)
domainName
- The principal's domain name.void setCanonicalName(java.lang.String canonicalName)
canonicalName
- The principal's canonical name.void setOid(java.lang.String oid)
oid
- The principal's identifier.void setPrincipalType(java.lang.String principalType)
principalType
- The principal's type.void setEmail(java.lang.String email)
email
- The principal's email identifier.void setOrg(java.lang.String org)
org
- The principal's organization.java.util.List getEmailAlias()
java.util.Set getGroupMemberships()
Group
objects indicating those groups to which this principal belongs.
null
,
depending on the method that returned this object. For example, a search could omit this for efficiency.java.util.Set getDirectGroupMemberships()
Group
objects indicating those groups to which this principal directly belongs.
This is a subset of those groups that would be returned by getGroupMemberships()
.
null
,
depending on the method that returned this object. For example, a search could omit this for efficiency.java.util.Set getRoleMembership()
Role
objects indicating those roles which this principal has.
The roles returned are either directly assigned or inherited by the principal from its ancestors.
null
,
depending on the method that returned this object. For example, a search could omit this for efficiency.int getVisibility()
VISIBLITY_GUI
.boolean isSystem()
true
if this is a system principal, false
otherwise.void clearEmailAlias()
void addEmailAlias(java.lang.String alias)
boolean isLocal()
true
if this principal is local, false
otherwise.java.lang.String getPrincipalType()
void setVisibility(int visibility)
visibility
- The principal's visibility level.void setIsSystem(boolean isSystem)
isSystem
- true
if this principal is to be a system principal, false
otherwise.void setLocked(boolean locked)
locked
- true
if the principal is locked, false
otherwise.boolean isLocked()
true
if the principal is locked, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |