|
||||||||||
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.PagesImpl
public class PagesImpl
Implementation of the Pages
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Pages |
---|
NAME |
Constructor Summary | |
---|---|
PagesImpl(Pages pages)
Constructor. |
Method Summary | |
---|---|
ResourceSummary |
create(Page page)
Creates a new page. |
PagedCollection<ResourceSummary> |
list(PageCriteria criteria,
int pageNo,
int pageSize)
List existing pages. |
Page |
retrieve(java.util.UUID pageId)
Retrieve the page. |
Page |
retrieveWorkingCopy(java.util.UUID pageId)
Retrieve the working copy for a page. |
void |
update(java.util.UUID pageId,
Page json)
Update the specified page on the server. |
void |
updateWorkingCopy(java.util.UUID pageId,
Page delta)
Update the working copy of the specified page. |
java.lang.String |
validate(Page page)
Validate a set of paragraphs against a given definition. |
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 PagesImpl(Pages pages)
pages
- The pages implementation delegated to.Method Detail |
---|
public Page retrieve(java.util.UUID pageId)
retrieve
in interface Pages
pageId
- The page's id.
public ResourceSummary create(Page page)
create
in interface Pages
page
- Details of the new page to create.
public java.lang.String validate(Page page)
validate
in interface Pages
page
- The page to test.
public void updateWorkingCopy(java.util.UUID pageId, Page delta)
updateWorkingCopy
in interface Pages
pageId
- The id of the page to update.delta
- The changes to apply.public void update(java.util.UUID pageId, Page json)
update
in interface Pages
pageId
- The id of the page to update.json
- The changes to apply.public Page retrieveWorkingCopy(java.util.UUID pageId)
retrieveWorkingCopy
in interface Pages
pageId
- The page's id.
public PagedCollection<ResourceSummary> list(PageCriteria criteria, int pageNo, int pageSize)
list
in interface Pages
criteria
- The criteria by which to filter pages.pageNo
- The page of results to return.pageSize
- The number of results in a page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |