Class TzConfigImpl

java.lang.Object
org.bedework.util.config.ConfigBase<TzConfigImpl>
org.bedework.timezones.common.TzConfigImpl
All Implemented Interfaces:
Serializable, Comparable<TzConfigImpl>, TzConfig, org.bedework.util.logging.Logged

public class TzConfigImpl extends org.bedework.util.config.ConfigBase<TzConfigImpl> implements TzConfig
This class defines the various properties we need for a carddav server
Author:
Mike Douglass
See Also:
  • Field Summary

    Fields inherited from class org.bedework.util.config.ConfigBase

    ns
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copyTo(TzConfig newConf)
    init copy of the config
    Location of the db data.
     
    boolean
    Are we a primary server?
    Url for the primary server.
    long
    Refresh delay - seconds
     
    Location of the (backup) zip file.
     
    void
    Location of the db data.
    void
     
    void
    setPrimaryServer(boolean val)
    Are we a primary server?
    void
    Url for the primary server.
    void
    setRefreshDelay(long val)
    Refresh delay - seconds
    void
     
    void
    Location of the (backup) zip file.
    void
     
    void
    toStringSegment(org.bedework.util.misc.ToString ts)
    Add our stuff to the StringBuilder

    Methods inherited from class org.bedework.util.config.ConfigBase

    addListProperty, compareTo, fromXml, fromXml, fromXml, getLastChanged, getLogger, getName, getProperty, hashCode, markChanged, removeProperty, setListProperty, setName, toProperties, toString, toXml

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.bedework.util.logging.Logged

    audit, debug, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, getLogLevel, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, trace, warn
  • Constructor Details

    • TzConfigImpl

      public TzConfigImpl()
  • Method Details

    • setDtstamp

      public void setDtstamp(String val)
      Specified by:
      setDtstamp in interface TzConfig
      Parameters:
      val - the dtstamp
    • getDtstamp

      public String getDtstamp()
      Specified by:
      getDtstamp in interface TzConfig
      Returns:
      String XML format dtstamp
    • setVersion

      public void setVersion(String val)
      Specified by:
      setVersion in interface TzConfig
      Parameters:
      val - version
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface TzConfig
      Returns:
      String version
    • setPrimaryUrl

      public void setPrimaryUrl(String val)
      Url for the primary server.
      Specified by:
      setPrimaryUrl in interface TzConfig
      Parameters:
      val - String
    • getPrimaryUrl

      public String getPrimaryUrl()
      Url for the primary server.
      Specified by:
      getPrimaryUrl in interface TzConfig
      Returns:
      String, null for unset
    • setPrimaryServer

      public void setPrimaryServer(boolean val)
      Are we a primary server?
      Specified by:
      setPrimaryServer in interface TzConfig
      Parameters:
      val - boolean
    • getPrimaryServer

      public boolean getPrimaryServer()
      Are we a primary server?
      Specified by:
      getPrimaryServer in interface TzConfig
      Returns:
      boolean
    • setSource

      public void setSource(String val)
      Specified by:
      setSource in interface TzConfig
      Parameters:
      val - source of the data
    • getSource

      public String getSource()
      Specified by:
      getSource in interface TzConfig
      Returns:
      source of the data
    • setTzdataUrl

      public void setTzdataUrl(String val)
      Location of the (backup) zip file.
      Specified by:
      setTzdataUrl in interface TzConfig
      Parameters:
      val - String
    • getTzdataUrl

      public String getTzdataUrl()
      Location of the (backup) zip file.
      Specified by:
      getTzdataUrl in interface TzConfig
      Returns:
      String, null for unset
    • setDbPath

      public void setDbPath(String val)
      Location of the db data.
      Specified by:
      setDbPath in interface TzConfig
      Parameters:
      val - String
    • getDbPath

      public String getDbPath()
      Location of the db data.
      Specified by:
      getDbPath in interface TzConfig
      Returns:
      String, null for unset
    • setRefreshDelay

      public void setRefreshDelay(long val)
      Refresh delay - seconds
      Specified by:
      setRefreshDelay in interface TzConfig
      Parameters:
      val - delay
    • getRefreshDelay

      public long getRefreshDelay()
      Refresh delay - seconds
      Specified by:
      getRefreshDelay in interface TzConfig
      Returns:
      long refreshDelay
    • toStringSegment

      public void toStringSegment(org.bedework.util.misc.ToString ts)
      Add our stuff to the StringBuilder
      Overrides:
      toStringSegment in class org.bedework.util.config.ConfigBase<TzConfigImpl>
      Parameters:
      ts - ToString for result
    • copyTo

      public void copyTo(TzConfig newConf)
      init copy of the config
      Parameters:
      newConf - other config