edu.ucsb.nceas.metacat

## Class ReadOnlyChecker

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

-     public class ReadOnlyChecker
      extends java.lang.Object

  A checker to determine if the Metacat is in the read-only mode by checking the property of database.readOnly.
  Author:
    tao

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static java.lang.String` | `DATAONEERROR`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ReadOnlyChecker()` Default constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isReadOnly()` Check if the mode is the read-only.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### DATAONEERROR

          public static final java.lang.String DATAONEERROR

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### ReadOnlyChecker

          public ReadOnlyChecker()

      Default constructor

  - ### Method Detail

    - #### 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.

Copyright © 2023 Regents of the University of California. All Rights Reserved.