com.webmethods.caf.faces.data.dir
Class RoleModel

java.lang.Object
  extended by com.webmethods.caf.faces.bean.PageFlowScopeAdapter
      extended by com.webmethods.caf.faces.data.dir.PrincipalModel
          extended by com.webmethods.caf.faces.data.dir.RoleModel
All Implemented Interfaces:
IPageFlowScopeAdapter, IPrincipalProvider, IRoleProvider, Externalizable, Serializable

public class RoleModel
extends PrincipalModel
implements IRoleProvider

Base interface implementation for groups content provider.

Since:
7.0
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.webmethods.caf.faces.data.dir.PrincipalModel
fDirPrincipal, fDirSysBizPolicy, fPapBizPolicy, fPortalContext, fPrincipalAttributes, fPrincipalBizPolicy, fProvidersMap
 
Fields inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
fExpireWithPageFlow
 
Constructor Summary
RoleModel()
          Default constructor.
 
Method Summary
 String getDisplayName()
          Get display name for this principal.
 List getMembers()
          Get a list of members of this role.
 int getPrincipalType()
          Get the type of principal used by this model.
 boolean supportsMembership()
          Will this role type supports membership editing.
 
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
 
Methods inherited from class com.webmethods.caf.faces.bean.PageFlowScopeAdapter
getExpireWithPageFlow, setExpireWithPageFlow
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.webmethods.caf.faces.data.dir.IPrincipalProvider
getAttributes, getEmail, getIconURL, getLink, getPrincipalDN, getPrincipalID, getPrincipalURIAsString, setPrincipalAlias, setPrincipalDN, setPrincipalID
 

Constructor Detail

RoleModel

public RoleModel()
Default constructor. Provides info for the current user unless the setPrincipalURI is called with a different principal.

Method Detail

getPrincipalType

public int getPrincipalType()
Get the type of principal used by this model.

Specified by:
getPrincipalType in class PrincipalModel
Returns:
IDirConstants.TYPE_ROLE

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.

getMembers

public List getMembers()
Get a list of members of this role.

Specified by:
getMembers in interface IRoleProvider
Returns:
List of IPrincipalProvider.

supportsMembership

public boolean supportsMembership()
Will this role type supports membership editing.

Specified by:
supportsMembership in interface IRoleProvider
Returns:
True if membership editing is allowed. Otherwise false.