org.fcrepo.server.management
Interface PIDGenerator

All Known Implementing Classes:
BasicPIDGenerator, DBPIDGenerator

public interface PIDGenerator

Interface for generating Fedora PIDs.

Author:
Paul Charlton, Chris Wilper

Method Summary
 PID generatePID(String namespace)
          Generate a new pid that is guaranteed to be unique, within the given namespace.
 PID getLastPID()
          Get the last pid that was generated.
 void neverGeneratePID(String pid)
          Cause the given PID to never be generated by the PID generator.
 

Method Detail

generatePID

PID generatePID(String namespace)
                throws IOException
Generate a new pid that is guaranteed to be unique, within the given namespace.

Parameters:
namespace -
Returns:
the PID
Throws:
IOException

getLastPID

PID getLastPID()
               throws IOException
Get the last pid that was generated.

Returns:
the last PID that was generated
Throws:
IOException

neverGeneratePID

void neverGeneratePID(String pid)
                      throws IOException
Cause the given PID to never be generated by the PID generator.

Parameters:
pid -
Throws:
IOException


Copyright © 2012 DuraSpace. All Rights Reserved.