uk.ac.soton.itinnovation.grid.service.account.webadmin
Class AccountAdmin

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.account.webadmin.AccountAdmin
Direct Known Subclasses:
PrivateAccountAdmin, TradeAccountAdmin

public abstract class AccountAdmin
extends Object

Code to create a web administration interface for account services.


Field Summary
protected static org.hibernate.SessionFactory factory
           
protected static PDPImpl pdp
           
protected  HttpServletRequest request
           
protected  String resourceID
           
protected  URL thisServiceURL
           
 
Constructor Summary
AccountAdmin(HttpServletRequest request)
          Create a new AccountAdmin from the parameters in this request.
 
Method Summary
 String processPOST()
          Check whether this request is a POST asking us to update the ACLs.
protected  String row(String heading, String value)
           
protected  String rowEsc(String heading, Object value)
           
protected static String showID(IDType id)
          Shows the CN of the subject, with the full subject and issuer in a tooltip.
protected  String statusButton(String label, String event)
           
protected  String statusButtons(String status)
          Returns a set of buttons to change the status.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pdp

protected static PDPImpl pdp

factory

protected static org.hibernate.SessionFactory factory

resourceID

protected String resourceID

thisServiceURL

protected URL thisServiceURL

request

protected HttpServletRequest request
Constructor Detail

AccountAdmin

public AccountAdmin(HttpServletRequest request)
             throws Stop
Create a new AccountAdmin from the parameters in this request. The request must contain a parameter named 'resource', identifying the account resource.

Throws:
Stop
Method Detail

processPOST

public String processPOST()
                   throws Stop,
                          GridFailureException,
                          ObjectAlreadyExists
Check whether this request is a POST asking us to update the ACLs. If so, do the updates.

Returns:
a success message, or null if no action was performed
Throws:
Stop
GridFailureException
ObjectAlreadyExists

row

protected String row(String heading,
                     String value)

rowEsc

protected String rowEsc(String heading,
                        Object value)

showID

protected static String showID(IDType id)
                        throws IOException
Shows the CN of the subject, with the full subject and issuer in a tooltip.

Throws:
IOException

statusButton

protected String statusButton(String label,
                              String event)

statusButtons

protected String statusButtons(String status)
Returns a set of buttons to change the status.



Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.