|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.roo.addon.surf.component.ComponentCommands
public class ComponentCommands
Commands for managing Surf components.
Constructor Summary | |
---|---|
ComponentCommands(ComponentOperations componentOperations)
|
Method Summary | |
---|---|
boolean |
isSurfComponentOperationsAvailable()
Checks availability of component related commands. |
Collection<String> |
listSurfComponents(String scopeId,
String pageId,
String templateId)
Lists all Surf components in current Surf project. |
Collection<String> |
listSurfComponentTypes()
Lists all Surf component types. |
void |
newComponent(String pageId,
String regionId,
String url,
String options)
Adds a new Surf component to the current Surf project. |
void |
newComponentProperty(String componentInstanceId,
String propList)
Creates a new property for Surf component. |
void |
newComponentResource(String componentInstanceId,
String attributeList,
String contentBody)
Creates a new resource for the Surf component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentCommands(ComponentOperations componentOperations)
componentOperations
- Method Detail |
---|
public boolean isSurfComponentOperationsAvailable()
public Collection<String> listSurfComponentTypes()
public Collection<String> listSurfComponents(String scopeId, String pageId, String templateId)
scope
- Component scope.pageId
- Page id.templateId
- Template id.
public void newComponent(String pageId, String regionId, String url, String options)
pageId
- Page id.regionId
- Region id.url
- Component url.options
- Other options for the component.public void newComponentResource(String componentInstanceId, String attributeList, String contentBody)
componentInstanceId
- Component instance id.attributeList
- Attribute list. The input format is attr1:val1|attr2:val2.contentBody
- Content body.public void newComponentProperty(String componentInstanceId, String propList)
componentInstanceId
- Component instance id.propList
- Property list. The input format is name1:val1|name22:val2.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |