org.springframework.roo.addon.web.mvc.controller
Interface ControllerOperations

All Known Implementing Classes:
ControllerOperationsImpl

public interface ControllerOperations

Provides Controller configuration operations.

Author:
Ben Alex, Stefan Schmidt

Method Summary
 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()
          Deprecated. 
 void setup()
           
 

Method Detail

createAutomaticController

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.

Request 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.

Parameters:
controller - 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 requests

generateAll

void generateAll(org.springframework.roo.model.JavaPackage javaPackage)
Creates Spring MVC controllers for all JPA entities in the project.

Parameters:
javaPackage - The package where the new controllers are scaffolded.

isControllerInstallationPossible

boolean isControllerInstallationPossible()

isNewControllerAvailable

@Deprecated
boolean isNewControllerAvailable()
Deprecated. 


setup

void setup()


Copyright © 2009–2015. All rights reserved.