|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceRepository
A stateless utility service intended to be used by flowscripts to help them with persistent operations on sources.
Each operation returns a status code that is based on RFC 2518 (WebDAV).
Field Summary | |
---|---|
static String |
ROLE
|
static int |
STATUS_CONFLICT
Status CONFLICT (409). |
static int |
STATUS_CREATED
Status CREATED (201). |
static int |
STATUS_FORBIDDEN
Status FORBIDDEN (403). |
static int |
STATUS_NO_CONTENT
Status NO_CONTENT (204). |
static int |
STATUS_NOT_ALLOWED
Status NOT_ALLOWED (405). |
static int |
STATUS_NOT_FOUND
Status NOT_FOUND (404). |
static int |
STATUS_OK
Status OK (200). |
static int |
STATUS_PRECONDITION_FAILED
Status PRECONDITION_FAILED (412) |
Method Summary | |
---|---|
int |
copy(String from,
String to,
boolean recurse,
boolean overwrite)
Copy a Souce from one location to the other. |
int |
makeCollection(String location)
Create a Source collection. |
int |
move(String from,
String to,
boolean recurse,
boolean overwrite)
Move a Source from one location to the other. |
int |
remove(String location)
Deletes a Source and all of its descendants. |
int |
save(String in,
String out)
Saves a Source by either creating a new one or overwriting the previous one. |
Field Detail |
---|
static final String ROLE
static final int STATUS_OK
static final int STATUS_CREATED
static final int STATUS_NO_CONTENT
static final int STATUS_FORBIDDEN
static final int STATUS_NOT_FOUND
static final int STATUS_NOT_ALLOWED
static final int STATUS_CONFLICT
static final int STATUS_PRECONDITION_FAILED
Method Detail |
---|
int save(String in, String out) throws IOException, SourceException
in
- the Source location to read from.out
- the Source location to write to.
IOException
SourceException
int makeCollection(String location) throws IOException, SourceException
location
- the location of the source collection to create.
IOException
SourceException
int remove(String location) throws IOException, SourceException
location
- the location of the source to delete.
IOException
SourceException
int move(String from, String to, boolean recurse, boolean overwrite) throws IOException, SourceException
from
- the source location.to
- the destination location.recurse
- whether to move all the source descendents also.overwrite
- whether to overwrite the destination source if it exists.
IOException
SourceException
int copy(String from, String to, boolean recurse, boolean overwrite) throws IOException, SourceException
from
- the source location.to
- the destination location.recurse
- whether to move all the source descendents also.overwrite
- whether to overwrite the destination source if it exists.
IOException
SourceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |