org.springframework.roo.addon.web.mvc.controller
Class ControllerOperationsImpl

java.lang.Object
  extended by org.springframework.roo.addon.web.mvc.controller.ControllerOperationsImpl
All Implemented Interfaces:
ControllerOperations

@Service
public class ControllerOperationsImpl
extends Object
implements ControllerOperations

Implementation of ControllerOperations.

Since:
1.0
Author:
Stefan Schmidt

Constructor Summary
ControllerOperationsImpl()
           
 
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()
           
 void setup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControllerOperationsImpl

public ControllerOperationsImpl()
Method Detail

createAutomaticController

public void createAutomaticController(org.springframework.roo.model.JavaType controller,
                                      org.springframework.roo.model.JavaType entity,
                                      Set<String> disallowedOperations,
                                      String path)
Description copied from interface: ControllerOperations
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.

Specified by:
createAutomaticController in interface ControllerOperations
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

public void generateAll(org.springframework.roo.model.JavaPackage javaPackage)
Description copied from interface: ControllerOperations
Creates Spring MVC controllers for all JPA entities in the project.

Specified by:
generateAll in interface ControllerOperations
Parameters:
javaPackage - The package where the new controllers are scaffolded.

isControllerInstallationPossible

public boolean isControllerInstallationPossible()
Specified by:
isControllerInstallationPossible in interface ControllerOperations

isNewControllerAvailable

public boolean isNewControllerAvailable()
Specified by:
isNewControllerAvailable in interface ControllerOperations

setup

public void setup()
Specified by:
setup in interface ControllerOperations


Copyright © 2009–2015. All rights reserved.