templates

java.util.Collection<ccc.rest.dto.TemplateSummary> templates()
List all the templates currently available in CCC.

 

Returns:
A list of templates.

templateNameExists

java.lang.Boolean templateNameExists(java.lang.String templateName)
Returns true if template name exists in the template folder.

 

Parameters:
templateName - The name to look up.
Returns:
True if name exists.

templateDelta

ccc.rest.dto.TemplateDelta templateDelta(java.util.UUID templateId)
                                         throws RestException
Retrieve the delta for a template.

 

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

updateTemplate

void updateTemplate(java.util.UUID templateId,
                    ccc.rest.dto.TemplateDelta delta)
                    throws RestException
Update the specified template on the server.

 

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

createTemplate

ccc.rest.dto.ResourceSummary createTemplate(ccc.rest.dto.TemplateDto template)
                                            throws RestException
Create a new template in CCC.

 

Parameters:
template - The template's details.
Returns:
A resource summary describing the new template.
Throws:
RestException - If the method fails.