|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.addon.surf.page.PageCommands
public class PageCommands
Commands for managing Surf pages.
Constructor Summary | |
---|---|
PageCommands(PageOperations pageOperations)
|
Method Summary | |
---|---|
boolean |
isPageOperationAvailable()
Checks availability of page related commands. |
SortedSet<String> |
listSurfPageAssociations(String sourceId)
Lists associated pages of the page with a specified id. |
SortedSet<String> |
listSurfPages()
Lists all pages in your Surf project. |
void |
newPage(String pageId,
String pagePath,
String templateInstance,
String template,
String urls,
String title)
Adds a new page to the Surf project. |
void |
newPageAssociation(String sourcePageId,
String destPageId,
String name,
String type)
Adds a new Surf page association between two pages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageCommands(PageOperations pageOperations)
pageOperations
- Method Detail |
---|
public boolean isPageOperationAvailable()
public void newPage(String pageId, String pagePath, String templateInstance, String template, String urls, String title)
pageId
- Page id e.g. testpage.pagePath
- Page path e.g. pages, pages\mypage etc.templateInstance
- Template instance id.template
- Template id.urls
- List of urls that the new page will be mapped to. Urls should be separated by comma.title
- Page title.public void newPageAssociation(String sourcePageId, String destPageId, String name, String type)
sourcePageId
- Source page id.descPageId
- Destination page id.name
- Optional page association name.type
- Option page association type (default value is "child").public SortedSet<String> listSurfPages()
public SortedSet<String> listSurfPageAssociations(String sourceId)
sourceId
- Source page id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |