uk.ac.soton.itinnovation.grid.service.ogsadai.rdbms
Class RDBMSPresentation

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.ogsadai.rdbms.RDBMSPresentation
All Implemented Interfaces:
Presentation

public class RDBMSPresentation
extends Object
implements Presentation


Constructor Summary
RDBMSPresentation()
           
 
Method Summary
 String displayConfigForm()
          Display the contents of an HTML form allowing the service administrator to change any configurable parts of the OgsaDaiDataResourceManager.
 String displayDataResourceRoleRow(DataResourceRoleBean bean)
          Display information about a role.
 String displayDataResourceRow(DataResourceBean bean)
          Display information about a data resource.
 String[] getDataResourceAttributeNames()
          Return a list of attribute names that should be provided for new data resources.
 String[] getDataResourceRoleAttributeNames()
          Return a list of attribute names that should be provided for new roles.
 String getHeadContent()
          Provide any content to be inserted into the HEAD element of the HTML document.
 void saveConfig(HttpServletRequest request)
          Save the configuration entered in the form produced by Presentation.displayConfigForm().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBMSPresentation

public RDBMSPresentation()
Method Detail

displayDataResourceRow

public String displayDataResourceRow(DataResourceBean bean)
                              throws IOException
Description copied from interface: Presentation
Display information about a data resource. This method should return valid HTML suitable for insertion into a TD element. It should typically display the URL (or similar) of the resource it is representing. Used by OgsaDaiAdmin.

Specified by:
displayDataResourceRow in interface Presentation
Parameters:
bean - A bean holding information about the data resource to be displayed
Throws:
IOException

displayDataResourceRoleRow

public String displayDataResourceRoleRow(DataResourceRoleBean bean)
                                  throws IOException
Description copied from interface: Presentation
Display information about a role. This method should return HTML suitable for insertion into a TD element. It should typically display the credentials of the role it is representing. Used by OgsaDaiAdmin.

Specified by:
displayDataResourceRoleRow in interface Presentation
Parameters:
bean - A bean holding information about the role to be displayed
Throws:
IOException

getDataResourceAttributeNames

public String[] getDataResourceAttributeNames()
Description copied from interface: Presentation
Return a list of attribute names that should be provided for new data resources. Used by OgsaDaiAdmin and DataResourceManagement.getDataResourceAttributeNames().

Specified by:
getDataResourceAttributeNames in interface Presentation

getDataResourceRoleAttributeNames

public String[] getDataResourceRoleAttributeNames()
Description copied from interface: Presentation
Return a list of attribute names that should be provided for new roles. Used by OgsaDaiAdmin and DataResourceManagement.getDataResourceRoleAttributeNames().

Specified by:
getDataResourceRoleAttributeNames in interface Presentation

getHeadContent

public String getHeadContent()
Description copied from interface: Presentation
Provide any content to be inserted into the HEAD element of the HTML document. Could contain any CSS or JavaScript used by Presentation.displayConfigForm(), Presentation.displayDataResourceRoleRow(uk.ac.soton.itinnovation.grid.service.dataresource.beans.DataResourceRoleBean) or Presentation.displayDataResourceRow(uk.ac.soton.itinnovation.grid.service.dataresource.beans.DataResourceBean). Used by OgsaDaiAdmin.

Specified by:
getHeadContent in interface Presentation

displayConfigForm

public String displayConfigForm()
Description copied from interface: Presentation
Display the contents of an HTML form allowing the service administrator to change any configurable parts of the OgsaDaiDataResourceManager. Note that the FORM element has already been displayed prior to calling this function. Used by OgsaDaiAdmin. Presentation.saveConfig(javax.servlet.http.HttpServletRequest) is called when the form is submitted.

Specified by:
displayConfigForm in interface Presentation

saveConfig

public void saveConfig(HttpServletRequest request)
                throws GridFailureException
Description copied from interface: Presentation
Save the configuration entered in the form produced by Presentation.displayConfigForm(). Used by OgsaDaiAdmin.

Specified by:
saveConfig in interface Presentation
Parameters:
request - Use the ServletRequest.getParameter(java.lang.String) method to get user-entered data.
Throws:
GridFailureException


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