@Service public class ControllerCommands extends Object implements org.springframework.roo.shell.CommandMarker
| Constructor and Description |
|---|
ControllerCommands() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
void |
addController(boolean all,
org.springframework.roo.model.JavaType entity,
String responseType,
org.springframework.roo.model.JavaPackage controllersPackage,
String pathPrefix)
This method provides the Command definition to be able to generate new
Controllers on current project.
|
void |
addDetailController(boolean all,
org.springframework.roo.model.JavaType entity,
String field,
org.springframework.roo.model.JavaPackage controllersPackage,
String responseType)
This method provides the Command definition to be able to generate new
Controllers on current project.
|
boolean |
areDetailParametersVisibles(org.springframework.roo.shell.ShellContext context) |
boolean |
areParametersVisibles(org.springframework.roo.shell.ShellContext context)
This indicator says if --package, --pathPrefix and --responseType
parameters should be visible or not
If --all or --entity parameters have not been specified, --package,
--pathPrefix and --responseType parameters will not be visible.
|
List<String> |
getAllAppServers(org.springframework.roo.shell.ShellContext context)
This indicator returns the servers where the application can be deployed
|
List<String> |
getAllControllerForOperationCommandValues(org.springframework.roo.shell.ShellContext context) |
List<String> |
getAllEntities(org.springframework.roo.shell.ShellContext shellContext)
Find entities in project and returns a list with their fully qualified
names.
|
List<String> |
getAllEntitiesForDetailCommands(org.springframework.roo.shell.ShellContext shellContext) |
List<String> |
getAllOperationsForOperationCommandValues(org.springframework.roo.shell.ShellContext context) |
List<String> |
getAllResponseTypeForDetailCommandValues(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> |
getAllServiceForOperationCommandValues(org.springframework.roo.shell.ShellContext context) |
org.springframework.roo.classpath.operations.ClasspathOperations |
getClasspathOperations() |
ControllerOperations |
getControllerOperations()
This method provides the Command definition to be able to publish service
operations in controllers.
|
List<String> |
getDetailFieldsRelatedToEntity(org.springframework.roo.shell.ShellContext shellContext) |
org.springframework.roo.process.manager.FileManager |
getFileManager() |
Map<String,ControllerMVCResponseService> |
getInstalledControllerMVCResponseTypes()
This method gets all implementations of ControllerMVCResponseService
interface to be able to locate all installed ControllerMVCResponseService
|
org.springframework.roo.classpath.scanner.MemberDetailsScanner |
getMemberDetailsScanner() |
org.springframework.roo.project.PathResolver |
getPathResolver() |
org.springframework.roo.project.ProjectOperations |
getProjectOperations() |
Map<String,ServerProvider> |
getServerProviders()
This method gets all implementations of ServerProvider interface to be
able to locate all availbale appServers
|
org.springframework.roo.classpath.TypeLocationService |
getTypeLocationService() |
boolean |
isAddControllerAvailable()
This indicator checks if is possible to add new controllers.
|
boolean |
isAddDetailControllerAvailable()
This indicator checks if is possible to add new detail controllers.
|
boolean |
isAllParameterOfDetailCommandVisible(org.springframework.roo.shell.ShellContext context) |
boolean |
isAllParameterOperationVisible(org.springframework.roo.shell.ShellContext context) |
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 |
isEntityParameterOfDetailCommandVisible(org.springframework.roo.shell.ShellContext context) |
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 |
isFieldParameterVisible(org.springframework.roo.shell.ShellContext context) |
boolean |
isModuleRequired(org.springframework.roo.shell.ShellContext shellContext)
This indicator checks if --module parameter should be mandatory or not.
|
boolean |
isModuleVisible(org.springframework.roo.shell.ShellContext shellContext)
This indicator checks if --module parameter should be visible or not.
|
boolean |
isOperationParameterOperationVisible(org.springframework.roo.shell.ShellContext context) |
boolean |
isPublishOperationsAvailable()
This indicator checks if is possible to publish own operations in
controllers.
|
boolean |
isServiceParameterOperationVisible(org.springframework.roo.shell.ShellContext context) |
boolean |
isSetupAvailable()
This indicator checks if Spring MVC setup is available
If a valid project has been generated and Spring MVC has not been
installed yet, this command will be available.
|
void |
setup(org.springframework.roo.project.maven.Pom module)
This method provides the Command definition to be able to include Spring
MVC on generated project.
|
protected void activate(org.osgi.service.component.ComponentContext context)
public boolean isModuleVisible(org.springframework.roo.shell.ShellContext shellContext)
shellContext - public boolean isModuleRequired(org.springframework.roo.shell.ShellContext shellContext)
shellContext - public List<String> getAllAppServers(org.springframework.roo.shell.ShellContext context)
context - public boolean isSetupAvailable()
public void setup(org.springframework.roo.project.maven.Pom module)
module - appServer - public boolean isAllParameterVisible(org.springframework.roo.shell.ShellContext context)
public boolean isEntityParameterVisible(org.springframework.roo.shell.ShellContext context)
public boolean areParametersVisibles(org.springframework.roo.shell.ShellContext context)
public List<String> getAllEntities(org.springframework.roo.shell.ShellContext shellContext)
shellContext - public List<String> getAllResponseTypeValues(org.springframework.roo.shell.ShellContext context)
context - public boolean isAddControllerAvailable()
public void addController(boolean all,
org.springframework.roo.model.JavaType entity,
String responseType,
org.springframework.roo.model.JavaPackage controllersPackage,
String pathPrefix)
all - entity - responseType - package - pathPrefix - public Map<String,ServerProvider> getServerProviders()
public Map<String,ControllerMVCResponseService> getInstalledControllerMVCResponseTypes()
public boolean isAddDetailControllerAvailable()
public boolean isAllParameterOfDetailCommandVisible(org.springframework.roo.shell.ShellContext context)
public boolean isEntityParameterOfDetailCommandVisible(org.springframework.roo.shell.ShellContext context)
public List<String> getAllEntitiesForDetailCommands(org.springframework.roo.shell.ShellContext shellContext)
public boolean isFieldParameterVisible(org.springframework.roo.shell.ShellContext context)
public List<String> getDetailFieldsRelatedToEntity(org.springframework.roo.shell.ShellContext shellContext)
public List<String> getAllResponseTypeForDetailCommandValues(org.springframework.roo.shell.ShellContext context)
public boolean areDetailParametersVisibles(org.springframework.roo.shell.ShellContext context)
public void addDetailController(boolean all,
org.springframework.roo.model.JavaType entity,
String field,
org.springframework.roo.model.JavaPackage controllersPackage,
String responseType)
all - entity - responseType - package - pathPrefix - public List<String> getAllControllerForOperationCommandValues(org.springframework.roo.shell.ShellContext context)
public List<String> getAllServiceForOperationCommandValues(org.springframework.roo.shell.ShellContext context)
public List<String> getAllOperationsForOperationCommandValues(org.springframework.roo.shell.ShellContext context)
public boolean isAllParameterOperationVisible(org.springframework.roo.shell.ShellContext context)
public boolean isOperationParameterOperationVisible(org.springframework.roo.shell.ShellContext context)
public boolean isServiceParameterOperationVisible(org.springframework.roo.shell.ShellContext context)
public boolean isPublishOperationsAvailable()
public ControllerOperations getControllerOperations()
controller - service - operation - all - public org.springframework.roo.project.ProjectOperations getProjectOperations()
public org.springframework.roo.project.PathResolver getPathResolver()
public org.springframework.roo.process.manager.FileManager getFileManager()
public org.springframework.roo.classpath.TypeLocationService getTypeLocationService()
public org.springframework.roo.classpath.operations.ClasspathOperations getClasspathOperations()
public org.springframework.roo.classpath.scanner.MemberDetailsScanner getMemberDetailsScanner()
Copyright © 2009–2016. All rights reserved.