Package org.mycore.mods
Class MCRMODSEmbargoUtils
java.lang.Object
org.mycore.mods.MCRMODSEmbargoUtils
- Author:
- René Adler (eagle)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCachedEmbargo
(MCRObjectID objectId) static String
getEmbargo
(String objectId) Returns the embargo ornull
if none is set or is allowed to read.static String
getEmbargo
(MCRObject object) static String
getEmbargo
(MCRObjectID objectId) Returns the embargo ornull
if none is set or is allowed to read.getEmbargoDate
(String objectID) getEmbargoDate
(MCRObject object) getEmbargoDate
(MCRObjectID object) static boolean
isAfterToday
(String embargoDate) static boolean
isCurrentUserCreator
(MCRObjectID objectId)
-
Field Details
-
POOLPRIVILEGE_EMBARGO
- See Also:
-
-
Constructor Details
-
MCRMODSEmbargoUtils
public MCRMODSEmbargoUtils()
-
-
Method Details
-
getCachedEmbargo
-
getEmbargo
Returns the embargo ornull
if none is set or is allowed to read.- Parameters:
objectId
- theMCRObjectID
- Returns:
- the embargo or
null
-
getEmbargo
Returns the embargo ornull
if none is set or is allowed to read.- Parameters:
objectId
- theMCRObjectID
- Returns:
- the embargo or
null
-
getEmbargo
-
getEmbargoDate
-
getEmbargoDate
-
getEmbargoDate
-
isAfterToday
-
isCurrentUserCreator
-