net.sf.springlayout.web.security
Interface PageAccessResolver

All Known Implementing Classes:
AbstractPageAccessResolver

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..

Author:
rob monie

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

initialisePageAccess

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.

Parameters:
request -
object -

getPageFunctionState

PageFunctionState getPageFunctionState(java.lang.String functionName)
Gets a page function state for a given function name for the current request.

Parameters:
functionName -
Returns:

isRunOnFormSubmission

boolean isRunOnFormSubmission()
Returns:
should this pageAccessResolver be run on form submission


Copyright © 2005-2007 Spring Layout Team. All Rights Reserved.