@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 controller,
boolean all,
String finder,
String responseType)
This method provides the Command definition to be able to add
new finder on controllers.
|
List<String> |
getAllFinderValues(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> |
getControllerValues(org.springframework.roo.shell.ShellContext context) |
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 --finder parameter has been specified, --all parameter will not be visible
to prevent conflicts.
|
boolean |
isCommandAvailable() |
boolean |
isFinderParameterVisible(org.springframework.roo.shell.ShellContext context)
This indicator says if --finder parameter should be visible or not
If --all parameter has been specified, --finder parameter will not be visible
to prevent conflicts.
|
boolean |
isResponseTypeParameterMandatory(org.springframework.roo.shell.ShellContext context)
This indicator says if --responseType parameter should be mandatory or not
If --all or --finder parameter have not been specified, --responseType parameter will not be mandatory.
|
boolean |
isResponseTypeParameterVisible(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.
|
protected void activate(org.osgi.service.component.ComponentContext context)
public boolean isCommandAvailable()
public List<String> getControllerValues(org.springframework.roo.shell.ShellContext context)
public boolean isAllParameterVisible(org.springframework.roo.shell.ShellContext context)
public boolean isFinderParameterVisible(org.springframework.roo.shell.ShellContext context)
public List<String> getAllFinderValues(org.springframework.roo.shell.ShellContext context)
public boolean isResponseTypeParameterVisible(org.springframework.roo.shell.ShellContext context)
public boolean isResponseTypeParameterMandatory(org.springframework.roo.shell.ShellContext context)
public List<String> getAllResponseTypeValues(org.springframework.roo.shell.ShellContext context)
context - public void addController(org.springframework.roo.model.JavaType controller,
boolean all,
String finder,
String responseType)
controller - all - finder - responseType - 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–2016. All rights reserved.