public class HandleURIGenerator extends Object implements URIGenerator
| Modifier and Type | Field and Description |
|---|---|
protected HandleService |
handleService |
protected SiteService |
siteService |
| Constructor and Description |
|---|
HandleURIGenerator() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateIdentifier(Context context,
DSpaceObject dso)
Shortcut for
generateIdentifier(context, dso.getType(), dso.getID(), dso.getHandle()). |
String |
generateIdentifier(Context context,
int type,
UUID id,
String handle,
List<String> identifiers)
Generate a URI that can be used to identify the specified DSpaceObject in
RDF data.
|
@Autowired(required=true) protected SiteService siteService
@Autowired(required=true) protected HandleService handleService
public String generateIdentifier(Context context, int type, UUID id, String handle, List<String> identifiers) throws SQLException
URIGeneratorgenerateIdentifier in interface URIGeneratorcontext - DSpace Context.type - Type of the DSpaceObject you want to generate a URI for (e.g.
Constants.ITEM.id - UUID of the DSpaceObject you want to generate a URI for.handle - Handle of the DSpaceObject you want to generate a URI for.identifiers - list of identifiersSQLException - An exception that provides information on a database access error or other errors.RDFUtil.generateIdentifier(Context, DSpaceObject)public String generateIdentifier(Context context, DSpaceObject dso) throws SQLException
URIGeneratorgenerateIdentifier(context, dso.getType(), dso.getID(), dso.getHandle()).generateIdentifier in interface URIGeneratorcontext - The relevant DSpace Context.dso - DSpace object to generate identifier forSQLException - An exception that provides information on a database access error or other errors.Copyright © 2019 DuraSpace. All rights reserved.