@Service public class WebFinderOperationsImpl extends Object implements WebFinderOperations
WebFinderOperations| Constructor and Description |
|---|
WebFinderOperationsImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createOrUpdateSearchControllerForAllEntities(ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
Creates or updates all controllers with it's associated entities query methods.
|
void |
createOrUpdateSearchControllerForEntity(org.springframework.roo.model.JavaType entity,
List<String> queryMethods,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
Creates or updates the controller associated to specified entity with the specified
query methods.
|
List<String> |
getFindersWhichCanBePublish(org.springframework.roo.model.JavaType entity,
ControllerMVCResponseService responseType)
Returns finders names which can be publish
|
List<String> |
getFindersWhichCanBePublish(org.springframework.roo.addon.layers.repository.jpa.addon.RepositoryJpaMetadata repositoryMetadata,
ControllerMVCResponseService responseType)
Returns finders names which can be publish
|
boolean |
isWebFinderInstallationPossible() |
public boolean isWebFinderInstallationPossible()
isWebFinderInstallationPossible in interface WebFinderOperationspublic void createOrUpdateSearchControllerForEntity(org.springframework.roo.model.JavaType entity,
List<String> queryMethods,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage controllerPackage,
String pathPrefix)
WebFinderOperationscreateOrUpdateSearchControllerForEntity in interface WebFinderOperationsentity - the JavaType representing the entity which associated repository
has the finders to publish in web layer.queryMethods - the ListresponseType - the ControllerMVCResponseService to be used by generated
controller.controllerPackage - the JavaPackage where controller should be generated.pathPrefix - the String with the default controller path for finder requests.public List<String> getFindersWhichCanBePublish(org.springframework.roo.addon.layers.repository.jpa.addon.RepositoryJpaMetadata repositoryMetadata, ControllerMVCResponseService responseType)
WebFinderOperationsgetFindersWhichCanBePublish in interface WebFinderOperationspublic List<String> getFindersWhichCanBePublish(org.springframework.roo.model.JavaType entity, ControllerMVCResponseService responseType)
WebFinderOperationsgetFindersWhichCanBePublish in interface WebFinderOperationsresponseType - (optional, can be null)public void createOrUpdateSearchControllerForAllEntities(ControllerMVCResponseService responseType, org.springframework.roo.model.JavaPackage controllerPackage, String pathPrefix)
WebFinderOperationscreateOrUpdateSearchControllerForAllEntities in interface WebFinderOperationsresponseType - the ControllerMVCResponseService to be used by generated
controllers.controllerPackage - the JavaPackage where controllers should be generated.pathPrefix - the String with the default controller paths for finder requests.Copyright © 2009–2017. All rights reserved.