Class CampaignItemLogResource

java.lang.Object
io.goobi.viewer.api.rest.v1.crowdsourcing.CampaignItemLogResource

@Path("/crowdsourcing/campaigns/{campaignId}") public class CampaignItemLogResource extends Object
Request filter to ensure only users with sufficient rights may access campaign resources.
Author:
florian
  • Field Details

  • 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