@Service public class WebFinderCommands extends Object implements org.springframework.roo.shell.CommandMarker
| Constructor and Description |
|---|
WebFinderCommands() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
void |
addController(org.springframework.roo.model.JavaType entity,
boolean all,
String queryMethod,
String responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
This method provides the Command definition to be able to add
new finder on controllers.
|
List<String> |
getAllQueryMethodValues(org.springframework.roo.shell.ShellContext context) |
List<String> |
getAllResponseTypeValues(org.springframework.roo.shell.ShellContext context)
This indicator returns all possible values for --responseType parameter.
|
List<String> |
getEntityValues(org.springframework.roo.shell.ShellContext context) |
List<String> |
getFinders(org.springframework.roo.model.JavaType entity,
ControllerMVCResponseService controllerResponseType)
Get all finder names associated to an entity
|
Map<String,ControllerMVCResponseService> |
getInstalledControllerMVCResponseTypes()
This method gets all implementations of ControllerMVCResponseService interface to be able
to locate all installed ControllerMVCResponseService
|
org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaType> |
getJavaTypeConverter()
This method obtains JavaType converter to be able to obtain JavaType
from strings
|
org.springframework.roo.project.ProjectOperations |
getProjectOperations() |
org.springframework.roo.classpath.TypeLocationService |
getTypeLocationService() |
boolean |
isAllParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --all parameter should be visible or not
If --entity parameter has been specified, --all parameter will not be visible
to prevent conflicts.
|
boolean |
isCommandAvailable() |
boolean |
isEntityParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --entity parameter should be visible or not
If --all parameter has been specified, --entity parameter will not be visible
to prevent conflicts.
|
boolean |
isPackageParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --responseType parameter should be visible or not
If --all or --finder parameter have not been specified, --responseType parameter will not be visible
to preserve order.
|
boolean |
isPackageRequired(org.springframework.roo.shell.ShellContext shellContext)
This indicator says if --package parameter should be visible or not.
|
boolean |
isPathPrefixParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --pathPrefix parameter should be visible or not
If --all or --entity parameter have not been specified, --pathPrefix parameter will not be visible
to preserve order.
|
boolean |
isQueryMethodParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --queryMethod parameter should be visible or not
If --entity parameter has been specified, --queryMethod parameter will be visible.
|
boolean |
isResponseTypeParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --responseType parameter should be visible or not
If --all or --entity parameter have not been specified, --responseType parameter will not be visible
to preserve order.
|
protected void activate(org.osgi.service.component.ComponentContext context)
public boolean isCommandAvailable()
public boolean isEntityParameterVisible(org.springframework.roo.shell.ShellContext context)
public List<String> getEntityValues(org.springframework.roo.shell.ShellContext context)
public boolean isAllParameterVisible(org.springframework.roo.shell.ShellContext context)
public boolean isQueryMethodParameterVisible(org.springframework.roo.shell.ShellContext context)
public List<String> getAllQueryMethodValues(org.springframework.roo.shell.ShellContext context)
public boolean isPackageParameterVisible(org.springframework.roo.shell.ShellContext context)
public boolean isPackageRequired(org.springframework.roo.shell.ShellContext shellContext)
shellContext - public boolean isResponseTypeParameterVisible(org.springframework.roo.shell.ShellContext context)
public List<String> getAllResponseTypeValues(org.springframework.roo.shell.ShellContext context)
context - public boolean isPathPrefixParameterVisible(org.springframework.roo.shell.ShellContext context)
public void addController(org.springframework.roo.model.JavaType entity,
boolean all,
String queryMethod,
String responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
controller - all - finder - responseType - public List<String> getFinders(org.springframework.roo.model.JavaType entity, ControllerMVCResponseService controllerResponseType)
entity - the JavaType representing the entity whose finder names should
be returned.controllerResponseType - (can be null)public Map<String,ControllerMVCResponseService> getInstalledControllerMVCResponseTypes()
public org.springframework.roo.project.ProjectOperations getProjectOperations()
public org.springframework.roo.shell.Converter<org.springframework.roo.model.JavaType> getJavaTypeConverter()
public org.springframework.roo.classpath.TypeLocationService getTypeLocationService()
Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.