|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthorizationService
Provides access to check permissions.
| Method Summary | |
|---|---|
boolean |
checkAccess(java.lang.String permissionValue)
Returns |
boolean |
checkAccess(java.lang.String permissionValue,
WorkflowEnabled workflowEnabledObject)
Returns true if the owner of the current session has both
the requested static RBAC authorization as well as the dynamic Workflow
authorization according to the Workflow of the given Workflow enabled
object. |
boolean |
checkAccess(java.lang.String permissionValue,
WorkflowModel workflowModel)
Returns true if the owner of the current session has both the
requested static RBAC authorization as well as the auhorization to initiate
the given Workflow model (in other words; to create a Workflow model instance from it)
Returns false otherwise |
boolean |
checkComponent(java.lang.String permissionValue,
int webid)
This method checks if the component that corresponds to the given permission is enabled or not. |
User |
getCurrentUser()
Returns the currently logged in user. |
java.lang.String[] |
getElementCreatePermission(java.lang.Class<? extends Element> elementClass)
Returns the create RBAC permissions associated with this element. |
java.lang.String[] |
getElementDeletePermission(java.lang.Class<? extends Element> elementClass)
Returns the Delete RBAC permission associated with this element. |
User |
getUserById(int id)
Returns the user specified by the SiteWorks id. |
User |
getUserByUsername(java.lang.String username)
Returns the user specified by a username. |
boolean |
login(java.lang.String username,
java.lang.String password,
javax.servlet.http.HttpServletRequest request)
Logs in the given user with the given password for the given http servlet request |
void |
registerCreatePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] createPermissions)
Called by element component type to register the create permissions registered by the element component definition |
void |
registerDeletePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] deletePermissions)
Called by element component type to register the delete permissions registered by the element component definition |
void |
unregisterCreatePermissions(java.lang.Class<? extends Element> elementClass)
Called by element component type to unregister the create permissions registered by the element component definition |
void |
unregisterDeletePermissions(java.lang.Class<? extends Element> elementClass)
Called by element component type to unregister the delete permissions registered by the element component definition |
| Method Detail |
|---|
boolean checkAccess(java.lang.String permissionValue)
permissionValue - Value that uniquely identifies the permission to check.
boolean checkAccess(java.lang.String permissionValue,
WorkflowEnabled workflowEnabledObject)
true if the owner of the current session has both
the requested static RBAC authorization as well as the dynamic Workflow
authorization according to the Workflow of the given Workflow enabled
object. Returns false otherwise.
permissionValue - RBAC authorization key to check authorization for.workflowEnabledObject - Workflow enabled object to check Workflow authorization
against.
true if the owner of the current session has both
static RBAC and dynamic Workflow authorization for the requested
RBAC permission and Workflow context.
boolean checkAccess(java.lang.String permissionValue,
WorkflowModel workflowModel)
true if the owner of the current session has both the
requested static RBAC authorization as well as the auhorization to initiate
the given Workflow model (in other words; to create a Workflow model instance from it)
Returns false otherwise
permissionValue - RBAC authorization key to check authorization forworkflowEnabledObject - Workflow model to check Workflow authorization
against
true if the owner of the current session has both static RBAC
and dynamic Workflow authorization to initiate the given Workflow model
boolean checkComponent(java.lang.String permissionValue,
int webid)
permissionValue - Label of the permission to check component access for
void registerCreatePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] createPermissions)
elementClass - Element class to register the create permissions forcreatePermissions - Create permissions to registervoid unregisterCreatePermissions(java.lang.Class<? extends Element> elementClass)
elementClass - Element class to unregister the create permissions for
void registerDeletePermissions(java.lang.Class<? extends Element> elementClass,
Permission[] deletePermissions)
elementClass - Element class to register the delete permissions fordeletePermissions - Delete permissions to registervoid unregisterDeletePermissions(java.lang.Class<? extends Element> elementClass)
elementClass - Element class to unregister the delete permissions forjava.lang.String[] getElementCreatePermission(java.lang.Class<? extends Element> elementClass)
java.lang.String[] getElementDeletePermission(java.lang.Class<? extends Element> elementClass)
boolean login(java.lang.String username,
java.lang.String password,
javax.servlet.http.HttpServletRequest request)
username - Username of the userpassword - Password of the userrequest - Current http servlet request
User getCurrentUser()
User getUserById(int id)
User getUserByUsername(java.lang.String username)
username - Username to search for (case sensitive).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||