Class MCRMODSEmbargoUtils

java.lang.Object
org.mycore.mods.MCRMODSEmbargoUtils

public class MCRMODSEmbargoUtils extends Object
Author:
René Adler (eagle)
  • Field Details

  • Constructor Details

    • MCRMODSEmbargoUtils

      public MCRMODSEmbargoUtils()
  • Method Details

    • getCachedEmbargo

      public static String getCachedEmbargo(MCRObjectID objectId)
    • getEmbargo

      public static String getEmbargo(String objectId)
      Returns the embargo or null if none is set or is allowed to read.
      Parameters:
      objectId - the MCRObjectID
      Returns:
      the embargo or null
    • getEmbargo

      public static String getEmbargo(MCRObjectID objectId)
      Returns the embargo or null if none is set or is allowed to read.
      Parameters:
      objectId - the MCRObjectID
      Returns:
      the embargo or null
    • getEmbargo

      public static String getEmbargo(MCRObject object)
    • getEmbargoDate

      public static Optional<LocalDate> getEmbargoDate(String objectID)
    • getEmbargoDate

      public static Optional<LocalDate> getEmbargoDate(MCRObjectID object)
    • getEmbargoDate

      public static Optional<LocalDate> getEmbargoDate(MCRObject object)
    • isAfterToday

      public static boolean isAfterToday(String embargoDate)
    • isCurrentUserCreator

      public static boolean isCurrentUserCreator(MCRObjectID objectId)