|
||||||||||
| 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.data.DataServiceModule
public class DataServiceModule
| Field Summary | |
|---|---|
static String |
DATA_SERVICE_RESOURCE_TYPE
|
| Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
management, NO_ACCOUNT_NEEDED, pdp, thisServiceAddress |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.data.DataStagerResource |
|---|
DATA_RESOURCE_TYPE |
| Fields inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
FREE_SERVICE |
| Constructor Summary | |
|---|---|
DataServiceModule()
|
|
| Method Summary | |
|---|---|
void |
addOwnerRule(MatchRule rule)
Deprecated. |
void |
adoptFileLocal(String resourceID,
File data)
Adopt 'data' into stager. |
protected void |
chargeForUsage(TradeAccountConversation account,
String resourceID,
SubjectDescription user,
BigDecimal amount,
String currency,
String message)
Charge usage to an account. |
DataStagerStatus |
checkData()
Reports on the status of the data stager. |
DataStagerStatus |
checkDataLocal(String conversationID)
Reports on the status of a data stager. |
boolean |
checkReadAccess(SubjectDescription delegate)
Checks if the quoted delegate may read from this data stager. |
boolean |
checkWriteAccess(SubjectDescription delegate)
Checks if the quoted delegate may write to this data stager |
void |
copyFrom(org.apache.axis.message.addressing.EndpointReferenceType source)
Copy data from another data stager. |
void |
copyFromLocal(String conversationID,
org.apache.axis.message.addressing.EndpointReferenceType source)
Copy data from another data stager. |
void |
copyFromURL(String source)
Copy data from a normal web resource identified by a URL. |
void |
copyFromURLInternal(String conversationID,
String source)
|
void |
copyFromURLLocal(String conversationID,
String source)
Copy data from a resource identified by a URL. |
void |
copyOrLinkLocal(String resourceID,
File destination)
Copy the contents of resourceID to destination or, if possible, hard-link instead. |
void |
copyTo(org.apache.axis.message.addressing.EndpointReferenceType target)
Copy data to another data stager. |
void |
copyToInternal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
|
void |
copyToLocal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
Copy data to another data stager. |
org.apache.axis.message.addressing.EndpointReferenceType |
createStagingArea(String label,
MatchRule owner)
Create a new staging area. |
void |
deleteContents()
Delete data in the staging area. |
void |
deleteContentsInternal(String dataResourceID)
|
void |
destroy()
WSResource lifetime destroy |
void |
destroyLocal(String resourceId)
|
void |
disableR(MatchRule delegate)
Deprecated. |
void |
disableW(MatchRule delegate)
Deprecated. |
void |
enableR(MatchRule delegate)
Deprecated. |
void |
enableW(MatchRule delegate)
Deprecated. |
void |
ensurePoliciesDeployed()
Ensure that any required PBAC policies are deployed. |
void |
finishData()
Deprecated. |
void |
finishDataLocal(String resourceID)
Like finishData, but takes the conversation as an argument instead of getting it from the process context. |
Document |
getAtomFeed(String atomFeed,
String serviceBase)
Return notices from the service as an Atom feed. |
MatchRule[] |
getManagerRules()
Deprecated. |
NotificationMessage[] |
getMessages()
Returns all usage messages |
NotificationMessage[] |
getMessagesN(int MaximumNumber)
Returns usage messages |
MatchRule[] |
getOwnerRules()
Deprecated. |
MatchRule[] |
getReaderRules()
Deprecated. |
org.apache.axis.message.addressing.EndpointReferenceType[] |
getResources()
List the resources managed by this service for which the caller has some role. |
protected Class<? extends GridResource> |
getResourceType(String resourceID)
Return the class of this resource's bean. |
MatchRule[] |
getWriterRules()
Deprecated. |
String |
initStagingAreaLocal(MatchRule user,
String label,
org.apache.axis.message.addressing.EndpointReferenceType ownerEPR,
String eventListenerClassName,
boolean internal)
Create a new empty data stager managed not by a managing service, but a proxy class. |
String |
initStagingAreaLocal(MatchRule user,
String label,
StorableInStateRepository managingConversation,
boolean internal)
Create a new empty data stager. |
javax.activation.DataHandler |
read()
Read data from the stager. |
void |
reloadConfiguration()
Reload the configuration. |
void |
removeOwnerRule(MatchRule rule)
Deprecated. |
void |
save(javax.activation.DataHandler data)
Store data in the stager. |
void |
writeEnable()
Write enable the staging area. |
void |
writeProtect()
Write protect the staging area. |
| Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite |
|---|
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, generateEPR, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, 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.data.LocalDataService |
|---|
getEPR |
| 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.Signallable |
|---|
getAvailableSignals, signal |
| Methods inherited from interface uk.ac.soton.itinnovation.grid.comms.management.ManagedGridService |
|---|
addTrustedAccountService, getTrustedAccountServices, removeTrustedAccountService |
| 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 |
|---|
public static final String DATA_SERVICE_RESOURCE_TYPE
| Constructor Detail |
|---|
public DataServiceModule()
| 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 org.apache.axis.message.addressing.EndpointReferenceType createStagingArea(String label,
MatchRule owner)
throws RemoteException
DataService
createStagingArea in interface DataServicelabel - label for new stagerowner - A rule to allow access for the owner role
RemoteException
public String initStagingAreaLocal(MatchRule user,
String label,
org.apache.axis.message.addressing.EndpointReferenceType ownerEPR,
String eventListenerClassName,
boolean internal)
throws RemoteException
LocalDataServiceDataEventListener interface
and be supplied as the eventListener argument to this method.
initStagingAreaLocal in interface LocalDataServiceuser - the initial policy; the role can be "owner", "manager", "reader" or "writer"label - label for new stagerownerEPR - the EPR of a resource that "owns" this stager. A
conversation using this EPR will be passed to the eventListener
implementation when an event occurs. The service can then call
getEndpointRef to retreive it.eventListenerClassName - the full class name of an implementation
of DataEventListenerinternal - stager is part of another resource (e.g., the output of a job).
This should be true when using this method
RemoteException
public String initStagingAreaLocal(MatchRule user,
String label,
StorableInStateRepository managingConversation,
boolean internal)
throws RemoteException
LocalDataService
initStagingAreaLocal in interface LocalDataServiceuser - the initial policy; the role can be "owner", "manager", "reader" or "writer"label - label for new stagermanagingConversation - an SLAConversation or TradeAccountConversation to
manage this resource, or null if freeinternal - stager is part of another resource (e.g., the output of a job)
RemoteException
public void save(javax.activation.DataHandler data)
throws RemoteException
DataStagerResource
save in interface DataStagerResourcedata - - data handler for the SOAP attachment
RemoteException
public javax.activation.DataHandler read()
throws GridFailureException
DataStagerResource
read in interface DataStagerResourceGridFailureException
public void copyFrom(org.apache.axis.message.addressing.EndpointReferenceType source)
throws GridFailureException
DataStagerResource
copyFrom in interface DataStagerResourcesource - the data stager from which the data will be fetched
GridFailureException
public void copyFromLocal(String conversationID,
org.apache.axis.message.addressing.EndpointReferenceType source)
throws GridFailureException
LocalDataService
copyFromLocal in interface LocalDataServiceconversationID - the resource ID of the local data stager into which data will be copiedsource - the data stager from which the data will be fetched
GridFailureException
public void copyFromURL(String source)
throws GridFailureException
DataStagerResourceDataStagerResource.copyFrom(org.apache.axis.message.addressing.EndpointReferenceType) instead.
copyFromURL in interface DataStagerResourcesource - the source from which the data will be fetched
GridFailureException
public void copyFromURLLocal(String conversationID,
String source)
throws GridFailureException
LocalDataService
copyFromURLLocal in interface LocalDataServiceconversationID - the resource ID of the local data stager into which data will be copiedsource - the source URL from which the data will be fetched
GridFailureException
public void copyFromURLInternal(String conversationID,
String source)
throws GridFailureException
GridFailureException
public void copyTo(org.apache.axis.message.addressing.EndpointReferenceType target)
throws GridFailureException
DataStagerResource
copyTo in interface DataStagerResourcetarget - the data stager to which this stager's data will be copied
GridFailureException
public void copyToLocal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
throws GridFailureException
LocalDataService
copyToLocal in interface LocalDataServiceconversationID - the resource ID of the local data stager from which data will be copieduser - the SubjectDescription of the user who needs access to the target stagertarget - the data stager into which the data will be copied
GridFailureException
public void copyToInternal(String conversationID,
SubjectDescription user,
org.apache.axis.message.addressing.EndpointReferenceType target)
throws GridFailureException
GridFailureException
public void writeEnable()
throws GridFailureException
DataStagerResource
writeEnable in interface DataStagerResourceGridFailureExceptionDataStagerResource.writeProtect()
public void writeProtect()
throws GridFailureException
DataStagerResource
writeProtect in interface DataStagerResourceGridFailureException
@Deprecated
public void addOwnerRule(MatchRule rule)
throws GridFailureException
DataStagerResource
addOwnerRule in interface DataStagerResourcerule - the rule to add
GridFailureException
@Deprecated
public void removeOwnerRule(MatchRule rule)
throws GridFailureException
DataStagerResource
removeOwnerRule in interface DataStagerResourcerule - the rule to add
GridFailureException
@Deprecated
public void enableR(MatchRule delegate)
throws GridFailureException
DataStagerResource
enableR in interface DataStagerResourcedelegate - - delegate user
GridFailureException
@Deprecated
public void disableR(MatchRule delegate)
throws GridFailureException
DataStagerResource
disableR in interface DataStagerResourcedelegate - - delegate user
GridFailureException
@Deprecated
public void enableW(MatchRule delegate)
throws GridFailureException
DataStagerResource
enableW in interface DataStagerResourcedelegate - - delegate user
GridFailureException
@Deprecated
public void disableW(MatchRule delegate)
throws GridFailureException
DataStagerResource
disableW in interface DataStagerResourcedelegate - - delegate user
GridFailureException
@Deprecated
public MatchRule[] getReaderRules()
throws GridFailureException
DataStagerResource
getReaderRules in interface DataStagerResourceGridFailureException
@Deprecated
public MatchRule[] getWriterRules()
throws GridFailureException
DataStagerResource
getWriterRules in interface DataStagerResourceGridFailureException
@Deprecated
public MatchRule[] getManagerRules()
throws GridFailureException
DataStagerResource
getManagerRules in interface DataStagerResourceGridFailureException
@Deprecated
public MatchRule[] getOwnerRules()
throws GridFailureException
DataStagerResource
getOwnerRules in interface DataStagerResourceGridFailureException
public void deleteContents()
throws GridFailureException
DataStagerResource
deleteContents in interface DataStagerResourceGridFailureException
public void deleteContentsInternal(String dataResourceID)
throws GridFailureException
GridFailureException
public boolean checkReadAccess(SubjectDescription delegate)
throws GridFailureException
DataStagerResource
checkReadAccess in interface DataStagerResourcedelegate - - delegate user
GridFailureException
public boolean checkWriteAccess(SubjectDescription delegate)
throws GridFailureException
DataStagerResource
checkWriteAccess in interface DataStagerResourcedelegate - - delegate user
GridFailureException
public DataStagerStatus checkData()
throws GridFailureException
DataStagerResource
checkData in interface DataStagerResourceGridFailureException
public DataStagerStatus checkDataLocal(String conversationID)
throws GridFailureException
LocalDataService
checkDataLocal in interface LocalDataServiceconversationID - The resource ID of the data stager being checked.
GridFailureException
@Deprecated
public void finishData()
throws GridFailureException
DataStagerResource
finishData in interface DataStagerResourceGridFailureException
public void finishDataLocal(String resourceID)
throws GridFailureException
LocalDataService
finishDataLocal in interface LocalDataServiceGridFailureException
public org.apache.axis.message.addressing.EndpointReferenceType[] getResources()
throws GridFailureException
GridService
getResources in interface GridServiceGridFailureExceptionprotected Class<? extends GridResource> getResourceType(String resourceID)
GridServiceLite
getResourceType in class GridServiceLite
public void copyOrLinkLocal(String resourceID,
File destination)
throws GridFailureException
LocalDataService
copyOrLinkLocal in interface LocalDataServiceGridFailureException - if the stager doesn't exist or is empty.
public void adoptFileLocal(String resourceID,
File data)
throws GridFailureException
adoptFileLocal in interface LocalDataServiceresourceID - stager which will aquire data, must be empty on entrydata - existing file to be adopted, must be on same filesystem as data root
GridFailureException
public Document getAtomFeed(String atomFeed,
String serviceBase)
getAtomFeed in interface WebAdminatomFeed - the URL of the feedserviceBase - the service administration URL (for creating hyperlinks)AtomUtils
protected void chargeForUsage(TradeAccountConversation account,
String resourceID,
SubjectDescription user,
BigDecimal amount,
String currency,
String message)
throws GridFailureException
resourceID - the resource being useduser - the person using the stageramount - the amount to chargemessage - the message for the user's account statement
This method doesn't check that the user is authorised to use the account. That is only done when creating
a resource, to prevent the problem where we have access to the account but the user doesn't. We don't check after
that, because the user may have been granted access by the owner of the new resource, despite not having access to the account.
GridFailureExceptionpublic 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 void destroy()
throws ResourceNotDestroyedFault
destroy in interface WSResourceLifetimeResourceNotDestroyedFault
public void destroyLocal(String resourceId)
throws GridFailureException
GridFailureException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||