|
||||||||||
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.TemplatesImpl
public class TemplatesImpl
Implementation of the Templates
API.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Templates |
---|
NAME |
Constructor Summary | |
---|---|
TemplatesImpl(Templates templates)
Constructor. |
Method Summary | |
---|---|
ResourceSummary |
create(Template template)
Create a new template in CCC. |
PagedCollection<Template> |
query(int pageNo,
int pageSize)
List all the templates currently available in CCC. |
Template |
retrieve(java.util.UUID templateId)
Retrieve the delta for a template. |
Template |
retrieveRevision(java.util.UUID templateId,
int revision)
Retrieve a template revision. |
java.lang.Boolean |
templateNameExists(java.lang.String templateName)
Returns true if template name exists in the template folder. |
void |
update(java.util.UUID templateId,
Template delta)
Update the specified template on the server. |
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 TemplatesImpl(Templates templates)
templates
- The templates implementation delegated to.Method Detail |
---|
public Template retrieve(java.util.UUID templateId)
retrieve
in interface Templates
templateId
- The template's id.
public java.lang.Boolean templateNameExists(java.lang.String templateName)
templateNameExists
in interface Templates
templateName
- The name to look up.
public PagedCollection<Template> query(int pageNo, int pageSize)
query
in interface Templates
pageNo
- The page of results to return.pageSize
- The number of results in a page.
public void update(java.util.UUID templateId, Template delta)
update
in interface Templates
templateId
- The id of the template to update.delta
- The changes to apply.public ResourceSummary create(Template template)
create
in interface Templates
template
- The template's details.
public Template retrieveRevision(java.util.UUID templateId, int revision)
retrieveRevision
in interface Templates
templateId
- The template's id.revision
- The revision to fetch.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |