@Service @Path(value="fields") public class FieldResource extends Object implements org.springframework.roo.rest.publisher.ResourceMarker
| Constructor and Description |
|---|
FieldResource() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext cContext) |
void |
destroy() |
String |
getFields()
Method to handle GET method request of /fields service
|
org.springframework.roo.shell.Shell |
getShell()
Method to get Shell Service implementation
|
javax.json.JsonObject |
setupJpa(String entityName,
String fieldName,
String fieldGroup,
String fieldType,
String referencedClass)
Method to handle POST request of /fields service
|
protected void activate(org.osgi.service.component.ComponentContext cContext)
@GET @Produces(value="text/html") public String getFields()
request - response - @POST
@Consumes(value="application/x-www-form-urlencoded")
@Produces(value="application/json")
public javax.json.JsonObject setupJpa(@FormParam(value="entityName")
String entityName,
@FormParam(value="fieldName")
String fieldName,
@FormParam(value="fieldGroup")
String fieldGroup,
@FormParam(value="fieldType")
String fieldType,
@FormParam(value="referencedClass")
String referencedClass)
public void destroy()
public org.springframework.roo.shell.Shell getShell()
Copyright © 2009–2016. All rights reserved.