|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceManager3
The ResourceManager3 interface is intended to facilitate update of the data mapped in by the Resource interface. This is the peer to the ResourceDomain3 interface.
ResourceDomain3
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
Method Summary | |
---|---|
void |
add(Resource resource,
RequestContext context)
Use this method to add to a Resource instance to the data store. |
Resource |
createResourceFromStream(java.io.InputStreamReader inputStream,
RequestContext context,
java.lang.String format)
Creates a resource from a stream, such as an XML stream. |
java.util.Enumeration |
createResourcesFromStream(java.io.InputStreamReader inputStream,
RequestContext context,
java.lang.String format)
Creates a set resources from a single stream, such as an XML stream. |
void |
delete(Resource resource,
RequestContext context)
Use this method to delete a Resource instance from the data store. |
java.lang.String[] |
getSupportedStreamFormats()
Answers the list of supported formats for createResourceFromStream and writeResourceToStream. |
void |
init(RequestContext context)
Perform any initialization required before a resource can be accessed using this manager. |
void |
sync(Resource resource,
RequestContext context)
Use this method to send any updates made for the Resource instance. |
void |
writeResourcesToStream(java.io.OutputStreamWriter outputStream,
java.util.Enumeration resources,
RequestContext context,
java.lang.String format)
Creates a stream from a set of resources. |
void |
writeResourceToStream(java.io.OutputStreamWriter outputStream,
Resource resource,
RequestContext context,
java.lang.String format)
Creates a stream from a resource. |
Field Detail |
---|
static final java.lang.String COPYRIGHT
Method Detail |
---|
void add(Resource resource, RequestContext context) throws AddResourceException, DuplicateResourceException
AddResourceException
DuplicateResourceException
void delete(Resource resource, RequestContext context) throws DeleteResourceException
DeleteResourceException
void sync(Resource resource, RequestContext context) throws ResourceUpdateException
ResourceUpdateException
Resource createResourceFromStream(java.io.InputStreamReader inputStream, RequestContext context, java.lang.String format) throws CreateResourceFromStreamException
inputStream
- The stream containing the data from which
the resource should be created.context
- The request contextformat
- The format (e.g. "XML", "CSL")
CreateResourceFromStreamException
void writeResourceToStream(java.io.OutputStreamWriter outputStream, Resource resource, RequestContext context, java.lang.String format) throws WriteResourceToStreamException
outputStream
- The stream to which the generated form
will be written.resource
- The resource from which the stream should be created.context
- The request context.format
- The desired fornat (e.g. "XML", "CSL")
WriteResourceToStreamException
java.util.Enumeration createResourcesFromStream(java.io.InputStreamReader inputStream, RequestContext context, java.lang.String format) throws CreateResourceFromStreamException
inputStream
- The stream containing the data from which
the resources should be created.context
- The request contextformat
- The format (e.g. "XML", "CSL")
CreateResourceFromStreamException
void writeResourcesToStream(java.io.OutputStreamWriter outputStream, java.util.Enumeration resources, RequestContext context, java.lang.String format) throws WriteResourceToStreamException
outputStream
- The stream to which the generated form
will be written.resources
- The resources from which the stream should be created.context
- The request context.format
- The desired format (e.g. "XML", "CSL")
WriteResourceToStreamException
java.lang.String[] getSupportedStreamFormats()
void init(RequestContext context) throws InitException
InitException
- Thrown if there is a problem initializing the
resource collection. For instance, if this method tries to create tables
and the user connecting to the database does not have authority to create
tables.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |