|
|||||||||||
| 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.DataServiceResourceWrapperHome
A ResourceHome for
DataServiceResourceWrappers.
The key type class is specified in the JNDI configuration file.
The key type name is specified in
uk.org.ogsadai.service.wsrf.WSRFConstants#DATA_SERVICE_RESOURCE_KEY.
ResourceHome,
Initializable,
DataServiceResource,
DataServiceResourceWrapper| Constructor Summary | |
DataServiceResourceWrapperHome()
|
|
| Method Summary | |
void |
add(org.globus.wsrf.ResourceKey key,
java.lang.Object resource)
Add a DataServiceResourceWrapper with the given
ResourceKey. |
org.globus.wsrf.ResourceKey |
create(java.lang.Object id,
java.lang.String defaultRoot,
java.lang.String configRoot,
SecurityContextProvider securityContextProvider)
Create a new DataServiceResource, wrapped in a
DataServiceResourceWrapper, add it
to the "home" and return its ResourceKey. |
org.globus.wsrf.Resource |
find(org.globus.wsrf.ResourceKey key)
(non-JavaDoc) |
java.lang.Object[] |
getKeys()
Return an array of the current keys. |
java.lang.Class |
getKeyTypeClass()
(non-JavaDoc) |
javax.xml.namespace.QName |
getKeyTypeName()
(non-JavaDoc) |
void |
initialize()
(non-JavaDoc) |
void |
remove(org.globus.wsrf.ResourceKey key)
(non-JavaDoc) |
void |
setResourceKeyType(java.lang.String clazz)
Set the class used for resource keys. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataServiceResourceWrapperHome()
| Method Detail |
public org.globus.wsrf.ResourceKey create(java.lang.Object id,
java.lang.String defaultRoot,
java.lang.String configRoot,
SecurityContextProvider securityContextProvider)
throws DataServiceResourceInternalException,
DataServiceResourceUserException
DataServiceResource, wrapped in a
DataServiceResourceWrapper, add it
to the "home" and return its ResourceKey.
id - - ID of this data service resource wrapper - used to
construct the ResourceKeydefaultRoot - - default root directory for all relative
path. This can be null.configRoot - - directory within which configuration
files for this resource are located. This can be absolute or
relative or null.securityContextProvider - - object providing security
information for use in accessing properties.
DataServiceResourceInternalException - if there is an
internal problem experienced when parsing files or creating a
data service resource wrapper..
DataServiceResourceUserException - if there is a
user-caused problem e.g. if id is null,
configuration files cannot be found, or are of the incorrect
format.DataServiceResource,
DataServiceResourceWrapper
public void initialize()
throws java.lang.Exception
initialize in interface org.globus.wsrf.jndi.InitializableDAIServiceResourceUserException - if there is no key
type class.
java.lang.ExceptionInitializable.initialize()public java.lang.Class getKeyTypeClass()
getKeyTypeClass in interface org.globus.wsrf.ResourceHomeResourceHome.getKeyTypeClass()public javax.xml.namespace.QName getKeyTypeName()
getKeyTypeName in interface org.globus.wsrf.ResourceHomeResourceHome.getKeyTypeName(),
WSRFConstants.DATA_SERVICE_RESOURCE_KEY
public void setResourceKeyType(java.lang.String clazz)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException - if the class does not exist on
the CLASSPATH.
public org.globus.wsrf.Resource find(org.globus.wsrf.ResourceKey key)
throws org.globus.wsrf.ResourceException,
org.globus.wsrf.NoSuchResourceException,
org.globus.wsrf.InvalidResourceKeyException
find in interface org.globus.wsrf.ResourceHomeorg.globus.wsrf.ResourceException
org.globus.wsrf.NoSuchResourceException
org.globus.wsrf.InvalidResourceKeyExceptionResourceHome.find(org.globus.wsrf.ResourceKey)
public void remove(org.globus.wsrf.ResourceKey key)
throws org.globus.wsrf.ResourceException,
org.globus.wsrf.NoSuchResourceException,
org.globus.wsrf.InvalidResourceKeyException,
org.globus.wsrf.RemoveNotSupportedException
remove in interface org.globus.wsrf.ResourceHomeorg.globus.wsrf.ResourceException
org.globus.wsrf.NoSuchResourceException
org.globus.wsrf.InvalidResourceKeyException
org.globus.wsrf.RemoveNotSupportedExceptionResourceHome.remove(org.globus.wsrf.ResourceKey)
public void add(org.globus.wsrf.ResourceKey key,
java.lang.Object resource)
throws org.globus.wsrf.InvalidResourceKeyException,
DataServiceResourceUserException
DataServiceResourceWrapper with the given
ResourceKey. If the given resource is not a
DataServiceResourceWrapper then it is not added.
key - - resource key.resource - - DataServiceResourceWrapper.
org.globus.wsrf.InvalidResourceKeyException - if key is
null.
DataServiceResourceUserException - if
resource is null or not of type
DataServiceResourceWrapperpublic java.lang.Object[] getKeys()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||