|
||||||||||
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.ComponentOperations
public class ComponentOperations
Provides Surf component related operations.
Constructor Summary | |
---|---|
ComponentOperations(org.springframework.roo.process.manager.FileManager fileManager,
org.springframework.roo.project.PathResolver pathResolver,
org.springframework.roo.metadata.MetadataService metadataService,
org.springframework.roo.project.ProjectOperations projectOperations)
|
Method Summary | |
---|---|
void |
createComponent(String pageId,
String regionId,
String componentType,
String options)
Creates a new component. |
void |
createComponentProperty(String componentName,
String propertyList)
Adds new properties to the component configuration xml. |
void |
createComponentResource(String componentName,
String attributeList,
String contentBody)
Adds a new resource to the component configuration xml. |
String |
getComponentInstanceName(String pageInstanceName,
String templateInstanceName,
String regionId,
String scope)
Returns component name. |
String |
getComponentUrl(String instanceName)
Returns component url. |
boolean |
isSurfComponentAvailable(String componentId)
Checks if a Surf component exists or not. |
boolean |
isSurfComponentOperationsAvailable()
Checks if Surf component related operations are available. |
boolean |
isSurfComponentTypeAvailable(String componentPath)
Checks if the component type is available. |
SortedSet<String> |
listGlobalScopedSurfComponents()
Returns list of global scoped Surf components. |
SortedSet<String> |
listPageScopedSurfComponents(String pageId)
List of page scoped Surf components. |
SortedSet<String> |
listSurfComponents(String scopeId,
String pageId,
String templateId)
Returns all available components. |
SortedSet<String> |
listSurfComponentTypes()
Returns list of all available component types. |
SortedSet<String> |
listTemplateScopedSurfComponents(String templateId)
Returns list of template scoped Surf component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentOperations(org.springframework.roo.process.manager.FileManager fileManager, org.springframework.roo.project.PathResolver pathResolver, org.springframework.roo.metadata.MetadataService metadataService, org.springframework.roo.project.ProjectOperations projectOperations)
fileManager
- pathResolver
- metadataService
- projectOperations
- Method Detail |
---|
public boolean isSurfComponentOperationsAvailable()
public SortedSet<String> listGlobalScopedSurfComponents()
public SortedSet<String> listPageScopedSurfComponents(String pageId)
pageId
- Page id.
public SortedSet<String> listTemplateScopedSurfComponents(String templateId)
templateId
- Template id.
public SortedSet<String> listSurfComponents(String scopeId, String pageId, String templateId)
scopeId
- Component scope.pageId
- Page id.templateId
- Template id.
public SortedSet<String> listSurfComponentTypes()
public boolean isSurfComponentAvailable(String componentId)
componentId
- Component id.
public boolean isSurfComponentTypeAvailable(String componentPath)
componentPath
- Component path .
public void createComponent(String pageId, String regionId, String componentType, String options)
pageId
- Page id.templatePath
- Path of the template used for creating component.regionId
- Region id.componentType
- Component type.options
- Additional options.public void createComponentResource(String componentName, String attributeList, String contentBody)
componentName
- Component name.attributeList
- List of attributes for the new resource.contentBody
- Resource text content.public void createComponentProperty(String componentName, String propertyList)
componentName
- Component name.propertyList
- List of new properties.public String getComponentInstanceName(String pageInstanceName, String templateInstanceName, String regionId, String scope)
pageInstanceName
- Page instance name.templateInstanceName
- Template instance name.regionId
- Region id.scope
- Region scope.
public String getComponentUrl(String instanceName)
instanceName
- Component instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |