uk.ac.soton.itinnovation.grid.service.utils.webadmin
Class TrustedAccountsAdmin

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.webadmin.TrustedAccountsAdmin

public class TrustedAccountsAdmin
extends Object

Many services need to maintain a list of account and SLA services which they trust. Clients using the service must have an account with one of these account services, or an SLA with one of the SLA services. This class is used to provide a web-based administration interface for managing the list of trusted services.


Constructor Summary
TrustedAccountsAdmin(HttpServletRequest request, Class<? extends ManagedGridService> serviceIface)
           
TrustedAccountsAdmin(HttpServletRequest request, TrustedManagementServices management)
           
 
Method Summary
 String processPOST()
          Check whether this request is a POST asking us to update anything.
 void showAdmin(Writer out, String defaultServiceName)
          Write an editable HTML table listing all trusted services.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustedAccountsAdmin

public TrustedAccountsAdmin(HttpServletRequest request,
                            Class<? extends ManagedGridService> serviceIface)
                     throws Stop
Throws:
Stop

TrustedAccountsAdmin

public TrustedAccountsAdmin(HttpServletRequest request,
                            TrustedManagementServices management)
                     throws Stop
Throws:
Stop
Method Detail

processPOST

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

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

showAdmin

public void showAdmin(Writer out,
                      String defaultServiceName)
               throws IOException,
                      Stop
Write an editable HTML table listing all trusted services.

Parameters:
out - stream to write to
defaultServiceName - suggested service (e.g., "TradeAccountService" or "SLAService")
Throws:
IOException
Stop


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