|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
uk.ac.soton.itinnovation.grid.service.ogsadai.impl.ManagedDataResource
uk.ac.soton.itinnovation.grid.service.ogsadai.impl.OgsaDaiServiceImpl
public class OgsaDaiServiceImpl
The implementation of OgsaDaiService.
| Field Summary | |
|---|---|
static HashMap<String,SubjectDescription> |
activityClientMap
|
static String |
MANAGEMENT_ROLE
The PBAC role a service must have to be able to manage this service: i.e. |
static String |
MANAGEMENT_SERVICES
The group of management services (that includes sla manager) that are allowed to call e.g. |
static String |
OGSA_DAI_VERSION
|
static String |
SESSION_MATCH_RULE
|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.ogsadai.impl.ManagedDataResource |
|---|
dataResourceDAO, dataResourceManager, dataResourceRoleDAO, dataResourceSubscriptionDAO, METRIC_DATARESOURCE, METRIC_DATARESOURCE_URI, METRIC_ROLE, METRIC_ROLE_URI, METRIC_SUBSCRIBER, METRIC_SUBSCRIBER_URI, METRIC_SUBSCRIPTION, METRIC_SUBSCRIPTION_URI, OGSADAI_GROUP_RESOURCE_ADMINS, OGSADAI_GROUP_SERVICE_ADMINS, pullPoint |
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
factory, groupUtils, management, NO_ACCOUNT_NEEDED, pbacUtils, pdp, proxyFactory, thisServiceAddress, wsdlCache |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiService |
|---|
OGSADAI_SERVICE_RESOURCE_TYPE, OWNED_BY_SERVICE, OWNED_BY_USER |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiDBI |
|---|
OGSADAI_DB_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiDBRoleI |
|---|
OGSADAI_DB_ROLE_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiDBSubscriptionI |
|---|
OGSADAI_DB_SUBSCRIPTION_RESOURCE_TYPE, ownerRuleName |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiService |
|---|
OGSADAI_SERVICE_RESOURCE_TYPE, OWNED_BY_SERVICE, OWNED_BY_USER |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.dataresource.DataResourceManagement |
|---|
OWNED_BY_SERVICE, OWNED_BY_USER |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiRole |
|---|
RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiResource |
|---|
RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.ogsadai.OgsaDaiSubscription |
|---|
RESOURCE_TYPE |
| Constructor Summary | |
|---|---|
OgsaDaiServiceImpl()
|
|
OgsaDaiServiceImpl(String serviceName)
|
|
| Method Summary | |
|---|---|
void |
addClientRule(MatchRule rule)
Deprecated. |
void |
addDelegateRule(MatchRule rule)
Deprecated. |
void |
addOwnerRule(MatchRule rule)
Deprecated. |
void |
checkPolicyRule(SubjectDescription client,
String action)
The method first checks to see if the current user (the caller) is permitted to invoke the operation checkPolicyRule. |
org.apache.axis.message.addressing.EndpointReferenceType |
connectDatabase(MatchRule owner,
String label,
String jdbcURL)
Deprecated. |
org.apache.axis.message.addressing.EndpointReferenceType[] |
createDatabase(MatchRule owner,
String label,
String metricURI)
Deprecated. |
org.apache.axis.message.addressing.EndpointReferenceType |
createRole(MatchRule owner,
String label,
String username,
String password,
boolean own,
String metricURI,
String resourceID)
Deprecated. |
void |
createSession(MatchRule owner,
String sessionID)
|
void |
destroy()
Destroys a resource. |
void |
destroyAllSessions()
|
void |
destroySessionLocal(String conversationID)
|
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
String |
executeSelect(MatchRule rule,
String query)
Deprecated. |
String |
executeUpdate(MatchRule rule,
String query)
Deprecated. |
List<String> |
getAdditionalFederationMethods()
|
List<org.apache.axis.message.addressing.EndpointReferenceType> |
getAdditionalFederations()
|
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Return notices from the service as an Atom feed. |
ExtensibilityType |
getBlock(String id)
Compatibility method for OGSA-DAI clients. |
MatchRule[] |
getClientRules()
Deprecated. |
String[] |
getDataResourceAttributeNames()
Get a list of attribute names that are valid for data resources. |
String[] |
getDataResourceRoleAttributeNames()
Get a list of attribute names that are valid for data resource roles. |
MatchRule[] |
getDelegateRules()
Deprecated. |
String[] |
getDetails()
Deprecated. |
List<String> |
getFederatedMethods()
|
ExtensibilityType |
getFully(String id)
Compatibility method for OGSA-DAI clients. |
String |
getJDBCUrl()
Deprecated. |
NotificationMessage[] |
getMessages()
Returns all usage messages |
NotificationMessage[] |
getMessagesN(int MaximumNumber)
Returns usage messages |
Document |
GetMultipleResourceProperties(GetMultipleResourcePropertiesRequest getMultipleResourcePropertiesRequest)
Compatibility method for OGSA-DAI clients. |
ExtensibilityType |
getNBlocks(String id,
int numberOfBlocks)
Compatibility method for OGSA-DAI clients. |
MatchRule[] |
getOwnerRules()
Deprecated. |
Document |
GetResourceProperty(QName getResourcePropertyRequest)
Compatibility method for OGSA-DAI clients. |
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources for which the caller has some role. |
MatchRule[] |
getRules()
Deprecated. |
Class |
getServiceDatabaseKey()
subclasses should overide this method to use a common key for to the hibernate database for number of interfaces on your service- ie in OGSA-DAI - OgsaDaiServiceI2 and OgsaDaiService |
String |
getVersion()
Returns the OGSA-DAI version. |
boolean |
isCurrentUserOwner(String resourceID)
|
String[] |
listResources(String listResourcesVoid)
Returns a list of data resources. |
void |
modifyRole(String label,
String username,
String password,
String metricURI)
Deprecated. |
Document |
perform(Document document)
Executes a perform document. |
ExtensibilityType |
perform(ExtensibilityType performDocument)
Executes a perform document. |
ExtensibilityType |
performWithRule(MatchRule rule,
ExtensibilityType performDocument)
Executes a perform document. |
void |
putBlock(String id,
ExtensibilityType data)
Compatibility method for OGSA-DAI clients. |
void |
putFully(String id,
ExtensibilityType data)
Compatibility method for OGSA-DAI clients. |
void |
removeClientRule(MatchRule rule)
Deprecated. |
void |
removeDelegateRule(MatchRule rule)
Deprecated. |
void |
removeOwnerRule(MatchRule rule)
Deprecated. |
void |
setAdditionalFederation(org.apache.axis.message.addressing.EndpointReferenceType[] federations,
String[] method)
|
void |
setJDBCUrl(String jdbcURL)
Deprecated. |
org.apache.axis.message.addressing.EndpointReferenceType |
subscribe(MatchRule owner,
String label)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| 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 |
| 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 |
| 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 |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.dataresource.DataResourceManagement |
|---|
connectDataResource, createDataResource |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.dataresource.DataResourceRole |
|---|
createSubscription, getDataResourceRoleAttributes, modifyDataResourceRole |
| 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 |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.dataresource.DataResource |
|---|
connectDataResourceRole, createDataResourceRole, getDataResourceAttributes, modifyDataResource |
| 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 |
| 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 |
|---|
public static final String MANAGEMENT_SERVICES
public static final String MANAGEMENT_ROLE
public static final String SESSION_MATCH_RULE
public static final String OGSA_DAI_VERSION
public static HashMap<String,SubjectDescription> activityClientMap
| Constructor Detail |
|---|
public OgsaDaiServiceImpl(String serviceName)
public OgsaDaiServiceImpl()
| Method Detail |
|---|
public Class getServiceDatabaseKey()
GridServiceLite
getServiceDatabaseKey in class ManagedDataResource
public void ensurePoliciesDeployed()
throws RemoteException
WebAdmin
ensurePoliciesDeployed in interface WebAdminensurePoliciesDeployed in class ManagedDataResourceRemoteException
public void destroy()
throws ResourceUnknownFault,
ResourceNotDestroyedFault
destroy in interface WSResourceLifetimedestroy in class ManagedDataResourceResourceUnknownFault
ResourceNotDestroyedFault
public void destroySessionLocal(String conversationID)
throws RemoteException
RemoteException
public Document getAtomFeed(String atomFeed,
String serviceBase)
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)AtomUtils
@AccessControl(disableCheck=true)
public void checkPolicyRule(SubjectDescription client,
String action)
throws RemoteException
OgsaDaiSubscription
checkPolicyRule in interface OgsaDaiSubscriptionRemoteExceptionpublic NotificationMessage[] getMessagesN(int MaximumNumber)
ReportAPI
getMessagesN in interface ReportAPIMaximumNumber - of messages. If more available returns the first.
public NotificationMessage[] getMessages()
ReportAPI
getMessages in interface ReportAPI
public ExtensibilityType performWithRule(MatchRule rule,
ExtensibilityType performDocument)
throws RemoteException,
DAIException
perform(ExtensibilityType)
performWithRule in interface OgsaDaiDBSubscriptionIperformWithRule in interface OgsaDaiSubscriptionperformDocument - The perform document to be executed.rule - A match rule for the 'owner' role on any sessions that are created as
a result of this call.
RemoteException
DAIException
public ExtensibilityType perform(ExtensibilityType performDocument)
throws RemoteException,
DAIException
perform(Document)
perform in interface OgsaDaiDBSubscriptionIperform in interface OgsaDaiSubscriptionperformDocument - The perform document to be executed.
RemoteException
DAIException
public Document perform(Document document)
throws RemoteException
document - The perform document to be executed.
GridFailureException
RemoteException
public String[] listResources(String listResourcesVoid)
throws RemoteException
listResources in interface OgsaDaiSubscriptionlistResourcesVoid - Unused.
RemoteException
public Document GetResourceProperty(QName getResourcePropertyRequest)
throws RemoteException
OgsaDaiSubscription
GetResourceProperty in interface OgsaDaiSubscriptionGetResourceProperty in class GridServiceLiteInvalidResourcePropertyQNameFaultType
ResourceUnknownFaultType
RemoteException
public Document GetMultipleResourceProperties(GetMultipleResourcePropertiesRequest getMultipleResourcePropertiesRequest)
throws RemoteException
OgsaDaiSubscription
GetMultipleResourceProperties in interface OgsaDaiSubscriptionInvalidResourcePropertyQNameFaultType
ResourceUnknownFaultType
RemoteException
public String getVersion()
throws RemoteException
getVersion in interface OgsaDaiSubscriptionRemoteException
public void putFully(String id,
ExtensibilityType data)
throws RemoteException,
ResourceBusyFaultType,
ResourceUnknownFaultType,
InternalFaultType,
RequestFaultType,
AuthorisationFaultType
OgsaDaiDBSubscriptionI
putFully in interface OgsaDaiDBSubscriptionIputFully in interface OgsaDaiSubscriptionRemoteException
ResourceBusyFaultType
ResourceUnknownFaultType
InternalFaultType
RequestFaultType
AuthorisationFaultType
public void putBlock(String id,
ExtensibilityType data)
throws RemoteException,
ResourceBusyFaultType,
ResourceUnknownFaultType,
InternalFaultType,
RequestFaultType,
AuthorisationFaultType
OgsaDaiDBSubscriptionI
putBlock in interface OgsaDaiDBSubscriptionIputBlock in interface OgsaDaiSubscriptionRemoteException
ResourceBusyFaultType
ResourceUnknownFaultType
InternalFaultType
RequestFaultType
AuthorisationFaultType
public ExtensibilityType getFully(String id)
throws RemoteException,
ResourceBusyFaultType,
ResourceUnknownFaultType,
InternalFaultType,
RequestFaultType,
AuthorisationFaultType
OgsaDaiDBSubscriptionI
getFully in interface OgsaDaiDBSubscriptionIgetFully in interface OgsaDaiSubscriptionRemoteException
ResourceBusyFaultType
ResourceUnknownFaultType
InternalFaultType
RequestFaultType
AuthorisationFaultType
public ExtensibilityType getBlock(String id)
throws RemoteException,
ResourceBusyFaultType,
ResourceUnknownFaultType,
InternalFaultType,
RequestFaultType,
AuthorisationFaultType
OgsaDaiDBSubscriptionI
getBlock in interface OgsaDaiDBSubscriptionIgetBlock in interface OgsaDaiSubscriptionRemoteException
ResourceBusyFaultType
ResourceUnknownFaultType
InternalFaultType
RequestFaultType
AuthorisationFaultType
public ExtensibilityType getNBlocks(String id,
int numberOfBlocks)
throws RemoteException,
ResourceBusyFaultType,
ResourceUnknownFaultType,
InternalFaultType,
RequestFaultType,
AuthorisationFaultType
OgsaDaiDBSubscriptionI
getNBlocks in interface OgsaDaiDBSubscriptionIgetNBlocks in interface OgsaDaiSubscriptionRemoteException
ResourceBusyFaultType
ResourceUnknownFaultType
InternalFaultType
RequestFaultType
AuthorisationFaultType
public void createSession(MatchRule owner,
String sessionID)
throws RemoteException
RemoteExceptionpublic void destroyAllSessions()
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws RemoteException
OgsaDaiService
getResources in interface OgsaDaiServicegetResources in interface GridServiceRemoteException
public boolean isCurrentUserOwner(String resourceID)
throws RemoteException
RemoteExceptionpublic String[] getDataResourceAttributeNames()
DataResourceManagement
getDataResourceAttributeNames in interface DataResourceManagementpublic String[] getDataResourceRoleAttributeNames()
DataResourceManagement
getDataResourceRoleAttributeNames in interface DataResourceManagement
@Deprecated
public String executeSelect(MatchRule rule,
String query)
throws RemoteException
perform(Document)
executeSelect in interface OgsaDaiDBSubscriptionIexecuteSelect in interface OgsaDaiSubscriptionquery - An SQL SELECT statement.rule - A match rule for the 'owner' role on any sessions that are created as
a result of this call.
RemoteException
@Deprecated
public String executeUpdate(MatchRule rule,
String query)
throws RemoteException
perform(Document)
executeUpdate in interface OgsaDaiDBSubscriptionIexecuteUpdate in interface OgsaDaiSubscriptionquery - An SQL UPDATE statement.rule - A match rule for the 'owner' role on any sessions that are created as
a result of this call.
RemoteException
@Deprecated
public void addClientRule(MatchRule rule)
throws RemoteException
addClientRule in interface OgsaDaiDBRoleIRemoteException
@Deprecated
public void removeClientRule(MatchRule rule)
throws RemoteException
removeClientRule in interface OgsaDaiDBRoleIRemoteException
@Deprecated
public MatchRule[] getClientRules()
throws RemoteException
getClientRules in interface OgsaDaiDBRoleIRemoteException
@Deprecated
public org.apache.axis.message.addressing.EndpointReferenceType createRole(MatchRule owner,
String label,
String username,
String password,
boolean own,
String metricURI,
String resourceID)
throws RemoteException
OgsaDaiDBI
createRole in interface OgsaDaiDBIowner - 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.
RemoteException
@Deprecated
public org.apache.axis.message.addressing.EndpointReferenceType connectDatabase(MatchRule owner,
String label,
String jdbcURL)
throws RemoteException
OgsaDaiServiceSOAP
connectDatabase in interface OgsaDaiServiceSOAPowner - A rule to allow access for the 'owner' rolelabel - A label for the new resourcejdbcURL - The JDBC URL of the existing database
RemoteException
@Deprecated
public org.apache.axis.message.addressing.EndpointReferenceType[] createDatabase(MatchRule owner,
String label,
String metricURI)
throws RemoteException
OgsaDaiServiceSOAP
createDatabase in interface OgsaDaiServiceSOAPowner - A rule to allow access for the 'owner' rolelabel - A label for the new resourcemetricURI - The URI of a custom metric to use for this role
RemoteException
@Deprecated
public void addOwnerRule(MatchRule rule)
throws RemoteException
addOwnerRule in interface OgsaDaiDBIaddOwnerRule in interface OgsaDaiDBRoleIaddOwnerRule in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public void removeOwnerRule(MatchRule rule)
throws RemoteException
removeOwnerRule in interface OgsaDaiDBIremoveOwnerRule in interface OgsaDaiDBRoleIremoveOwnerRule in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public MatchRule[] getOwnerRules()
throws RemoteException
getOwnerRules in interface OgsaDaiDBIgetOwnerRules in interface OgsaDaiDBRoleIgetOwnerRules in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public void addDelegateRule(MatchRule rule)
throws RemoteException
addDelegateRule in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public void removeDelegateRule(MatchRule rule)
throws RemoteException
removeDelegateRule in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public MatchRule[] getDelegateRules()
throws RemoteException
getDelegateRules in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public MatchRule[] getRules()
throws RemoteException
getRules in interface OgsaDaiDBRoleIgetRules in interface OgsaDaiDBSubscriptionIRemoteException
@Deprecated
public String getJDBCUrl()
throws RemoteException
OgsaDaiDBI
getJDBCUrl in interface OgsaDaiDBIRemoteException
@Deprecated
public void setJDBCUrl(String jdbcURL)
throws RemoteException
OgsaDaiDBI
setJDBCUrl in interface OgsaDaiDBIjdbcURL - The new JDBC URL.
RemoteException
@Deprecated
public String[] getDetails()
throws RemoteException
OgsaDaiDBRoleI
getDetails in interface OgsaDaiDBRoleIRemoteException
@Deprecated
public void modifyRole(String label,
String username,
String password,
String metricURI)
throws RemoteException
OgsaDaiDBRoleI
modifyRole in interface OgsaDaiDBRoleIlabel - The new label.username - The new RDBMS username.password - The new RDBMS password.metricURI - The new metric URI.
RemoteException
@Deprecated
public org.apache.axis.message.addressing.EndpointReferenceType subscribe(MatchRule owner,
String label)
throws RemoteException
OgsaDaiDBRoleI
subscribe in interface OgsaDaiDBRoleIowner - The new owner role for the subscription.label - A label for the new subscription.
RemoteExceptionpublic List<org.apache.axis.message.addressing.EndpointReferenceType> getAdditionalFederations()
getAdditionalFederations in interface ManagedGridServicepublic List<String> getAdditionalFederationMethods()
getAdditionalFederationMethods in interface ManagedGridService
public void setAdditionalFederation(org.apache.axis.message.addressing.EndpointReferenceType[] federations,
String[] method)
throws RemoteException
setAdditionalFederation in interface ManagedGridServiceRemoteExceptionpublic List<String> getFederatedMethods()
getFederatedMethods in interface ManagedGridService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||