|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PageAccessResolver
Responsible for determining a user's access to the current resource / page, firstly in terms of edit / read / no access and secondly in terms of access to individual functions for the page. For example for a given page or request, it may be necessary to determine the display of an 'edit' or 'save' button based on the current user's roles and various other factors such as the status of the current command object. Implementing classes should generally not implement this interface directly but rather extend the AbstractPageAccessResolver class as it handles storage and retrieval of function data in the request and provides helper methods for accessing the function permission map..
Method Summary | |
---|---|
PageFunctionState |
getPageFunctionState(java.lang.String functionName)
Gets a page function state for a given function name for the current request. |
void |
initialisePageAccess(javax.servlet.http.HttpServletRequest request,
java.lang.Object object)
Should initialise all page function access requirements such as read edit mode access and access to functions for this request. |
boolean |
isRunOnFormSubmission()
|
Method Detail |
---|
void initialisePageAccess(javax.servlet.http.HttpServletRequest request, java.lang.Object object)
request
- object
- PageFunctionState getPageFunctionState(java.lang.String functionName)
functionName
-
boolean isRunOnFormSubmission()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |