Package edu.ucsb.nceas.metacat
Class ReadOnlyChecker
java.lang.Object
edu.ucsb.nceas.metacat.ReadOnlyChecker
A checker to determine if the Metacat is in the read-only mode by checking
the property of database.readOnly.
- Author:
- tao
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
DATAONEERROR
- See Also:
-
-
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.
-