|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.pbac2.pdp.webadmin.PolicyAdmin
public class PolicyAdmin
Code to create a web administration interface for PBAC policies. To use it, create a new PolicyAdmin object in your JSP page and then call processPOST(). Call showAdmin() to display a table showing the current policies and resources.
| Constructor Summary | |
|---|---|
PolicyAdmin(HttpServletRequest request)
Create a new PolicyAdmin from the parameters in this request. |
|
| Method Summary | |
|---|---|
static void |
downloadStaticPolicy(HttpServletRequest request,
HttpServletResponse response)
|
String |
processPOST()
Check whether this request is a POST asking us to update anything. |
void |
registerResourceTypeLink(String resourceType,
String linkStem)
Register a link which can be used to view resources of the given type. |
void |
showAdmin(Writer out)
Write an HTML table listing all policies. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PolicyAdmin(HttpServletRequest request)
throws Stop
Stop| Method Detail |
|---|
public void registerResourceTypeLink(String resourceType,
String linkStem)
resourceType - the type of resource which uses this linklinkStem - the start of the href value for links
The actual target of the link for each resource in the list will be
linkStem + "?resource=..."
public String processPOST()
throws Stop,
GridFailureException,
org.apache.commons.fileupload.FileUploadException,
CertificateException,
IOException
Stop
GridFailureException
org.apache.commons.fileupload.FileUploadException
CertificateException
IOException
public void showAdmin(Writer out)
throws IOException,
Stop
out - stream to write to
IOException
Stop
public static void downloadStaticPolicy(HttpServletRequest request,
HttpServletResponse response)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||