|
||||||||||
| 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
sample.impl.SampleServiceImpl
public class SampleServiceImpl
The implementation of SampleService. The mapping from the interface to this class is in the implementationfactory.properties file.
| Field Summary |
|---|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
factory, management, NO_ACCOUNT_NEEDED, pdp, thisServiceAddress |
| Fields inherited from interface sample.SampleService |
|---|
SAMPLE_SERVICE_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Constructor Summary | |
|---|---|
SampleServiceImpl()
|
|
| Method Summary | |
|---|---|
org.apache.axis.message.addressing.EndpointReferenceType |
createSampleResource(String label,
MatchPattern owner)
Create a new resource. |
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. |
NotificationMessage[] |
getMessages()
Returns all usage messages |
NotificationMessage[] |
getMessagesN(int MaximumNumber)
Returns usage messages |
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources managed by this service for which the caller has some role. |
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.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.types.GridService |
|---|
getServiceProviderID, getServiceProviderIssuer |
| Constructor Detail |
|---|
public SampleServiceImpl()
| Method Detail |
|---|
public void ensurePoliciesDeployed()
throws GridFailureException
WebAdmin
ensurePoliciesDeployed in interface WebAdminGridFailureException
public void reloadConfiguration()
throws Exception
Exception - if the configuration is not yet validprotected 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 createSampleResource(String label,
MatchPattern owner)
throws RemoteException
SampleServiceOn 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.
createSampleResource in interface SampleServicelabel - A label for the new resourceowner - A pattern to allow access by the new resource's owner
RemoteException
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws GridFailureException
GridService
getResources in interface GridServiceGridFailureException
public Document getAtomFeed(String atomFeed,
String serviceBase)
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)AtomUtilspublic 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||