@Path(value="shops/{shopId}/script-tags/")
public class ScriptTagResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javax.ws.rs.container.ContainerRequestContext |
containerRequestContext |
private ScriptTagService |
scriptTagService |
private java.lang.String |
shopId |
private ShopRequestContextService |
shopRequestContextService |
Constructor and Description |
---|
ScriptTagResource() |
Modifier and Type | Method and Description |
---|---|
private void |
addSelfLink(ShopRequestContext shopRequestContext,
ScriptTagEntity scriptTag) |
javax.ws.rs.core.Response |
delete(java.lang.String scriptTagId) |
private java.lang.String |
extractTokenFromRequest() |
javax.ws.rs.core.Response |
get(java.lang.Boolean myScriptTagsOnly) |
javax.ws.rs.core.Response |
post(ScriptTagEntity scriptTag) |
@Context private javax.ws.rs.container.ContainerRequestContext containerRequestContext
@Inject private ShopRequestContextService shopRequestContextService
@Inject private ScriptTagService scriptTagService
@PathParam(value="shopId") private java.lang.String shopId
@POST @RolesAllowed(value="scripttags_write") @Consumes(value="application/json") @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response post(ScriptTagEntity scriptTag)
@GET @RolesAllowed(value={"sf","scripttags_read"}) @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response get(@DefaultValue(value="false") @QueryParam(value="myScriptTagsOnly") java.lang.Boolean myScriptTagsOnly)
@DELETE @Path(value="{scriptTagId}") @RolesAllowed(value="scripttags_write") @Produces(value="application/vnd.epages.v1+json, application/json") public javax.ws.rs.core.Response delete(@PathParam(value="scriptTagId") java.lang.String scriptTagId)
private java.lang.String extractTokenFromRequest()
private void addSelfLink(ShopRequestContext shopRequestContext, ScriptTagEntity scriptTag)