sample.impl
Class SampleServiceImpl
java.lang.Object
uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
sample.impl.SampleServiceImpl
- All Implemented Interfaces:
- SampleService, ManagedGridService, ReportAPI, WebAdmin, GridService, IdentifiableResource, PolicyManagement, ResourceMetadata
public class SampleServiceImpl
- extends GridServiceLite
- implements SampleService, WebAdmin
The implementation of SampleService. The mapping from the interface to this class is in the
implementationfactory.properties file.
| 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, getSelectedRegistries, getServiceDatabaseKey, getServiceFromEPR, getServiceMatchPattern, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, loadLocalRegistry, removePolicyRule, removeTrustedAccountService, RequestSecurityToken_Issuance, RequestSecurityToken_Validation, RequestSecurityToken, setLabel, setLabel, signal, toMatchRules, validateOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SampleServiceImpl
public SampleServiceImpl()
ensurePoliciesDeployed
public void ensurePoliciesDeployed()
throws RemoteException
- Description copied from interface:
WebAdmin
- Ensure that any required PBAC policies are deployed.
- Specified by:
ensurePoliciesDeployed in interface WebAdmin
- Throws:
RemoteException
reloadConfiguration
public void reloadConfiguration()
throws Exception
- Reload the configuration. Can be used by the admin tool to reload the configuration
without restarting tomcat.
- Throws:
Exception - if the configuration is not yet valid
generateEPR
protected org.apache.axis.message.addressing.EndpointReferenceType generateEPR(GridResource bean)
- Description copied from class:
GridServiceLite
- Generate an EPR from a resource's bean.
Note: the bean's hibernate session is open when this method is invoked, and
can be retreived using
SingletonSessionFactory.getFactory()'s getCurrentSession
method.
Override this in sub-classes to provide extra information.
- Overrides:
generateEPR in class GridServiceLite
createSampleResource
public org.apache.axis.message.addressing.EndpointReferenceType createSampleResource(String label,
MatchPattern owner)
throws RemoteException
- Description copied from interface:
SampleService
- Create a new resource. Calling this may require an account or an SLA to be specified
in the SOAP header (or may require nothing at all), depending on how
the service has been configured.
On success, the EPR of the new resource is returned. Anyone who matches the 'owner'
rule can access the resource as its owner. Typically, this rule just matches the
identity of the person creating the resource.
- Specified by:
createSampleResource in interface SampleService
- Parameters:
label - A label for the new resourceowner - A pattern to allow access by the new resource's owner
- Returns:
- the EPR of the new resource
- Throws:
RemoteException
getResources
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws GridFailureException
- Description copied from interface:
GridService
- List the resources managed by this service for which the caller has some role.
- Specified by:
getResources in interface GridService
- Throws:
GridFailureException
getAtomFeed
public Document getAtomFeed(String atomFeed,
String serviceBase)
- Return notices from the service as an Atom feed.
These notices are displayed on the main admin page and can also be polled
by the administrator using a news aggregator. The feed should be used to alert the
admin to configuration problems and any other important issues that come up.
- Specified by:
getAtomFeed in interface WebAdmin
- Parameters:
atomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)- See Also:
AtomUtils
getMessagesN
public NotificationMessage[] getMessagesN(int MaximumNumber)
- Description copied from interface:
ReportAPI
- Returns usage messages
- Specified by:
getMessagesN in interface ReportAPI
- Parameters:
MaximumNumber - of messages. If more available returns the first.
- Returns:
- an array containing usage messages.
getMessages
public NotificationMessage[] getMessages()
- Description copied from interface:
ReportAPI
- Returns all usage messages
- Specified by:
getMessages in interface ReportAPI
- Returns:
- an array containing all usage messages.
getAdditionalFederations
public List<org.apache.axis.message.addressing.EndpointReferenceType> getAdditionalFederations()
- Specified by:
getAdditionalFederations in interface ManagedGridService
getAdditionalFederationMethods
public List<String> getAdditionalFederationMethods()
- Specified by:
getAdditionalFederationMethods in interface ManagedGridService
setAdditionalFederation
public void setAdditionalFederation(org.apache.axis.message.addressing.EndpointReferenceType[] federations,
String[] methods)
throws RemoteException
- Specified by:
setAdditionalFederation in interface ManagedGridService
- Throws:
RemoteException
getFederatedMethods
public List<String> getFederatedMethods()
- Specified by:
getFederatedMethods in interface ManagedGridService
Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.