|
||||||||||
| 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.CltMgtRegistryServiceImpl
public class CltMgtRegistryServiceImpl
| Field Summary | |
|---|---|
protected RegistryDataResourceRoleDAO |
dataRegistryRoleDAO
|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
factory, management, NO_ACCOUNT_NEEDED, pdp, thisServiceAddress |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.registry.CltMgtRegistryService |
|---|
CLT_MGT_REGISTRY_SERVICE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.dataresource.DataResourceManagement |
|---|
OWNED_BY_SERVICE, OWNED_BY_USER |
| Constructor Summary | |
|---|---|
CltMgtRegistryServiceImpl()
|
|
| Method Summary | |
|---|---|
org.apache.axis.message.addressing.EndpointReferenceType |
connectDataResource(MatchRule owner,
String label,
Map<String,String> attributes)
Connect an existing data resource. |
org.apache.axis.message.addressing.EndpointReferenceType |
connectDataResourceRoleLocal(String parentDataResourceID,
MatchRule owner,
String label,
Map<String,String> attributes,
String metricURI)
Connect an existing role. |
org.apache.axis.message.addressing.EndpointReferenceType[] |
createDataResource(MatchRule owner,
String label)
Create a new data resource with default roles. |
org.apache.axis.message.addressing.EndpointReferenceType |
createDataResourceRoleLocal(String parentDataResourceID,
MatchRule owner,
String label,
Map<String,String> attributes,
String metricURI)
Create a role on the data resource backend. |
org.apache.axis.message.addressing.EndpointReferenceType |
createRegistry(String label,
MatchRule owner)
|
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
protected org.apache.axis.message.addressing.EndpointReferenceType |
generateEPR(GridResource bean)
Generate an EPR from a resource's bean. |
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Return notices from the service as an Atom feed. |
String[] |
getDataResourceAttributeNames()
Get a list of attribute names that are valid for data resources. |
Map<String,String> |
getDataResourceAttributesLocal()
Get the attribute values of this data resource. |
String[] |
getDataResourceRoleAttributeNames()
Get a list of attribute names that are valid for data resource roles. |
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources managed by this service for which the caller has some role. |
void |
modifyDataResourceLocal(String resourceId,
String label,
Map<String,String> attributes)
Modify parts of this data resource. |
void |
reloadConfiguration()
Reload the configuration. |
| Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, getResourceType, getServiceFromEPR, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, removePolicyRule, removeTrustedAccountService, RequestSecurityToken_Issuance, RequestSecurityToken_Validation, RequestSecurityToken, setLabel, setLabel, signal, validateOwner |
| 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.wsrf.WSRFService |
|---|
GetResourceProperty |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| Field Detail |
|---|
protected RegistryDataResourceRoleDAO dataRegistryRoleDAO
| Constructor Detail |
|---|
public CltMgtRegistryServiceImpl()
| Method Detail |
|---|
public void reloadConfiguration()
throws GridFailureException
Exception - if the configuration is not yet valid
GridFailureException
public void ensurePoliciesDeployed()
throws GridFailureException
WebAdmin
ensurePoliciesDeployed in interface WebAdminGridFailureException
public Document getAtomFeed(String atomFeed,
String serviceBase)
throws GridFailureException
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)
GridFailureExceptionAtomUtils
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws RemoteException
GridService
getResources in interface GridServiceRemoteExceptionprotected org.apache.axis.message.addressing.EndpointReferenceType generateEPR(GridResource bean)
GridServiceLiteSingletonSessionFactory.getFactory()'s getCurrentSession
method.
Override this in sub-classes to provide extra information.
generateEPR in class GridServiceLite
public org.apache.axis.message.addressing.EndpointReferenceType connectDataResource(MatchRule owner,
String label,
Map<String,String> attributes)
throws RemoteException
DataResourceManagementDataResourceManagement.createDataResource(uk.ac.soton.itinnovation.grid.types.MatchRule, java.lang.String),
this method does not create a new resource, and therefore the connection information
provided in attributes must describe a valid existing resource. This method creates no
roles for accessing the resource.
connectDataResource in interface DataResourceManagementowner - A rule for the 'owner' PBAC role.label - A label describing the data resource that is to be created.attributes - A key-value map of attributes describing how to connect to the data
resource. Keys should be from the set
DataResourceManagement.getDataResourceAttributeNames().
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] createDataResource(MatchRule owner,
String label)
throws RemoteException
DataResourceManagementDataResourceManagement.connectDataResource(uk.ac.soton.itinnovation.grid.types.MatchRule, java.lang.String, java.util.Map) ,
this method actually creates a new resource on the backend. It may also create some default
roles that can be used to access the new resource.
createDataResource in interface DataResourceManagementowner - A rule for the 'owner' PBAC role.label - A label describing the data resource that is to be created.
RemoteExceptionpublic String[] getDataResourceAttributeNames()
DataResourceManagement
getDataResourceAttributeNames in interface DataResourceManagementpublic String[] getDataResourceRoleAttributeNames()
DataResourceManagement
getDataResourceRoleAttributeNames in interface DataResourceManagement
public org.apache.axis.message.addressing.EndpointReferenceType connectDataResourceRoleLocal(String parentDataResourceID,
MatchRule owner,
String label,
Map<String,String> attributes,
String metricURI)
throws RemoteException
DataResourceLocalDataResourceLocal.createDataResourceRoleLocal(java.lang.String, uk.ac.soton.itinnovation.grid.types.MatchRule, java.lang.String, java.util.Map, java.lang.String) ,
this method does not create the role on the backend and the credentials specified in attributes
should describe a valid existing role. metricURI should typically be ignored when this method
is called by SOAP users, as it only makes sense for the service administrator to specify
metrics.
connectDataResourceRoleLocal in interface DataResourceLocalparentDataResourceID - The resourceID of the DataResource that this role applies to.
If null, the resourceID is fetched from the context of the
SOAP operation.owner - A rule for the 'owner' PBAC role.label - A label describing the role that is to be created.attributes - A key-value map of attributes describing the credentials for
this role. Keys should be from the set
DataResourceManagement.getDataResourceRoleAttributeNames().metricURI - The URI of a custom metric for this role. Typically ignored
when provided over SOAP.
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType createDataResourceRoleLocal(String parentDataResourceID,
MatchRule owner,
String label,
Map<String,String> attributes,
String metricURI)
throws RemoteException
DataResourceLocal#connectDataResourceRole,
this method actually creates the role on the backend before returning a resource representing
it. Normally this method will be hidden from SOAP users, and only called by
DataResourceManager#createDefaultRoles.
metricURI should typically be ignored if this method were to be called by SOAP users, as it
only makes sense for the service administrator to specify metrics.
createDataResourceRoleLocal in interface DataResourceLocalparentDataResourceID - The resourceID of the DataResource that this role applies to.
If null, the resourceID is fetched from the context of the
SOAP operation.owner - A rule for the 'owner' PBAC role.label - A label describing the role that is to be created.attributes - A key-value map of attributes describing the credentials for
this role. Keys should be from the set
DataResourceManagement.getDataResourceRoleAttributeNames().metricURI - The URI of a custom metric for this role. Typically ignored
when provided over SOAP.
RemoteExceptionpublic Map<String,String> getDataResourceAttributesLocal()
DataResourceLocalDataResourceManagement.getDataResourceAttributeNames().
getDataResourceAttributesLocal in interface DataResourceLocal
public void modifyDataResourceLocal(String resourceId,
String label,
Map<String,String> attributes)
DataResourceLocal
modifyDataResourceLocal in interface DataResourceLocallabel - 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.getDataResourceAttributeNames().
public org.apache.axis.message.addressing.EndpointReferenceType createRegistry(String label,
MatchRule owner)
throws RemoteException
createRegistry in interface CltMgtRegistryServiceRemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||