Class SimpleWrappedPrincipalModel
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.dir.SimpleWrappedPrincipalModel
- All Implemented Interfaces:
IPageFlowScopeAdapter
,IPrincipalProvider
,Externalizable
,Serializable
public class SimpleWrappedPrincipalModel
extends PageFlowScopeAdapter
implements IPrincipalProvider, Externalizable
Base interface for directory objects content providers: users, groups and roles.
- See Also:
-
Field Summary
FieldsFields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.Get all attributes as a Map.Get display name for this principal.getEmail()
Get the defined email address for this principal.Get icon URL for this principal.getLink()
Get the linkable URL to open My Profile page for this principal.Get the value of the principal DN.Get the principal object internal ID.int
Get the type of principal used by this model.Get the value of the principal URI.Get the internal principal object URI as String.void
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 aliasvoid
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 IDvoid
Get the principal DN as an output.Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
-
Field Details
-
fPrincipalModel
-
-
Constructor Details
-
SimpleWrappedPrincipalModel
public SimpleWrappedPrincipalModel()
-
-
Method Details
-
readExternal
Set the principal DN from an input.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- The ObjectInput containing the DN.- Throws:
IOException
ClassNotFoundException
-
writeExternal
Get the principal DN as an output.- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- The ObjectOutput to write the DN into.- Throws:
IOException
-
getWrappedPrincipalModel
- Returns:
-
getPrincipalType
public int getPrincipalType()Get the type of principal used by this model. -
getAttributes
Get all attributes as a Map.- Specified by:
getAttributes
in interfaceIPrincipalProvider
- Returns:
- The attribute map for this principal.
-
getDisplayName
Get display name for this principal. It could be either role or group name, or combination of first and last name for the user- Specified by:
getDisplayName
in interfaceIPrincipalProvider
- Returns:
- The display name for this principal.
-
getEmail
Get the defined email address for this principal.- Specified by:
getEmail
in interfaceIPrincipalProvider
- Returns:
- The email address for this principal.
-
getIconURL
Get icon URL for this principal. Different icons are used for different principal types.- Specified by:
getIconURL
in interfaceIPrincipalProvider
- Returns:
- The URL for this principal's icon.
-
getLink
Get the linkable URL to open My Profile page for this principal.- Specified by:
getLink
in interfaceIPrincipalProvider
- Returns:
- The linkable URL as a string.
-
getPrincipalDN
Get the value of the principal DN.- Specified by:
getPrincipalDN
in interfaceIPrincipalProvider
- Returns:
- The DN value.
-
getPrincipalID
Get the principal object internal ID.- Specified by:
getPrincipalID
in interfaceIPrincipalProvider
- Returns:
- The Id value for this principal.
-
setPrincipalAlias
Sets principal alias and initialized this content provider with principal data identified by this alias- Specified by:
setPrincipalAlias
in interfaceIPrincipalProvider
- Parameters:
alias
- The alias value for this principal.
-
setPrincipalDN
Get the value of the principal DN.- Specified by:
setPrincipalDN
in interfaceIPrincipalProvider
- Parameters:
dn
- The DN value for this principal.
-
setPrincipalID
Sets principal internal ID and initializes this content provider with principal data identified by this ID- Specified by:
setPrincipalID
in interfaceIPrincipalProvider
- Parameters:
principalID
- The Id value for this principal.
-
getPrincipalURI
Get the value of the principal URI.- Returns:
- The IURI value for the principal.
-
equals
Indicates whether some other object is "equal to" this one. -
getPrincipalURIAsString
Get the internal principal object URI as String.- Specified by:
getPrincipalURIAsString
in interfaceIPrincipalProvider
- Returns:
- The URI, as a string.
-