|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
org.fcrepo.server.Pluggable
org.fcrepo.server.Module
org.fcrepo.server.management.BasicPIDGenerator
public class BasicPIDGenerator
A wrapper around the DBPIDGenerator class that casts it as a Module.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
BasicPIDGenerator(Map moduleParameters,
Server server,
String role)
Constructs a BasicPIDGenerator. |
|
| Method Summary | |
|---|---|
PID |
generatePID(String namespaceID)
Generate a new pid that is guaranteed to be unique, within the given namespace. |
PID |
getLastPID()
Get the last pid that was generated. |
void |
initModule()
Initializes the Module based on configuration parameters. |
void |
neverGeneratePID(String pid)
Cause the given PID to never be generated by the PID generator. |
void |
postInitModule()
Get a reference to the ConnectionPoolManager so we can give the instance constructor a ConnectionPool later in initializeIfNeeded(). |
| Methods inherited from class org.fcrepo.server.Module |
|---|
getRole, getServer, shutdownModule |
| Methods inherited from class org.fcrepo.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class org.fcrepo.server.Parameterized |
|---|
getParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicPIDGenerator(Map moduleParameters,
Server server,
String role)
throws ModuleInitializationException
moduleParameters - A pre-loaded Map of name-value pairs comprising the intended
configuration of this Module.server - The Server instance.role - The role this module fulfills, a java class name.
ModuleInitializationException - If initilization values are invalid or initialization fails for
some other reason.| Method Detail |
|---|
public void initModule()
Module
initModule in class Module
public void postInitModule()
throws ModuleInitializationException
postInitModule in class ModuleModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public PID generatePID(String namespaceID)
throws IOException
PIDGenerator
generatePID in interface PIDGeneratorIOException
public PID getLastPID()
throws IOException
PIDGenerator
getLastPID in interface PIDGeneratorIOException
public void neverGeneratePID(String pid)
throws IOException
PIDGenerator
neverGeneratePID in interface PIDGeneratorIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||