|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.jaxrs.JaxrsCollection
ccc.api.jaxrs.FilesImpl
public class FilesImpl
Implementation of the Files
API.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Files |
---|
NAME |
Constructor Summary | |
---|---|
FilesImpl(Files files)
Constructor. |
Method Summary | |
---|---|
ResourceSummary |
create(File file)
Create a new CCC file. |
ResourceSummary |
createTextFile(File textFile)
Create a new text file in CCC. |
PagedCollection<File> |
getPagedImages(java.util.UUID folderId,
int pageNo,
int pageSize)
List all images of the given folder id. |
File |
retrieve(java.util.UUID fileId)
Get the representation of an existing CCC file. |
void |
retrieve(java.util.UUID file,
StreamAction action)
Process the contents of a file with an action. |
void |
retrieveRevision(java.util.UUID file,
int revision,
StreamAction action)
Process the contents of a file revision with an action. |
void |
retrieveWorkingCopy(java.util.UUID file,
StreamAction action)
Process the contents of a file's working copy with an action. |
void |
update(java.util.UUID id,
File file)
Update an existing CCC file. |
ResourceSummary |
updateFile(java.util.UUID fileId,
File file)
Update an existing CCC file. |
Methods inherited from class ccc.api.jaxrs.JaxrsCollection |
---|
convertException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FilesImpl(Files files)
files
- The files implementation delegated to.Method Detail |
---|
public File retrieve(java.util.UUID fileId)
retrieve
in interface Files
fileId
- The ID of the file to get.
public void update(java.util.UUID id, File file)
update
in interface Files
id
- The ID of the file to update.file
- The new file representation.public ResourceSummary createTextFile(File textFile)
createTextFile
in interface Files
textFile
- The textFile details.
public PagedCollection<File> getPagedImages(java.util.UUID folderId, int pageNo, int pageSize)
getPagedImages
in interface Files
folderId
- The id of the folder.pageNo
- The page to display.pageSize
- The number of results per page.
public ResourceSummary create(File file)
create
in interface Files
file
- The file to create.
public void retrieve(java.util.UUID file, StreamAction action)
retrieve
in interface Files
file
- The file's ID.action
- The action to perform.public void retrieveRevision(java.util.UUID file, int revision, StreamAction action)
retrieveRevision
in interface Files
file
- The file's ID.revision
- The file revision to retrieve.action
- The action to perform.public void retrieveWorkingCopy(java.util.UUID file, StreamAction action)
retrieveWorkingCopy
in interface Files
file
- The file's ID.action
- The action to perform.public ResourceSummary updateFile(java.util.UUID fileId, File file)
updateFile
in interface Files
fileId
- The id of the file to update.file
- The changes to apply.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |