|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
org.fcrepo.server.Pluggable
org.fcrepo.server.Module
org.fcrepo.server.validation.DOObjectValidatorModule
public class DOObjectValidatorModule
A module for validating digital objects. Instead of validating the FOXML (as per DOValidatorModule), the digital object itself is validated, wrapped in a DOReader. If validators have been configured (see Spring config doobjectvalidator.xml), then any object creation or modification will result in the object being validated before it is committed to storage. Any validation errors will result in the modification being aborted.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DOObjectValidatorModule(Map<String,String> moduleParameters,
Server server,
String role)
|
|
| Method Summary | |
|---|---|
void |
postInitModule()
Second stage of Module initialization. |
void |
setValidators(Map<String,? extends DOObjectValidator> validators)
|
void |
validate(Context context,
DOReader reader)
Validate a digital object wrapped in a DOReader |
| Methods inherited from class org.fcrepo.server.Module |
|---|
getRole, getServer, initModule, shutdownModule |
| Methods inherited from class org.fcrepo.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class org.fcrepo.server.Parameterized |
|---|
getParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOObjectValidatorModule(Map<String,String> moduleParameters,
Server server,
String role)
throws ModuleInitializationException
ModuleInitializationException| Method Detail |
|---|
public void postInitModule()
throws ModuleInitializationException
Module
postInitModule in class ModuleModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public void validate(Context context,
DOReader reader)
throws ServerException
DOObjectValidator
validate in interface DOObjectValidatorreader - - DOReader wrapping the object
ServerExceptionpublic void setValidators(Map<String,? extends DOObjectValidator> validators)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||