public class HandlePlugin extends Object implements net.handle.hdllib.HandleStorage
HandleService. This only provides some of the
functionality (namely, the resolving of handles to URLs) of the CNRI
HandleStorage interface.
This class is intended to be embedded in the CNRI Handle Server. It conforms to the HandleStorage interface that was delivered with Handle Server version 6.2.0.
| Modifier and Type | Field and Description |
|---|---|
protected ConfigurationService |
configurationService |
protected HandleService |
handleService
References to DSpace Services
|
| Constructor and Description |
|---|
HandlePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkpointDatabase()
HandleStorage interface method - not implemented.
|
void |
createHandle(byte[] theHandle,
net.handle.hdllib.HandleValue[] values)
HandleStorage interface method - not implemented.
|
void |
deleteAllRecords()
HandleStorage interface method - not implemented.
|
boolean |
deleteHandle(byte[] theHandle)
HandleStorage interface method - not implemented.
|
Enumeration |
getHandlesForNA(byte[] theNAHandle)
Return all handles in local storage which start with the naming authority
handle.
|
byte[][] |
getRawHandleValues(byte[] theHandle,
int[] indexList,
byte[][] typeList)
Return the raw values for this handle.
|
boolean |
haveNA(byte[] theHandle)
Return true if we have this handle in storage.
|
void |
init(net.handle.util.StreamTable st)
HandleStorage interface init method.
|
void |
scanHandles(net.handle.hdllib.ScanCallback callback)
HandleStorage interface method - not implemented.
|
void |
scanNAs(net.handle.hdllib.ScanCallback callback)
HandleStorage interface method - not implemented.
|
void |
setHaveNA(byte[] theHandle,
boolean haveit)
HandleStorage interface method - not implemented.
|
void |
shutdown()
HandleStorage interface shutdown() method.
|
void |
updateValue(byte[] theHandle,
net.handle.hdllib.HandleValue[] values)
HandleStorage interface method - not implemented.
|
protected HandleService handleService
protected ConfigurationService configurationService
public void init(net.handle.util.StreamTable st)
throws Exception
For DSpace, we have to startup the DSpace Kernel when HandlePlugin initializes, as the HandlePlugin relies on HandleService (and other services) which are loaded by the Kernel.
init in interface net.handle.hdllib.HandleStoragest - StreamTableException - if DSpace Kernel fails to startuppublic void setHaveNA(byte[] theHandle,
boolean haveit)
throws net.handle.hdllib.HandleException
setHaveNA in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic void createHandle(byte[] theHandle,
net.handle.hdllib.HandleValue[] values)
throws net.handle.hdllib.HandleException
createHandle in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic boolean deleteHandle(byte[] theHandle)
throws net.handle.hdllib.HandleException
deleteHandle in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic void updateValue(byte[] theHandle,
net.handle.hdllib.HandleValue[] values)
throws net.handle.hdllib.HandleException
updateValue in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic void deleteAllRecords()
throws net.handle.hdllib.HandleException
deleteAllRecords in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic void checkpointDatabase()
throws net.handle.hdllib.HandleException
checkpointDatabase in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic void shutdown()
For DSpace, we need to destroy the kernel created in init().
shutdown in interface net.handle.hdllib.HandleStoragepublic void scanHandles(net.handle.hdllib.ScanCallback callback)
throws net.handle.hdllib.HandleException
scanHandles in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic void scanNAs(net.handle.hdllib.ScanCallback callback)
throws net.handle.hdllib.HandleException
scanNAs in interface net.handle.hdllib.HandleStoragenet.handle.hdllib.HandleExceptionpublic byte[][] getRawHandleValues(byte[] theHandle,
int[] indexList,
byte[][] typeList)
throws net.handle.hdllib.HandleException
getRawHandleValues in interface net.handle.hdllib.HandleStoragetheHandle - byte array representation of handleindexList - ignoredtypeList - ignorednet.handle.hdllib.HandleException - If an error occurs while calling the Handle API.public boolean haveNA(byte[] theHandle)
throws net.handle.hdllib.HandleException
haveNA in interface net.handle.hdllib.HandleStoragetheHandle - byte array representation of handlenet.handle.hdllib.HandleException - If an error occurs while calling the Handle API.public Enumeration getHandlesForNA(byte[] theNAHandle) throws net.handle.hdllib.HandleException
getHandlesForNA in interface net.handle.hdllib.HandleStoragetheNAHandle - byte array representation of naming authority handlenet.handle.hdllib.HandleException - If an error occurs while calling the Handle API.Copyright © 2022 LYRASIS. All rights reserved.