Class ExternalSourceEntryArchivedItemUriListHandler
- java.lang.Object
-
- org.dspace.app.rest.repository.handler.ExternalSourceEntryItemUriListHandler<org.dspace.content.Item>
-
- org.dspace.app.rest.repository.handler.ExternalSourceEntryArchivedItemUriListHandler
-
- All Implemented Interfaces:
UriListHandler<org.dspace.content.Item>
@Component public class ExternalSourceEntryArchivedItemUriListHandler extends ExternalSourceEntryItemUriListHandler<org.dspace.content.Item>
This class will handle ExternalSourceEntryUriList and it'll create Item objects based on them. This will create Archived items and thus only Admin users can use it
-
-
Constructor Summary
Constructors Constructor Description ExternalSourceEntryArchivedItemUriListHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.dspace.content.Itemhandle(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, List<String> uriList)This method will perform the actual handle logicbooleansupports(List<String> uriList, String method, Class clazz)This method will take the UriList and method as input and verify whether the implementing UriListHandler can handle this input or notbooleanvalidate(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, List<String> uriList)This method will take all the required input and validate them to see if there are any issues before calling the handle method-
Methods inherited from class org.dspace.app.rest.repository.handler.ExternalSourceEntryItemUriListHandler
createWorkspaceItem
-
-
-
-
Method Detail
-
supports
public boolean supports(List<String> uriList, String method, Class clazz)
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<org.dspace.content.Item>- Overrides:
supportsin classExternalSourceEntryItemUriListHandler<org.dspace.content.Item>- 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
-
validate
public boolean validate(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, List<String> uriList) throws org.dspace.authorize.AuthorizeExceptionDescription 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<org.dspace.content.Item>- Overrides:
validatein classExternalSourceEntryItemUriListHandler<org.dspace.content.Item>- 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:
org.dspace.authorize.AuthorizeException
-
handle
public org.dspace.content.Item handle(org.dspace.core.Context context, javax.servlet.http.HttpServletRequest request, List<String> uriList) throws SQLException, org.dspace.authorize.AuthorizeExceptionDescription 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:
SQLExceptionorg.dspace.authorize.AuthorizeException
-
-