|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.axway.grapes.server.webapp.DataValidator
public final class DataValidator
Data Validator
Validates the posted mime to make sure that no corrupted data is sent to Grapes.
| Method Summary | |
|---|---|
static void |
validate(Artifact artifact)
Checks if the provided artifact is valid and could be stored into the database |
static void |
validate(License license)
Checks if the provided license is valid and could be stored into the database |
static void |
validate(Module module)
Checks if the provided module is valid and could be stored into the database |
static void |
validate(Organization organization)
Checks if the provided organization is valid and could be stored into the database |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void validate(Artifact artifact)
artifact - the artifact to test
javax.ws.rs.WebApplicationException - if the data is corruptedpublic static void validate(License license)
license - the license to test
javax.ws.rs.WebApplicationException - if the data is corruptedpublic static void validate(Module module)
module - the module to test
javax.ws.rs.WebApplicationException - if the data is corruptedpublic static void validate(Organization organization)
organization - Organization
javax.ws.rs.WebApplicationException - if the data is corrupted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||