@Service public class ControllerOperationsImpl extends Object implements ControllerOperations
ControllerOperations.| Constructor and Description |
|---|
ControllerOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createAutomaticController(org.springframework.roo.model.JavaType controller,
org.springframework.roo.model.JavaType entity,
Set<String> disallowedOperations,
String path)
Creates a new Spring MVC controller which will be automatically
scaffolded.
|
void |
generateAll(org.springframework.roo.model.JavaPackage javaPackage)
Creates Spring MVC controllers for all JPA entities in the project.
|
boolean |
isControllerInstallationPossible() |
boolean |
isNewControllerAvailable() |
void |
setup() |
public void createAutomaticController(org.springframework.roo.model.JavaType controller,
org.springframework.roo.model.JavaType entity,
Set<String> disallowedOperations,
String path)
ControllerOperationsRequest mappings assigned by this method will always commence with "/" and end with "/**". You may present this prefix and/or this suffix if you wish, although it will automatically be added should it not be provided.
createAutomaticController in interface ControllerOperationscontroller - the controller class to create (required)entity - the entity this controller should edit (required)disallowedOperations - specify a set of disallowed operation names
(required, but can be empty)path - the path which the controller should be accessible via REST
requestspublic void generateAll(org.springframework.roo.model.JavaPackage javaPackage)
ControllerOperationsgenerateAll in interface ControllerOperationsjavaPackage - The package where the new controllers are scaffolded.public boolean isControllerInstallationPossible()
isControllerInstallationPossible in interface ControllerOperationspublic boolean isNewControllerAvailable()
isNewControllerAvailable in interface ControllerOperationspublic void setup()
setup in interface ControllerOperationsCopyright © 2009–2015. All rights reserved.