Package org.mycore.pi
Class MCRPIManager
java.lang.Object
org.mycore.pi.MCRPIManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
exist
(MCRPIRegistrationInfo mcrpiRegistrationInfo) int
getCount()
int
getCreatedIdentifiers
(MCRObjectID id, String type, String registrationServiceID) getInfo
(MCRPersistentIdentifier identifier) getInfo
(MCRPersistentIdentifier identifier, String type) static MCRPIManager
getList()
getList
(int from, int count) <T extends MCRPersistentIdentifier>
MCRPIParser<T>getParserForType
(String type) Returns a parser for a specific type of persistent identifier.getRegistered
(MCRBase object) getUnregisteredIdentifiers
(String type, int maxSize) boolean
hasRegistrationStarted
(String mcrId, String additional, String type, String registrationServiceID) boolean
hasRegistrationStarted
(MCRObjectID mcrId, String additional, String type, String registrationServiceID) boolean
isCreated
(MCRObjectID id, String additional, String type, String registrationServiceID) boolean
isRegistered
(String mcrId, String additional, String type, String registrationServiceID) boolean
isRegistered
(MCRObjectID mcrId, String additional, String type, String registrationServiceID) boolean
isRegistered
(MCRPI mcrPi) void
registerParser
(String type, Class<? extends MCRPIParser<? extends MCRPersistentIdentifier>> parserClass) Registers a parser for a specific type of persistent identifier.setRegisteredDateForUnregisteredIdenifiers
(String type, Function<MCRPIRegistrationInfo, Optional<Date>> dateProvider, Integer batchSize)
-
Method Details
-
getInstance
-
getCount
public int getCount() -
exist
-
get
-
getCreatedIdentifiers
public List<MCRPIRegistrationInfo> getCreatedIdentifiers(MCRObjectID id, String type, String registrationServiceID) -
isCreated
public boolean isCreated(MCRObjectID id, String additional, String type, String registrationServiceID) -
isRegistered
-
isRegistered
public boolean isRegistered(MCRObjectID mcrId, String additional, String type, String registrationServiceID) -
isRegistered
-
hasRegistrationStarted
public boolean hasRegistrationStarted(MCRObjectID mcrId, String additional, String type, String registrationServiceID) -
hasRegistrationStarted
-
getCount
-
delete
-
getList
-
getList
-
getList
-
setRegisteredDateForUnregisteredIdenifiers
-
getUnregisteredIdentifiers
-
getUnregisteredIdentifiers
-
getRegistered
-
getInfo
-
getInfo
-
getInfo
-
getInfo
-
getParserForType
public <T extends MCRPersistentIdentifier> MCRPIParser<T> getParserForType(String type) throws ClassCastException Returns a parser for a specific type of persistent identifier.- Type Parameters:
T
- the type ofMCRPIParser
which should be returned.- Parameters:
type
- the type which should be parsed- Returns:
- a MCRPIParser
- Throws:
ClassCastException
- when the wrong type is passed
-
registerParser
public void registerParser(String type, Class<? extends MCRPIParser<? extends MCRPersistentIdentifier>> parserClass) Registers a parser for a specific type of persistent identifier.- Parameters:
type
- the type of the parserparserClass
- the class of the parser
-
getResolvers
-
get
-