Class FunctionalPrivilegeProvider
java.lang.Object
com.webmethods.caf.faces.bean.BaseFacesBean
com.webmethods.caf.faces.bean.BaseFacesSessionBean
com.webmethods.caf.faces.priviledge.FunctionalPrivilegeProvider
- All Implemented Interfaces:
IPageFlowScopeAdapter
,EventListener
,HttpSessionBindingListener
Determine if a given user has been granted a specific
functional privilege. If no user is provider, the current
user will be used.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
static final int
bitfield rights indicating READ (from IAccessRight)Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
fExpireWithPageFlow
Fields inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
DATA_BINDING_CLIENTS, EMPTY_RESOURCES, OUTCOME_ERROR, OUTCOME_OK, resourcesProviders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether the user has been granted with a functional privilege.protected void
release()
Override this method to release any resources associated with this session.void
setPrivAlias
(String alias) Set privilege aliasvoid
Set user ID.Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesSessionBean
getExpireWithPageFlow, setExpireWithPageFlow, valueBound, valueUnbound
Methods inherited from class com.webmethods.caf.faces.bean.BaseFacesBean
createMethodBinding, createMethodExpression, createValueBinding, createValueExpression, createValueExpression, error, error, error, error, error, getBean, getFacesContext, getLocale, getResourceInputStream, getResources, getResourcesProvider, getRootCause, getStackTrace, getTreeAttribute, isUserInRole, log, log, log, putTreeAttribute, resetDataBindingClients, resolveDataBinding, resolveDataBinding, resolveExpression, setValue
-
Field Details
-
m_privAlias
-
m_userID
-
READ_RIGHT
public static final int READ_RIGHTbitfield rights indicating READ (from IAccessRight)- See Also:
-
-
Constructor Details
-
FunctionalPrivilegeProvider
public FunctionalPrivilegeProvider()
-
-
Method Details
-
release
protected void release()Description copied from class:BaseFacesSessionBean
Override this method to release any resources associated with this session. Please note, the FacesContext is not valid for this function- Specified by:
release
in classBaseFacesSessionBean
-
getPrivAlias
- Returns:
- privilege alias
-
setPrivAlias
Set privilege alias- Parameters:
alias
-
-
getUserID
- Returns:
- use ID. return the current user ID if there was no user assigned.
-
setUserID
Set user ID.- Parameters:
userid
-
-
isGranted
public boolean isGranted()Check whether the user has been granted with a functional privilege.- Returns:
-
getCurrentUserID
- Returns:
- current user ID
-
getUserModel
- Returns:
- user model
- See Also:
-