uk.ac.soton.itinnovation.grid.comms.ogsadai
Interface OgsaDaiDBI

All Superinterfaces:
PolicyManagement, ResourceMetadata, WSResourceLifetime
All Known Subinterfaces:
OgsaDaiServiceSOAP
All Known Implementing Classes:
OgsaDaiServiceI2Impl, OgsaDaiServiceImpl

Deprecated. See DataResource

@WebServiceWSDL(targetNamespace="http://www.it-innovation.soton.ac.uk/2004/grid/ogsadai-db",
                portTypeName="OgsaDaiDB",
                resourcePath="ogsadaidb.wsdl",
                serviceName="OgsaDaiDB",
                bindingName="OgsaDaiDBSoapBinding")
public interface OgsaDaiDBI
extends WSResourceLifetime, ResourceMetadata, PolicyManagement

The public interface for the database objects. Specifies a list of methods supported by database resources. Implemented by OgsaDaiConversation on the client side and OgsaDaiServiceSOAP on the service side.


Field Summary
static String OGSADAI_DB_RESOURCE_TYPE
          Deprecated. A unique string to represent a type of resource accessed through the service.
 
Method Summary
 void addOwnerRule(MatchRule rule)
          Deprecated. Replaced by PolicyManagement.addPolicyRule(uk.ac.soton.itinnovation.grid.types.PolicyRule)
 org.apache.axis.message.addressing.EndpointReferenceType createRole(MatchRule owner, String label, String username, String password, boolean own, String metricURI, String resourceID)
          Deprecated. Replaced by DataResource.connectDataResourceRole(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule, java.lang.String, java.util.Map, java.lang.String).
 String getJDBCUrl()
          Deprecated. Replaced by DataResource.getDataResourceAttributes().
 MatchRule[] getOwnerRules()
          Deprecated. Replaced by PolicyManagement.getPolicyRules()
 void removeOwnerRule(MatchRule rule)
          Deprecated. Replaced by PolicyManagement.removePolicyRule(uk.ac.soton.itinnovation.grid.types.PolicyRule)
 void setJDBCUrl(String jdbcURL)
          Deprecated. Replaced by DataResource.modifyDataResource(java.lang.String, java.util.Map).
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.wsrf.WSResourceLifetime
destroy
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata
getEPR, setLabel
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule
 

Field Detail

OGSADAI_DB_RESOURCE_TYPE

static final String OGSADAI_DB_RESOURCE_TYPE
Deprecated. 
A unique string to represent a type of resource accessed through the service. The PBAC policy with this name is used to protect operations on the service which quote a context with this type. When discovering resources, they have this type in their metadata.

See Also:
ConversationID.getResourceType(org.apache.axis.message.addressing.EndpointReferenceType), Constant Field Values
Method Detail

addOwnerRule

@WebMethod
@Deprecated
void addOwnerRule(MatchRule rule)
                  throws RemoteException
Deprecated. Replaced by PolicyManagement.addPolicyRule(uk.ac.soton.itinnovation.grid.types.PolicyRule)

Add a MatchRule to the policy protecting this resource. The rule must be for the 'owner' process role.

Throws:
RemoteException

removeOwnerRule

@WebMethod
@Deprecated
void removeOwnerRule(MatchRule rule)
                     throws RemoteException
Deprecated. Replaced by PolicyManagement.removePolicyRule(uk.ac.soton.itinnovation.grid.types.PolicyRule)

Remove a MatchRule from the policy protecting this resource. The rule must be for the 'owner' process role.

Throws:
RemoteException

getOwnerRules

@WebMethod
@Deprecated
MatchRule[] getOwnerRules()
                          throws RemoteException
Deprecated. Replaced by PolicyManagement.getPolicyRules()

List the rules for the 'owner' role of this resource.

Throws:
RemoteException

createRole

@WebMethod(usesBillingHeader=true)
@Deprecated
org.apache.axis.message.addressing.EndpointReferenceType createRole(MatchRule owner,
                                                                                                          String label,
                                                                                                          String username,
                                                                                                          String password,
                                                                                                          boolean own,
                                                                                                          String metricURI,
                                                                                                          String resourceID)
                                                                    throws RemoteException
Deprecated. Replaced by DataResource.connectDataResourceRole(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule, java.lang.String, java.util.Map, java.lang.String).

Create a new username/password combination for accessing this database. Note that this version of this method should not be used in client applications and will return null. Instead use the version in OgsaDaiConversation

Parameters:
owner - A match rule for the owner role.
label - The label for the new resource.
username - The database username.
password - The database password.
own - If true, the username will be removed from the database backend when the role resource is destroyed.
metricURI - The URI of a custom metric to use for this role.
resourceID - This should usually be set to null. If it is not null, the new role will be added to the database specified by this ID.
Returns:
The EPR of the new role resource
Throws:
RemoteException

getJDBCUrl

@WebMethod
@Deprecated
String getJDBCUrl()
                  throws RemoteException
Deprecated. Replaced by DataResource.getDataResourceAttributes().

Returns the JDBC URL of this resource.

Returns:
A JDBC URL
Throws:
RemoteException

setJDBCUrl

@WebMethod
@Deprecated
void setJDBCUrl(String jdbcURL)
                throws RemoteException
Deprecated. Replaced by DataResource.modifyDataResource(java.lang.String, java.util.Map).

Modifies the JDBC URL of this database resource. Note that this method is not available on automatically created databases as it would not make sense to change the JDBC URL.

Parameters:
jdbcURL - The new JDBC URL.
Throws:
RemoteException


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