|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.addon.surf.template.TemplateCommands
public class TemplateCommands
Commands for template and template instance related operations.
Constructor Summary | |
---|---|
TemplateCommands(TemplateOperations templateOperations)
|
Method Summary | |
---|---|
boolean |
isTemplateOperationAvailable()
Check availability of template related commands. |
SortedSet<String> |
listSurfTemplateInstances()
Lists all Surf template instances. |
Collection<RegionConfig> |
listSurfTemplateRegions(String templatePath)
Shows list of regions belong to this template. |
SortedSet<String> |
listSurfTemplates()
Lists all Surf templates. |
void |
newTemplate(String path)
Creates a template (ftl) at the specified path. |
void |
newTemplateInstance(String id,
String path,
String templatePath)
Creates a Template Instance with the given id that maps to the given template path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateCommands(TemplateOperations templateOperations)
templateOperations
- Method Detail |
---|
public boolean isTemplateOperationAvailable()
public SortedSet<String> listSurfTemplates()
public SortedSet<String> listSurfTemplateInstances()
public void newTemplate(String path)
path
- Path of the new template.public void newTemplateInstance(String id, String path, String templatePath)
id
- Id of the new template instance.path
- Path of the new template instance.templatePath
- Template for the new template instance.public Collection<RegionConfig> listSurfTemplateRegions(String templatePath)
templatePath
- Template path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |