Interface ValidationResource

All Superinterfaces:
AuthenticatedResource

@Path("/validate") @Consumes("text/html; charset=UTF-8") public interface ValidationResource extends AuthenticatedResource
REST API for validating user input.
  • Method Details

    • setFormattedError

      @QueryParam("formattedError") void setFormattedError(boolean formattedError)
      Parameters:
      formattedError - If true, the response will include a formatted error message.
    • validateTagPart

      @POST @Path("/tagPart/{partId}") javax.ws.rs.core.Response validateTagPart(@PathParam("partId") int partId, String unsafe) throws Exception
      Throws:
      Exception
    • validateGenericInput

      @POST @Path("/genericInput") javax.ws.rs.core.Response validateGenericInput(String unsafe) throws Exception
      Throws:
      Exception
    • validateUserName

      @POST @Path("/userName") javax.ws.rs.core.Response validateUserName(String unsafe) throws Exception
      Throws:
      Exception
    • validateUserEmail

      @POST @Path("/userEmail") javax.ws.rs.core.Response validateUserEmail(String unsafe) throws Exception
      Throws:
      Exception
    • validateUserFirstName

      @POST @Path("/userFirstName") javax.ws.rs.core.Response validateUserFirstName(String unsafe) throws Exception
      Throws:
      Exception
    • validateUserLastName

      @POST @Path("/userLastName") javax.ws.rs.core.Response validateUserLastName(String unsafe) throws Exception
      Throws:
      Exception
    • validateUserDescription

      @POST @Path("/userDescription") javax.ws.rs.core.Response validateUserDescription(String unsafe) throws Exception
      Throws:
      Exception
    • validateNodeName

      @POST @Path("/nodeName") javax.ws.rs.core.Response validateNodeName(String unsafe) throws Exception
      Throws:
      Exception
    • validateHostName

      @POST @Path("/hostName") javax.ws.rs.core.Response validateHostName(String unsafe) throws Exception
      Throws:
      Exception
    • validateFsPath

      @POST @Path("/fsPath") javax.ws.rs.core.Response validateFsPath(String unsafe) throws Exception
      Throws:
      Exception
    • validateNodeDescription

      @POST @Path("/nodeDescription") javax.ws.rs.core.Response validateNodeDescription(String unsafe) throws Exception
      Throws:
      Exception
    • validateUserMessage

      @POST @Path("/userMessage") javax.ws.rs.core.Response validateUserMessage(String unsafe) throws Exception
      Throws:
      Exception
    • validateGroupName

      @POST @Path("/groupName") javax.ws.rs.core.Response validateGroupName(String unsafe) throws Exception
      Throws:
      Exception
    • validateGroupDescription

      @POST @Path("/groupDescription") javax.ws.rs.core.Response validateGroupDescription(String unsafe) throws Exception
      Throws:
      Exception
    • validateRoleName

      @POST @Path("/roleName") javax.ws.rs.core.Response validateRoleName(String unsafe) throws Exception
      Throws:
      Exception
    • validateRoleDescription

      @POST @Path("/roleDescription") javax.ws.rs.core.Response validateRoleDescription(String unsafe) throws Exception
      Throws:
      Exception
    • validateNodeInput

      @POST @Path("/nodeInput/{nodeId}") javax.ws.rs.core.Response validateNodeInput(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validateFolderName

      @POST @Path("/nodeInput/{nodeId}/folderName") javax.ws.rs.core.Response validateFolderName(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validateFolderDescription

      @POST @Path("/nodeInput/{nodeId}/folderDescription") javax.ws.rs.core.Response validateFolderDescription(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validatePageName

      @POST @Path("/nodeInput/{nodeId}/pageName") javax.ws.rs.core.Response validatePageName(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validatePageDescription

      @POST @Path("/nodeInput/{nodeId}/pageDescription") javax.ws.rs.core.Response validatePageDescription(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validateFileDescription

      @POST @Path("/nodeInput/{nodeId}/fileDescription") javax.ws.rs.core.Response validateFileDescription(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validateFileName

      @POST @Path("/nodeInput/{nodeId}/fileName") javax.ws.rs.core.Response validateFileName(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception
    • validateMimeType

      @POST @Path("/nodeInput/{nodeId}/mimeType") javax.ws.rs.core.Response validateMimeType(@PathParam("nodeId") int nodeId, String unsafe) throws Exception
      Throws:
      Exception