|
||||||||||
| 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.registry.CltMgtRegistryResourceImpl
public class CltMgtRegistryResourceImpl
| Field Summary | |
|---|---|
protected RegistryDataResourceRoleDAO |
dataRegistryRoleDAO
|
| 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.registry.CltMgtRegistryResource |
|---|
CLT_MGT_REGISTRY_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.types.FederationSelector |
|---|
DEFAULT_FEDERATION_SELECTOR |
| Constructor Summary | |
|---|---|
CltMgtRegistryResourceImpl()
|
|
| 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.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.IdentifiableResource |
|---|
getServiceMatchPattern |
| Field Detail |
|---|
protected RegistryDataResourceRoleDAO dataRegistryRoleDAO
| Constructor Detail |
|---|
public CltMgtRegistryResourceImpl()
| Method Detail |
|---|
protected Class<? extends GridResource> getResourceType(String resourceID)
GridServiceLite
getResourceType in class GridServiceLite
public void destroy()
throws ResourceUnknownFault,
ResourceNotDestroyedFault,
RemoteException
destroy in interface WSResourceLifetimeResourceUnknownFault
ResourceNotDestroyedFault
RemoteException
public void registerResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
throws RemoteException
SimpleRegistry
registerResource in interface SimpleRegistryresource - the resource to be added
RemoteException
public void registerMonitorableResource(org.apache.axis.message.addressing.EndpointReferenceType resource,
String monitorRole)
throws RemoteException
CltMgtRegistryResource
The implementation of this method adds an access control rule to the resource identified
by resourceEpr such that the registry service is given the monitorRole
role on the resource. This is done before registering the resource, so that the registry service
has the authority to query the resource for registration data updates.
The registry service contacts monitorable resources to keep registrations up-to-date.
For example, if an SLA is registered, the Registry Service will monitor the
resource to keep usage report data in the registry up-to-date.
If the resource is either not monitorable or does not require an access control update
for it to be monitored by the registry service, it is easier to instead use
SimpleRegistry.registerResource().
registerMonitorableResource in interface CltMgtRegistryResourceresource - the monitorable resource to register.monitorRole - the PBAC process role that the registry service must hold on
resourceEpr so it can monitor it.
RemoteExceptionSimpleRegistry.registerResource(EndpointReferenceType)
public void unregisterResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
throws RemoteException
SimpleRegistrySimpleRegistry.registerResource(org.apache.axis.message.addressing.EndpointReferenceType).
unregisterResource in interface SimpleRegistryRemoteException
public String[] query(String query,
String languageNS)
throws RemoteException
AdvancedRegistry
query in interface AdvancedRegistryquery - query stringlanguageNS - namespace of the language in that the query is encoded
RemoteException
public ReferenceDocumentType[] getRegisteredResourcesByConcept(String concept)
throws RemoteException
AdvancedRegistry
getRegisteredResourcesByConcept in interface AdvancedRegistryconcept - the concept of resources to return, or null to
return all types.
Returns resources added by #registerResource.
RemoteException
public void insertRelationshipBetweenReferanceAbles(org.apache.axis.message.addressing.EndpointReferenceType fromReference,
String relationshipName,
org.apache.axis.message.addressing.EndpointReferenceType toReference)
throws RemoteException
AdvancedRegistry
insertRelationshipBetweenReferanceAbles in interface AdvancedRegistryfromReference - reference of the source reference-able of the relationshiprelationshipName - name of the relationshiptoReference - reference of the sink reference-able of the relationship
RemoteException
public void registerResourceToConcept(org.apache.axis.message.addressing.EndpointReferenceType reference,
Document referenceAble,
String concept)
throws RemoteException
AdvancedRegistry
registerResourceToConcept in interface AdvancedRegistryreference - the reference of the data to be addedreferenceAble - the (meta)data to be addedconcept - the concept the reference-able belongs to
RemoteException
public void unregisterResourceFromConcept(org.apache.axis.message.addressing.EndpointReferenceType reference,
String concept)
throws RemoteException
AdvancedRegistry#registerResource under a specific concept. This includes removing the
reference as well as the reference-able.
unregisterResourceFromConcept in interface AdvancedRegistryconcept - the concept the resource belongs to
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType getBillingEPR(org.apache.axis.message.addressing.EndpointReferenceType[] targetTrustedResources,
org.apache.axis.message.addressing.EndpointReferenceType targetService)
throws RemoteException
FederationSelector
getBillingEPR in interface FederationSelectortargetTrustedResources - - the trusted resources of the servicetargetService - - the target service (which will pass the tokens on to its account service)
RemoteException - if there is a problem getting a billing token
public org.apache.axis.message.addressing.EndpointReferenceType createSubscriptionLocal(MatchRule owner,
String label)
throws RemoteException
DataResourceRoleLocal
createSubscriptionLocal in interface DataResourceRoleLocalowner - A rule for the 'owner' PBAC role.label - A label describing the subscription that is to be created.
RemoteExceptionpublic Map<String,String> getDataResourceRoleAttributesLocal()
DataResourceRoleLocalDataResourceManagement.getDataResourceRoleAttributeNames().
getDataResourceRoleAttributesLocal in interface DataResourceRoleLocal
public void modifyDataResourceRoleLocal(String label,
Map<String,String> attributes)
DataResourceRoleLocal
modifyDataResourceRoleLocal in interface DataResourceRoleLocallabel - The new label. If null, the label will not be changed.attributes - A new key-value map of attributes. Any attributes not specified in this map
will not be modified or removed. Keys should be of the set
DataResourceManagement.getDataResourceRoleAttributeNames().
public MatchRule getMatchRuleForResource()
throws RemoteException
CltMgtRegistryResource
getMatchRuleForResource in interface CltMgtRegistryResourceRemoteException
public String getRegistryDomainModel()
throws RemoteException
CltMgtRegistryResource
getRegistryDomainModel in interface CltMgtRegistryResourceRemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] findResourcesByAddress(String pattern)
throws RemoteException
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] findResourcesAtService(org.apache.axis.message.addressing.EndpointReferenceType service)
throws RemoteException
SimpleRegistry
findResourcesAtService in interface SimpleRegistryservice - The EPR of the service
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType findResourceByEPR(org.apache.axis.message.addressing.EndpointReferenceType reference)
throws RemoteException
SimpleRegistry
findResourceByEPR in interface SimpleRegistryreference - the EPR to look for
RemoteException
public void updateResource(org.apache.axis.message.addressing.EndpointReferenceType resource)
throws RemoteException
SimpleRegistry
updateResource in interface SimpleRegistryresource - The endpoint to be updated
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] getRegisteredResources(String type)
throws RemoteException
getRegisteredResources in interface SimpleRegistrytype - e.g. http://www.it-innovation.soton.ac.uk/grid/resource/data or null
RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||