Package org.dspace.app.rest.utils
Class DSpaceObjectUtils
java.lang.Object
org.dspace.app.rest.utils.DSpaceObjectUtils
Utility class providing methods to deal with generic DSpace Object of unknown type
- Author:
- Mykhaylo Boychuk (4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindDSpaceObject(Context context, UUID uuid) Retrieve a DSpaceObject from its uuid.
-
Constructor Details
-
DSpaceObjectUtils
public DSpaceObjectUtils()
-
-
Method Details
-
findDSpaceObject
Retrieve a DSpaceObject from its uuid. As this method need to iterate over all the different services that support concrete class of DSpaceObject it has poor performance. Please consider the use of the direct service (ItemService, CommunityService, etc.) if you know in advance the type of DSpaceObject that you are looking for- Parameters:
context- DSpace contextuuid- the uuid to lookup- Returns:
- the DSpaceObject if any with the supplied uuid
- Throws:
SQLException
-