public class SimpleWrappedPrincipalModel extends PageFlowScopeAdapter implements IPrincipalProvider, Externalizable
Modifier and Type | Field and Description |
---|---|
protected PrincipalModel |
fPrincipalModel |
fExpireWithPageFlow
Constructor and Description |
---|
SimpleWrappedPrincipalModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
Map<Object,Object> |
getAttributes()
Get all attributes as a Map.
|
String |
getDisplayName()
Get display name for this principal.
|
String |
getEmail()
Get the defined email address for this principal.
|
String |
getIconURL()
Get icon URL for this principal.
|
String |
getLink()
Get the linkable URL to open My Profile page for this principal.
|
String |
getPrincipalDN()
Get the value of the principal DN.
|
String |
getPrincipalID()
Get the principal object internal ID.
|
int |
getPrincipalType()
Get the type of principal used by this model.
|
IURI |
getPrincipalURI()
Get the value of the principal URI.
|
String |
getPrincipalURIAsString()
Get the internal principal object URI as String.
|
PrincipalModel |
getWrappedPrincipalModel() |
void |
readExternal(ObjectInput in)
Set the principal DN from an input.
|
void |
setPrincipalAlias(String alias)
Sets principal alias and initialized this content provider with principal data identified by this alias
|
void |
setPrincipalDN(String dn)
Get the value of the principal DN.
|
void |
setPrincipalID(String principalID)
Sets principal internal ID and initializes this content provider with principal data identified by this ID
|
void |
writeExternal(ObjectOutput out)
Get the principal DN as an output.
|
getExpireWithPageFlow, setExpireWithPageFlow
protected PrincipalModel fPrincipalModel
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- The ObjectInput containing the DN.IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- The ObjectOutput to write the DN into.IOException
public PrincipalModel getWrappedPrincipalModel()
public int getPrincipalType()
public Map<Object,Object> getAttributes()
getAttributes
in interface IPrincipalProvider
public String getDisplayName()
getDisplayName
in interface IPrincipalProvider
public String getEmail()
getEmail
in interface IPrincipalProvider
public String getIconURL()
getIconURL
in interface IPrincipalProvider
public String getLink()
getLink
in interface IPrincipalProvider
public String getPrincipalDN()
getPrincipalDN
in interface IPrincipalProvider
public String getPrincipalID()
getPrincipalID
in interface IPrincipalProvider
public void setPrincipalAlias(String alias)
setPrincipalAlias
in interface IPrincipalProvider
alias
- The alias value for this principal.public void setPrincipalDN(String dn)
setPrincipalDN
in interface IPrincipalProvider
dn
- The DN value for this principal.public void setPrincipalID(String principalID)
setPrincipalID
in interface IPrincipalProvider
principalID
- The Id value for this principal.public IURI getPrincipalURI()
public boolean equals(Object obj)
equals
in class Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.Object.equals(Object)
public String getPrincipalURIAsString()
getPrincipalURIAsString
in interface IPrincipalProvider