Class MetadataValueReplacePatchOperation<DSO extends DSpaceObject>
java.lang.Object
org.dspace.app.rest.submit.factory.impl.PatchOperation<T>
org.dspace.app.rest.submit.factory.impl.ReplacePatchOperation<MetadataValueRest>
org.dspace.app.rest.submit.factory.impl.MetadataValueReplacePatchOperation<DSO>
- Direct Known Subclasses:
BitstreamMetadataValueReplacePatchOperation,ItemMetadataValueReplacePatchOperation
public abstract class MetadataValueReplacePatchOperation<DSO extends DSpaceObject>
extends ReplacePatchOperation<MetadataValueRest>
Submission "replace" common PATCH operation.
- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Class<MetadataValueRest[]>protected Class<MetadataValueRest>protected abstract DSpaceObjectService<DSO>protected voidreplaceValue(Context context, DSO source, String target, List<MetadataValue> list, MetadataValueRest object, int index) protected voidsetDeclaredField(Context context, DSO source, Object value, String metadata, String namedField, List<MetadataValue> metadataByMetadataString, int index) Methods inherited from class org.dspace.app.rest.submit.factory.impl.ReplacePatchOperation
performMethods inherited from class org.dspace.app.rest.submit.factory.impl.PatchOperation
evaluateArrayObject, evaluateSingleObject, getAbsolutePath, getStepId
-
Constructor Details
-
MetadataValueReplacePatchOperation
public MetadataValueReplacePatchOperation()
-
-
Method Details
-
getArrayClassForEvaluation
- Specified by:
getArrayClassForEvaluationin classPatchOperation<MetadataValueRest>
-
getClassForEvaluation
- Specified by:
getClassForEvaluationin classPatchOperation<MetadataValueRest>
-
replaceValue
protected void replaceValue(Context context, DSO source, String target, List<MetadataValue> list, MetadataValueRest object, int index) throws SQLException - Throws:
SQLException
-
setDeclaredField
protected void setDeclaredField(Context context, DSO source, Object value, String metadata, String namedField, List<MetadataValue> metadataByMetadataString, int index) throws IllegalAccessException, SQLException - Throws:
IllegalAccessExceptionSQLException
-
getDSpaceObjectService
-