uk.ac.soton.itinnovation.grid.service.ogsadai.webadmin
Interface Presentation

All Known Implementing Classes:
PlaintextPresentation, RDBMSPresentation

public interface Presentation

Interface used by UIs to configure an OgsaDaiDataResourceManager and display information about the resources it manages.


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 displayConfigForm().
 

Method Detail

displayDataResourceRow

String displayDataResourceRow(DataResourceBean bean)
                              throws IOException
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.

Parameters:
bean - A bean holding information about the data resource to be displayed
Throws:
IOException

displayDataResourceRoleRow

String displayDataResourceRoleRow(DataResourceRoleBean bean)
                                  throws IOException
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.

Parameters:
bean - A bean holding information about the role to be displayed
Throws:
IOException

displayConfigForm

String displayConfigForm()
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. saveConfig(javax.servlet.http.HttpServletRequest) is called when the form is submitted.


saveConfig

void saveConfig(HttpServletRequest request)
                throws GridFailureException
Save the configuration entered in the form produced by displayConfigForm(). Used by OgsaDaiAdmin.

Parameters:
request - Use the ServletRequest.getParameter(java.lang.String) method to get user-entered data.
Throws:
GridFailureException

getHeadContent

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


getDataResourceAttributeNames

String[] getDataResourceAttributeNames()
Return a list of attribute names that should be provided for new data resources. Used by OgsaDaiAdmin and DataResourceManagement.getDataResourceAttributeNames().


getDataResourceRoleAttributeNames

String[] getDataResourceRoleAttributeNames()
Return a list of attribute names that should be provided for new roles. Used by OgsaDaiAdmin and DataResourceManagement.getDataResourceRoleAttributeNames().



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