Class EntityDisplayResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.entity.impl.resources.entities.EntityDisplayResource
- All Implemented Interfaces:
RestResource
@Path("/entities/2.0/{name}/{pk: (?!.*((multi)|(search)|(count)|(model)))[^/]+ }/display")
public class EntityDisplayResource
extends AbstractRestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionEntityDisplayResource
(Context context, DataModel dataModel, RestDefaultDisplayService restDefaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultDisplay
(String modelName, String key) getDisplay
(String modelName, String key, String type) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
EntityDisplayResource
public EntityDisplayResource(Context context, DataModel dataModel, RestDefaultDisplayService restDefaultDisplayService)
-
-
Method Details
-
getDefaultDisplay
@GET @Produces("application/json") public DisplayBean.DisplayValue getDefaultDisplay(@PathParam("name") String modelName, @PathParam("pk") String key) -
getDisplay
@GET @Path("{type}") @Produces("application/json") public DisplayBean.DisplayValue getDisplay(@PathParam("name") String modelName, @PathParam("pk") String key, @PathParam("type") String type)
-