org.dspace.app.util.service.DSpaceObjectUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dspace-api Show documentation
Show all versions of dspace-api Show documentation
DSpace core data model and service APIs.
/**
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree and available online at
*
* http://www.dspace.org/license/
*/
package org.dspace.app.util.service;
import java.sql.SQLException;
import java.util.UUID;
import org.dspace.content.DSpaceObject;
import org.dspace.core.Context;
/**
* Utility class providing methods to deal with generic DSpace Object of unknown type
*/
public interface DSpaceObjectUtils {
/**
* 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
*
* @param context
* DSpace context
* @param uuid
* the uuid to lookup
* @return the DSpaceObject if any with the supplied uuid
* @throws SQLException
*/
public DSpaceObject findDSpaceObject(Context context, UUID uuid) throws SQLException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy