com.webmethods.caf.faces.data.dir
Class UserModel
java.lang.Object
com.webmethods.caf.faces.bean.PageFlowScopeAdapter
com.webmethods.caf.faces.data.dir.PrincipalModel
com.webmethods.caf.faces.data.dir.UserModel
- All Implemented Interfaces:
- IPageFlowScopeAdapter, IPrincipalProvider, IUserProvider, Externalizable, Serializable
public class UserModel
- extends PrincipalModel
- implements IUserProvider
Base interface implementation for user content provider.
- Since:
- 7.0
- See Also:
- Serialized Form
Constructor Summary |
UserModel()
Default constructor. |
Methods inherited from class com.webmethods.caf.faces.data.dir.PrincipalModel |
clear, equals, getAttributeProvider, getAttributeProviders, getAttributeProvidersMap, getAttributes, getDirPrincipal, getDirSystemBizPolicy, getEmail, getIconURL, getLink, getPortalContext, getPrincipalAttributeBizPolicy, getPrincipalBizPolicy, getPrincipalDN, getPrincipalID, getPrincipalURI, getPrincipalURIAsString, readExternal, setDirPrincipal, setPrincipalAlias, setPrincipalDN, setPrincipalID, setPrincipalURI, toString, writeExternal |
UserModel
public UserModel()
- Default constructor. Provides info for the current user unless the setPrincipalURI is called
with a different principal.
getPrincipalType
public int getPrincipalType()
- Get the type of principal used by this model.
- Specified by:
getPrincipalType
in class PrincipalModel
- Returns:
IDirConstants.TYPE_USER
getDisplayName
public String getDisplayName()
- Get display name for this principal.
- Specified by:
getDisplayName
in interface IPrincipalProvider
- Specified by:
getDisplayName
in class PrincipalModel
- Returns:
- The display name for this principal.
getGroupMembership
public List getGroupMembership()
- Gets a list of groups this user is a member of.
- Specified by:
getGroupMembership
in interface IUserProvider
- Returns:
- List of
IPrincipalProvider
. May return null if there was an error retrieving the membership.
getRoleMembership
public List getRoleMembership()
- Gets a list of roles this user is a member of.
- Specified by:
getRoleMembership
in interface IUserProvider
- Returns:
- List of
IPrincipalProvider
. May return null if there was an error retrieving the membership.