|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.ogsadai.service.wsrf.resource.DataServiceResourceWrapper
A wrapper for exposing
uk.org.ogsadai.service.resource.DataServiceResource
objects as Globus Toolkit-compliant WS-Resources.
Each object has an associated ResourcePropertySet
.
This has a name
{http://ogsadai.org.uk/namespaces/2005/10/service/wsrf/dataservice}DataServiceResourcePropertiesSet
(held in constant
uk.org.ogsadai.service.wsrf.WSRFConstants.RP_SET
).
Resource
,
ResourceIdentifier
,
ResourceLifetime
,
ResourceProperties
,
DataServiceResource
Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private static DAILogger |
LOG
Logger object for logging in this class |
private DataServiceResource |
mDataServiceResource
Wrapped DataServiceResource |
private org.globus.wsrf.ResourcePropertySet |
mPropertySet
Resource properties in Globus Toolkit-compliant format |
private java.util.Calendar |
mTerminationTime
Resource termination time |
Constructor Summary | |
DataServiceResourceWrapper(java.lang.Object id,
DataResourceAccessor dataResourceAccessor,
ActivitiesConfig activitiesConfig,
SessionComponentFactory sessionComponentFactory,
SecurityContextProvider securityContextProvider,
ConcurrencySettings concurrency,
AccessAuthorizer authority)
Create a new data service resource wrapped within this wrapper. |
Method Summary | |
private void |
buildResourcePropertySet(SecurityContextProvider securityContextProvider)
Wrap the data service resource properties in Globus-compliant wrapper classes and add them to a org.globus.wsrf.ResourcePropertySet . |
java.util.Calendar |
getCurrentTime()
|
DataServiceResource |
getDataServiceResource()
Return the wrapped data service resource. |
java.lang.Object |
getID()
|
org.globus.wsrf.ResourcePropertySet |
getResourcePropertySet()
|
java.util.Calendar |
getTerminationTime()
|
void |
setTerminationTime(java.util.Calendar time)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private static DAILogger LOG
private DataServiceResource mDataServiceResource
DataServiceResource
private java.util.Calendar mTerminationTime
private org.globus.wsrf.ResourcePropertySet mPropertySet
Constructor Detail |
public DataServiceResourceWrapper(java.lang.Object id, DataResourceAccessor dataResourceAccessor, ActivitiesConfig activitiesConfig, SessionComponentFactory sessionComponentFactory, SecurityContextProvider securityContextProvider, ConcurrencySettings concurrency, AccessAuthorizer authority) throws ResourceCreationException
ResourcePropertySet
to expose the properties of
the data service resource.
id
- ID of the data service resource - used to
construct the ResourceKey
dataResourceAccessor
- The data resource accessor that gives access to any underlying data
resource.activitiesConfig
- Configuration details regarding the activity that can be used with
the resource.sessionComponentFactory
- A factory to create the session components required by a data
service resource.securityContextProvider
- Object that will provide security information for use
when accessing resource property values.concurrency
- Default concurrency settings for the resource.authority
- Authorizes access to the activities supported by this data service
resource.
ResourceCreationException
- if the data service resource cannot be created for some
reason.
java.lang.IllegalArgumentException
- if securityContextProvider
is null
.DataServiceResource
Method Detail |
private void buildResourcePropertySet(SecurityContextProvider securityContextProvider)
org.globus.wsrf.ResourcePropertySet
.
securityContextProvider
- Object that will provide security information for use
when accessing resource property values. Each property
wrapper will be given a reference to this provider.public void setTerminationTime(java.util.Calendar time)
setTerminationTime
in interface org.globus.wsrf.ResourceLifetime
public java.util.Calendar getTerminationTime()
getTerminationTime
in interface org.globus.wsrf.ResourceLifetime
public java.util.Calendar getCurrentTime()
getCurrentTime
in interface org.globus.wsrf.ResourceLifetime
public java.lang.Object getID()
getID
in interface org.globus.wsrf.ResourceIdentifier
public org.globus.wsrf.ResourcePropertySet getResourcePropertySet()
getResourcePropertySet
in interface org.globus.wsrf.ResourceProperties
public DataServiceResource getDataServiceResource()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |