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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TfindByIdOrLegacyId(Context context, String id)TfindByLegacyId(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.intgetSupportsTypeConstant()Returns the Constants which this service supports
-
-
-
Method Detail
-
findByIdOrLegacyId
T findByIdOrLegacyId(Context context, String id) throws SQLException
- Throws:
SQLException
-
findByLegacyId
T findByLegacyId(Context context, int id) throws SQLException
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
-
-