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 Summary
Modifier and TypeMethodDescriptionvoid
setFormattedError
(boolean formattedError) javax.ws.rs.core.Response
validateFileDescription
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateFileName
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateFolderDescription
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateFolderName
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateFsPath
(String unsafe) javax.ws.rs.core.Response
validateGenericInput
(String unsafe) javax.ws.rs.core.Response
validateGroupDescription
(String unsafe) javax.ws.rs.core.Response
validateGroupName
(String unsafe) javax.ws.rs.core.Response
validateHostName
(String unsafe) javax.ws.rs.core.Response
validateMimeType
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateNodeDescription
(String unsafe) javax.ws.rs.core.Response
validateNodeInput
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateNodeName
(String unsafe) javax.ws.rs.core.Response
validatePageDescription
(int nodeId, String unsafe) javax.ws.rs.core.Response
validatePageName
(int nodeId, String unsafe) javax.ws.rs.core.Response
validateRoleDescription
(String unsafe) javax.ws.rs.core.Response
validateRoleName
(String unsafe) javax.ws.rs.core.Response
validateTagPart
(int partId, String unsafe) javax.ws.rs.core.Response
validateUserDescription
(String unsafe) javax.ws.rs.core.Response
validateUserEmail
(String unsafe) javax.ws.rs.core.Response
validateUserFirstName
(String unsafe) javax.ws.rs.core.Response
validateUserLastName
(String unsafe) javax.ws.rs.core.Response
validateUserMessage
(String unsafe) javax.ws.rs.core.Response
validateUserName
(String unsafe) Methods inherited from interface com.gentics.contentnode.rest.resource.AuthenticatedResource
setSessionId
-
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
- 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
- Throws:
Exception
-
validateHostName
- Throws:
Exception
-
validateFsPath
- 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
- 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
-