public interface ControllerOperations
extends org.springframework.roo.project.Feature
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
createLinkFactoryClass(org.springframework.roo.model.JavaType controller)
Method that creates a new LinkFactory class related to the provided controller
|
void |
createOrUpdateControllerForAllEntities(ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
This operation will generate or update a controller for every class
annotated with @RooJpaEntity
|
void |
createOrUpdateControllerForEntity(org.springframework.roo.model.JavaType entity,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
This operation will generate or update a controller for a specified
entity
|
void |
createOrUpdateDetailControllerForEntity(org.springframework.roo.model.JavaType entity,
String relationField,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String viewsList)
This operation will generate or update a level detail controller for a
specified field located in specified entity
|
void |
createOrUpdateDetailControllersForAllEntities(ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String viewsList)
This operation will generate or update a first level detail controller
for every class annotated with @RooJpaEntity that has defined a @RooController
|
void |
exportOperation(org.springframework.roo.model.JavaType controller,
List<String> operations)
Generate the operations selected in the controller indicated
|
List<String> |
getAllMethodsToPublish(String currentService,
String currentController)
Get all the methods that can be published from the service or the controller established by parameter
|
String |
getBasePathForController(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails controller)
Gets base Path for referenced controller
|
String |
getBasePathForController(org.springframework.roo.model.JavaType controller)
Gets base Path for referenced controller
|
String |
getBaseUrlControllerForFinder(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails controller,
String finder)
Gets finder base URL for referenced controller
|
String |
getBaseUrlControllerForFinder(org.springframework.roo.model.JavaType controller,
String finder)
Gets finder base URL for referenced controller
|
String |
getBaseUrlForController(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails controller)
Gets base URL for referenced controller
|
String |
getBaseUrlForController(org.springframework.roo.model.JavaType controller)
Gets base URL for referenced controller
|
List<RelationInfoExtended> |
getRelationInfoFor(org.springframework.roo.model.JavaType entity,
String path)
Return a list of
RelationInfoExtended for a field relation path of a entity. |
List<RelationInfoExtended> |
getRelationInfoFor(org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata entity,
String path)
Return a list of
RelationInfoExtended for a field relation path of a entity. |
boolean |
isAddControllerAvailable()
This operation will check if add controllers operation is available
|
boolean |
isAddDetailControllerAvailable()
This operation will check if add detail controllers operation is available
|
boolean |
isPublishOperationsAvailable()
This operation will check if the operation publish services methods is available
|
boolean |
isSetupAvailable()
This operation will check if setup operation is available
|
void |
setup(org.springframework.roo.project.maven.Pom module,
boolean usesDefaultModule)
This operation will setup Spring MVC on generated project.
|
static final String FEATURE_NAME
boolean isSetupAvailable()
void setup(org.springframework.roo.project.maven.Pom module,
boolean usesDefaultModule)
module - Pom module where Spring MVC should be includedusesDefaultModule - boolean that indicates if the setup command is using the default
application moduleboolean isAddControllerAvailable()
boolean isAddDetailControllerAvailable()
boolean isPublishOperationsAvailable()
void createOrUpdateControllerForAllEntities(ControllerMVCResponseService responseType, org.springframework.roo.model.JavaPackage controllerPackage, String pathPrefix)
responseType - View provider to usecontrollerPackage - Package where is situated the controllerpathPrefix - Prefix to use in RequestMappingvoid createOrUpdateControllerForEntity(org.springframework.roo.model.JavaType entity,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
entity - Entity over which create the controllerresponseType - View provider to usecontrollerPackage - Package where is situated the controllerpathPrefix - Prefix to use in RequestMappingvoid createOrUpdateDetailControllersForAllEntities(ControllerMVCResponseService responseType, org.springframework.roo.model.JavaPackage controllerPackage, String viewsList)
responseType - View provider to usecontrollerPackage - Package where is situated the controllerviewsList - Separated comma list of all parent views where the new detail
will be displayedvoid createOrUpdateDetailControllerForEntity(org.springframework.roo.model.JavaType entity,
String relationField,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String viewsList)
entity - Entity over which create the controllerrelationField - Field that set the relationshipresponseType - View provider to usecontrollerPackage - Package where is situated the controllerviewsList - Separated comma list of all parent views where the new detail
will be displayedList<String> getAllMethodsToPublish(String currentService, String currentController)
currentService - Service from which obtain methodscurrentController - Controller from which obtain methodsvoid exportOperation(org.springframework.roo.model.JavaType controller,
List<String> operations)
controller - Controller where the operations will be createdoperations - Service operations names that will be createdList<RelationInfoExtended> getRelationInfoFor(org.springframework.roo.model.JavaType entity, String path)
RelationInfoExtended for a field relation path of a entity.
path is split by dot char and every return item is information for every path element.
by example: entity could be Customer and path "order.details"entity - path - NullPointerException - if entity is nullIllegalArgumentException - if path is incorrectList<RelationInfoExtended> getRelationInfoFor(org.springframework.roo.addon.jpa.addon.entity.JpaEntityMetadata entity, String path)
RelationInfoExtended for a field relation path of a entity.
path is split by dot char and every return item is information for every path element.
by example: entity could be Customer and path "order.details"entity - path - String getBasePathForController(org.springframework.roo.model.JavaType controller)
controller - JavaType correctly annotated with RooControllerString getBasePathForController(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails controller)
controller - details correctly annotated with RooControllerString getBaseUrlForController(org.springframework.roo.model.JavaType controller)
controller - JavaType correctly annotated with RooControllerString getBaseUrlForController(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails controller)
controller - details correctly annotated with RooControllerString getBaseUrlControllerForFinder(org.springframework.roo.model.JavaType controller, String finder)
controller - JavaType correctly annotated with RooController and RooSearchfinder - target. Should be one of RooSearch.finders()String getBaseUrlControllerForFinder(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails controller, String finder)
controller - details correctly annotated with RooController and RooSearchfinder - target. Should be one of RooSearch.finders()void createLinkFactoryClass(org.springframework.roo.model.JavaType controller)
controller - Copyright © 2009–2018 Pivotal Software, Inc.. All rights reserved.