Package org.dspace.content.service
Interface DSpaceObjectLegacySupportService<T extends DSpaceObject>
- Type Parameters:
T- class type
- All Known Subinterfaces:
BitstreamService,BundleService,CollectionService,CommunityService,EPersonService,GroupService,ItemService
- All Known Implementing Classes:
BitstreamServiceImpl,BundleServiceImpl,CollectionServiceImpl,CommunityServiceImpl,EPersonServiceImpl,GroupServiceImpl,ItemServiceImpl
public interface DSpaceObjectLegacySupportService<T extends DSpaceObject>
Service interface class that adds support to retrieve DSpaceObject by the old integer based identifier which was used
to identify DSpaceObjects prior to DSpace 6.0
- Author:
- kevinvandevelde at atmire.com
-
Method Summary
Modifier and TypeMethodDescriptionfindByIdOrLegacyId(Context context, String id) findByLegacyId(Context context, int id) Generic find for when the precise type of a DSO is not known, just the a pair of type number and database ID.intReturns the Constants which this service supports
-
Method Details
-
findByIdOrLegacyId
- Throws:
SQLException
-
findByLegacyId
Generic find for when the precise type of a DSO is not known, just the a pair of type number and database ID.- Parameters:
context- - the contextid- - the legacy id within table of type'd objects- Returns:
- the object found, or null if it does not exist.
- Throws:
SQLException- only upon failure accessing the database.
-
getSupportsTypeConstant
int getSupportsTypeConstant()Returns the Constants which this service supports- Returns:
- a org.dspace.core.Constants that represents a DSpaceObjct type
-