Class CampaignItemLogResource
java.lang.Object
io.goobi.viewer.api.rest.v1.crowdsourcing.CampaignItemLogResource
Request filter to ensure only users with sufficient rights may access campaign resources.
- Author:
- florian
-
Field Summary
Modifier and TypeFieldDescriptionprotected AnnotationsResourceBuilder
protected AbstractApiUrlManager
-
Constructor Summary
ConstructorDescriptionCampaignItemLogResource
(javax.servlet.http.HttpServletRequest servletRequest, AbstractApiUrlManager urls, Long campaignId) CampaignItemLogResource
(javax.servlet.http.HttpServletRequest servletRequest, Long campaignId) Constructor for CampaignItemResource. -
Method Summary
Modifier and TypeMethodDescriptionaddMessage
(LogMessage message, String pi, javax.servlet.http.HttpServletRequest servletRequest) void
deleteMessage
(String pi, Long messageId) getLogForManifest
(String pi, javax.servlet.http.HttpServletRequest servletRequest) getMessage
(String pi, Long messageId, javax.servlet.http.HttpServletRequest servletRequest)
-
Field Details
-
urls
-
annoBuilder
-
-
Constructor Details
-
CampaignItemLogResource
public CampaignItemLogResource(@Context javax.servlet.http.HttpServletRequest servletRequest, @PathParam("campaignId") Long campaignId) Constructor for CampaignItemResource.
- Parameters:
servletRequest
-campaignId
-
-
CampaignItemLogResource
public CampaignItemLogResource(javax.servlet.http.HttpServletRequest servletRequest, AbstractApiUrlManager urls, @PathParam("campaignId") Long campaignId) - Parameters:
servletRequest
-urls
-campaignId
-
-
-
Method Details
-
getLogForManifest
@GET @Path("/{pi}/log") @Produces("application/json") public List<LogMessage> getLogForManifest(@PathParam("pi") String pi, @Context javax.servlet.http.HttpServletRequest servletRequest) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
DAOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-
addMessage
@POST @Path("/{pi}/log") @Produces("application/json") public LogMessage addMessage(LogMessage message, @PathParam("pi") String pi, @Context javax.servlet.http.HttpServletRequest servletRequest) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
DAOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-
deleteMessage
@DELETE @Path("/{pi}/log/{id}") @Produces("application/json") public void deleteMessage(@PathParam("pi") String pi, @PathParam("id") Long messageId) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
DAOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-
getMessage
@GET @Path("/{pi}/log/{id}") @Produces("application/json") public LogMessage getMessage(@PathParam("pi") String pi, @PathParam("id") Long messageId, @Context javax.servlet.http.HttpServletRequest servletRequest) throws DAOException, de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException - Throws:
DAOException
de.unigoettingen.sub.commons.contentlib.exceptions.ContentNotFoundException
-