Package com.spotfire.server.api.userdir
Class SpotfirePrincipal
java.lang.Object
com.spotfire.server.api.userdir.SpotfirePrincipal
- All Implemented Interfaces:
Principal
- Direct Known Subclasses:
GroupPrincipal,UserPrincipal
Represents a principal, such as a user or a group. Every principal is characterized by a GUID and a name. GUID guid
is unique for each principal, regardless of type of principal. The name is also unique, but only for principals of
the same type in the same domain.
Also, when a principal is removed and a new principal is later added with the same name, the GUID will differ between the principals. Therefore the GUID should always be used as an identifier for a principal, not the name.
- Since:
- 10.1
-
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal StringReturns the display name of this principal.final StringReturns the domain name of this principal.final StringgetEmail()Returns the email address of this principal.final GuidgetGuid()Returns the GUID of this principal.final StringgetName()Returns the name of this principal.inthashCode()final booleanisFixed()Indicates whether or not this principal is fixed (cannot be removed, renamed or manually altered in any other way - except for being enabled/disabled and locked/unlocked).
-
Method Details
-
getName
Returns the name of this principal. -
getDomainName
Returns the domain name of this principal.- Returns:
- the domain name of this principal
- Since:
- 10.1
-
getGuid
Returns the GUID of this principal.- Returns:
- the GUID of this principal
- Since:
- 10.1
-
getDisplayName
Returns the display name of this principal.- Returns:
- the display name of this principal
- Since:
- 10.1
-
getEmail
Returns the email address of this principal.- Returns:
- the email address of this principal, or
nullif no email address has been set - Since:
- 10.1
-
isFixed
public final boolean isFixed()Indicates whether or not this principal is fixed (cannot be removed, renamed or manually altered in any other way - except for being enabled/disabled and locked/unlocked).- Returns:
trueif this principal is fixed, andfalseotherwise- Since:
- 10.1
-
hashCode
public int hashCode() -
equals
-