|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface PermissionPlugin
Interface that deifines a plug-in mechanism for the PermissionFilter of this package. This mechanism can be used to customise the behaviour of the PermissionFilter. Plug-in permissions will be tested before any standard PermissionFilter permissions.
| Method Summary | |
|---|---|
boolean |
allow(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Perform required authorisation here. |
void |
destroy()
Destroy the plug-in. |
java.lang.String |
getDenied()
Return the URL of the view that must be generated if permission was not granted. |
void |
init(java.lang.String name,
java.util.Properties props)
Initialise the plug-in with the configuration properties obtained from the PermissionFilter configuration file. |
void |
setDenied(java.lang.String view)
Set the URL of the view that must be generated if permission was not granted. |
| Method Detail |
|---|
void init(java.lang.String name,
java.util.Properties props)
name - String containing the name of this plug-in.props - Configuration properties.
boolean allow(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
request - The servlet request.response - The servlet response.
javax.servlet.ServletException
java.io.IOExceptionjava.lang.String getDenied()
void setDenied(java.lang.String view)
view - String containing the view URL.void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||