Class ReadOnlyChecker

java.lang.Object
edu.ucsb.nceas.metacat.ReadOnlyChecker

public class ReadOnlyChecker extends Object
A checker to determine if the Metacat is in the read-only mode by checking the property of database.readOnly.
Author:
tao
  • Field Details

  • Constructor Details

    • ReadOnlyChecker

      public ReadOnlyChecker()
      Default constructor
  • Method Details

    • isReadOnly

      public boolean isReadOnly()
      Check if the mode is the read-only.
      Returns:
      true if the value of "application.readOnlyMode" is not null and is equal, ignoring case, to the string true.