Package org.mycore.datamodel.common
Class MCRCreatorCache
java.lang.Object
org.mycore.datamodel.common.MCRCreatorCache
- Author:
- René Adler (eagle)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCreator
(String objectId) Returns the creator by givenMCRObjectID
.static String
getCreator
(MCRObjectID objectId) Returns the creator by givenMCRObjectID
.static void
invalidate
(String objectId) Discard the cached creator for givenMCRObjectID
.static void
invalidate
(MCRObjectID objectId) Discard the cached creator for givenMCRObjectID
.
-
Constructor Details
-
MCRCreatorCache
public MCRCreatorCache()
-
-
Method Details
-
getCreator
Returns the creator by givenMCRObjectID
.- Parameters:
objectId
- theMCRObjectID
- Returns:
- the creator of the object
- Throws:
ExecutionException
- is thrown if any other exception occurs
-
getCreator
Returns the creator by givenMCRObjectID
.- Parameters:
objectId
- theMCRObjectID
- Returns:
- the creator of the object
- Throws:
ExecutionException
- is thrown if any other exception occurs
-
invalidate
Discard the cached creator for givenMCRObjectID
.- Parameters:
objectId
- theMCRObjectID
-
invalidate
Discard the cached creator for givenMCRObjectID
.- Parameters:
objectId
- theMCRObjectID
-