Class ExternalSourceCorrectionTypeUriListHandler
java.lang.Object
org.dspace.app.rest.repository.handler.ExternalSourceEntryItemUriListHandler<CorrectionType>
org.dspace.app.rest.repository.handler.ExternalSourceCorrectionTypeUriListHandler
- All Implemented Interfaces:
UriListHandler<CorrectionType>
@Component
public class ExternalSourceCorrectionTypeUriListHandler
extends ExternalSourceEntryItemUriListHandler<CorrectionType>
This class extends the
ExternalSourceEntryItemUriListHandler abstract class and implements it specifically
for the List<CorrectionType> objects.- Author:
- Mohamed Eskander (mohamed.eskander at 4science.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will perform the actual handle logicbooleanThis method will take the UriList and method as input and verify whether the implementing UriListHandler can handle this input or notbooleanThis method will take all the required input and validate them to see if there are any issues before calling the handle methodMethods inherited from class org.dspace.app.rest.repository.handler.ExternalSourceEntryItemUriListHandler
createWorkspaceItem
-
Constructor Details
-
ExternalSourceCorrectionTypeUriListHandler
public ExternalSourceCorrectionTypeUriListHandler()
-
-
Method Details
-
supports
Description copied from interface:UriListHandlerThis method will take the UriList and method as input and verify whether the implementing UriListHandler can handle this input or not- Specified by:
supportsin interfaceUriListHandler<CorrectionType>- Overrides:
supportsin classExternalSourceEntryItemUriListHandler<CorrectionType>- Parameters:
uriList- The list of UriList Strings to be checked if they're supportedmethod- The request method to be checked if it's supportedclazz- The class to be returned by the handle method- Returns:
- A boolean indicating whether the implementing UriListHandler can handle this input
-
handle
public CorrectionType handle(Context context, jakarta.servlet.http.HttpServletRequest request, List<String> uriList) throws SQLException, AuthorizeException Description copied from interface:UriListHandlerThis method will perform the actual handle logic- Parameters:
context- The relevant DSpace contextrequest- The current requesturiList- The list of UriList Strings- Returns:
- The object of class T that was handled
- Throws:
SQLExceptionAuthorizeException
-
validate
public boolean validate(Context context, jakarta.servlet.http.HttpServletRequest request, List<String> uriList) throws AuthorizeException Description copied from interface:UriListHandlerThis method will take all the required input and validate them to see if there are any issues before calling the handle method- Specified by:
validatein interfaceUriListHandler<CorrectionType>- Overrides:
validatein classExternalSourceEntryItemUriListHandler<CorrectionType>- Parameters:
context- The relevant DSpace contextrequest- The current requesturiList- The list of UriList Strings- Returns:
- A boolean indicating whether all this input is valid for the implementing UriListHandler
- Throws:
AuthorizeException
-