validateFields

java.lang.String validateFields(ccc.serialization.Json json)
Validate a set of paragraphs against a given definition.

 

Parameters:
json - The paragraphs to validate.
Returns:
A list of errors, as strings.

pageDelta

ccc.rest.dto.PageDelta pageDelta(java.util.UUID pageId)
                                 throws RestException
Retrieve the delta for a page.

 

Parameters:
pageId - The page's id.
Returns:
The corresponding delta.
Throws:
RestException - If the method fails

updatePage

void updatePage(java.util.UUID pageId,
                ccc.serialization.Json delta)
                throws RestException
Update the specified page on the server.

 

Parameters:
pageId - The id of the page to update.
delta - The changes to apply.
Throws:
RestException - If the method fails.

updateWorkingCopy

void updateWorkingCopy(java.util.UUID pageId,
                       ccc.rest.dto.PageDelta delta)
                       throws RestException
Update the working copy of the specified page.

 

Parameters:
pageId - The id of the page to update.
delta - The changes to apply.
Throws:
RestException - If the method fails.

createPage

ccc.rest.dto.ResourceSummary createPage(ccc.rest.dto.PageDto page)
                                        throws RestException
Creates a new page.

 

Parameters:
page - Details of the new page to create.
Returns:
A resource summary describing the new page.
Throws:
RestException - If the method fails.