Class CalSvc

java.lang.Object
org.bedework.calsvc.CalSvc
All Implemented Interfaces:
Serializable, AutoCloseable, Calintf.FilterParserFetcher, org.bedework.calsvci.CalSvcI, org.bedework.calsvci.CalSvcIRo, org.bedework.util.logging.Logged

public class CalSvc extends Object implements org.bedework.calsvci.CalSvcI, org.bedework.util.logging.Logged, Calintf.FilterParserFetcher
This is an implementation of the service level interface to the calendar suite.
Author:
Mike Douglass douglm rpi.edu
See Also:
  • Constructor Details

    • CalSvc

      public CalSvc()
  • Method Details

    • init

      public void init(org.bedework.calfacade.svc.CalSvcIPars parsParam)
      Specified by:
      init in interface org.bedework.calsvci.CalSvcIRo
    • getAuthProperties

      public org.bedework.calfacade.configs.AuthProperties getAuthProperties()
      Specified by:
      getAuthProperties in interface org.bedework.calsvci.CalSvcIRo
    • getSystemProperties

      public org.bedework.calfacade.configs.SystemProperties getSystemProperties()
      Specified by:
      getSystemProperties in interface org.bedework.calsvci.CalSvcIRo
    • getJDKIM

      public org.apache.james.jdkim.api.JDKIM getJDKIM()
      Specified by:
      getJDKIM in interface org.bedework.calsvci.CalSvcIRo
    • getNotificationProperties

      public org.bedework.calfacade.configs.NotificationProperties getNotificationProperties()
      Specified by:
      getNotificationProperties in interface org.bedework.calsvci.CalSvcI
    • setCalSuite

      public void setCalSuite(String name)
      Specified by:
      setCalSuite in interface org.bedework.calsvci.CalSvcIRo
    • getPrincipalInfo

      public org.bedework.calfacade.svc.PrincipalInfo getPrincipalInfo()
      Specified by:
      getPrincipalInfo in interface org.bedework.calsvci.CalSvcIRo
    • getSuperUser

      public boolean getSuperUser()
      Specified by:
      getSuperUser in interface org.bedework.calsvci.CalSvcI
    • getPublicKey

      public byte[] getPublicKey(String domain, String service)
      Specified by:
      getPublicKey in interface org.bedework.calsvci.CalSvcI
    • getStats

      public org.bedework.calfacade.BwStats getStats()
      Specified by:
      getStats in interface org.bedework.calsvci.CalSvcIRo
    • setDbStatsEnabled

      public void setDbStatsEnabled(boolean enable)
      Specified by:
      setDbStatsEnabled in interface org.bedework.calsvci.CalSvcI
    • getDbStatsEnabled

      public boolean getDbStatsEnabled()
      Specified by:
      getDbStatsEnabled in interface org.bedework.calsvci.CalSvcI
    • dumpDbStats

      public void dumpDbStats()
      Specified by:
      dumpDbStats in interface org.bedework.calsvci.CalSvcI
    • getDbStats

      public Collection<org.bedework.calfacade.BwStats.StatsEntry> getDbStats()
      Specified by:
      getDbStats in interface org.bedework.calsvci.CalSvcI
    • logStats

      public void logStats()
      Specified by:
      logStats in interface org.bedework.calsvci.CalSvcIRo
    • getActiveIfInfos

      public List<org.bedework.calfacade.ifs.IfInfo> getActiveIfInfos()
      Specified by:
      getActiveIfInfos in interface org.bedework.calsvci.CalSvcIRo
    • kill

      public void kill(org.bedework.calfacade.ifs.IfInfo ifInfo)
      Specified by:
      kill in interface org.bedework.calsvci.CalSvcIRo
    • setState

      public void setState(String val)
      Specified by:
      setState in interface org.bedework.calsvci.CalSvcIRo
    • postNotification

      public void postNotification(org.bedework.sysevents.events.SysEventBase ev)
      Specified by:
      postNotification in interface org.bedework.calsvci.CalSvcI
    • flushAll

      public void flushAll()
      Specified by:
      flushAll in interface org.bedework.calsvci.CalSvcIRo
    • open

      public void open()
      Specified by:
      open in interface org.bedework.calsvci.CalSvcIRo
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface org.bedework.calsvci.CalSvcIRo
    • isRolledback

      public boolean isRolledback()
      Specified by:
      isRolledback in interface org.bedework.calsvci.CalSvcIRo
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.bedework.calsvci.CalSvcIRo
    • beginTransaction

      public void beginTransaction()
      Specified by:
      beginTransaction in interface org.bedework.calsvci.CalSvcIRo
    • endTransaction

      public void endTransaction()
      Specified by:
      endTransaction in interface org.bedework.calsvci.CalSvcIRo
    • rollbackTransaction

      public void rollbackTransaction()
      Specified by:
      rollbackTransaction in interface org.bedework.calsvci.CalSvcIRo
    • getCurrentTimestamp

      public Timestamp getCurrentTimestamp()
      Specified by:
      getCurrentTimestamp in interface org.bedework.calsvci.CalSvcIRo
    • merge

      public org.bedework.calfacade.base.BwUnversionedDbentity<?> merge(org.bedework.calfacade.base.BwUnversionedDbentity<?> val)
      Specified by:
      merge in interface org.bedework.calsvci.CalSvcI
    • getIcalCallback

      public org.bedework.calfacade.ifs.IcalCallback getIcalCallback()
      Specified by:
      getIcalCallback in interface org.bedework.calsvci.CalSvcIRo
    • getIcalCallback

      public org.bedework.calfacade.ifs.IcalCallback getIcalCallback(Boolean timezonesByReference)
      Specified by:
      getIcalCallback in interface org.bedework.calsvci.CalSvcIRo
    • getDumpHandler

      public org.bedework.calsvci.DumpIntf getDumpHandler()
      Specified by:
      getDumpHandler in interface org.bedework.calsvci.CalSvcI
    • getRestoreHandler

      public org.bedework.calsvci.RestoreIntf getRestoreHandler()
      Specified by:
      getRestoreHandler in interface org.bedework.calsvci.CalSvcI
    • getFilterParser

      public org.bedework.calfacade.filter.SimpleFilterParser getFilterParser()
      Specified by:
      getFilterParser in interface Calintf.FilterParserFetcher
      Specified by:
      getFilterParser in interface org.bedework.calsvci.CalSvcIRo
    • getSysparsHandler

      public org.bedework.calsvci.SysparsI getSysparsHandler()
      Specified by:
      getSysparsHandler in interface org.bedework.calsvci.CalSvcI
    • getMailer

      public org.bedework.calfacade.mail.MailerIntf getMailer()
      Specified by:
      getMailer in interface org.bedework.calsvci.CalSvcI
    • getPrefsHandler

      public org.bedework.calsvci.PreferencesI getPrefsHandler()
      Specified by:
      getPrefsHandler in interface org.bedework.calsvci.CalSvcIRo
    • getAdminHandler

      public org.bedework.calsvci.AdminI getAdminHandler()
      Specified by:
      getAdminHandler in interface org.bedework.calsvci.CalSvcI
    • getEventsHandler

      public org.bedework.calsvci.EventsI getEventsHandler()
      Specified by:
      getEventsHandler in interface org.bedework.calsvci.CalSvcIRo
    • getFiltersHandler

      public org.bedework.calsvci.FiltersI getFiltersHandler()
      Specified by:
      getFiltersHandler in interface org.bedework.calsvci.CalSvcIRo
    • getCalendarsHandler

      public org.bedework.calsvci.CalendarsI getCalendarsHandler()
      Specified by:
      getCalendarsHandler in interface org.bedework.calsvci.CalSvcIRo
    • getCalSuitesHandler

      public org.bedework.calsvci.CalSuitesI getCalSuitesHandler()
      Specified by:
      getCalSuitesHandler in interface org.bedework.calsvci.CalSvcIRo
    • getIndexer

      public org.bedework.calfacade.indexing.BwIndexer getIndexer(String docType)
    • getIndexer

      public org.bedework.calfacade.indexing.BwIndexer getIndexer(boolean publick, String docType)
      Specified by:
      getIndexer in interface org.bedework.calsvci.CalSvcIRo
    • getIndexer

      public org.bedework.calfacade.indexing.BwIndexer getIndexer(org.bedework.calfacade.base.BwOwnedDbentity<?> entity)
      Specified by:
      getIndexer in interface org.bedework.calsvci.CalSvcI
    • getIndexer

      public org.bedework.calfacade.indexing.BwIndexer getIndexer(String principal, String docType)
      Specified by:
      getIndexer in interface org.bedework.calsvci.CalSvcI
    • getIndexerForReindex

      public org.bedework.calfacade.indexing.BwIndexer getIndexerForReindex(String principal, String docType, String indexName)
      Specified by:
      getIndexerForReindex in interface org.bedework.calsvci.CalSvcI
    • getNotificationsHandler

      public org.bedework.calsvci.NotificationsI getNotificationsHandler()
      Specified by:
      getNotificationsHandler in interface org.bedework.calsvci.CalSvcI
    • getResourcesHandler

      public org.bedework.calsvci.ResourcesI getResourcesHandler()
      Specified by:
      getResourcesHandler in interface org.bedework.calsvci.CalSvcIRo
    • getScheduler

      public org.bedework.calsvci.SchedulingI getScheduler()
      Specified by:
      getScheduler in interface org.bedework.calsvci.CalSvcI
    • getSharingHandler

      public org.bedework.calsvci.SharingI getSharingHandler()
      Specified by:
      getSharingHandler in interface org.bedework.calsvci.CalSvcI
    • getSynch

      public org.bedework.calsvci.SynchI getSynch()
      Specified by:
      getSynch in interface org.bedework.calsvci.CalSvcI
    • getUsersHandler

      public org.bedework.calsvci.UsersI getUsersHandler()
      Specified by:
      getUsersHandler in interface org.bedework.calsvci.CalSvcI
    • getViewsHandler

      public org.bedework.calsvci.ViewsI getViewsHandler()
      Specified by:
      getViewsHandler in interface org.bedework.calsvci.CalSvcI
      Specified by:
      getViewsHandler in interface org.bedework.calsvci.CalSvcIRo
    • getDirectories

      public org.bedework.calfacade.ifs.Directories getDirectories()
      Specified by:
      getDirectories in interface org.bedework.calsvci.CalSvcI
    • getUserDirectories

      public org.bedework.calfacade.ifs.Directories getUserDirectories()
      Specified by:
      getUserDirectories in interface org.bedework.calsvci.CalSvcI
    • getAdminDirectories

      public org.bedework.calfacade.ifs.Directories getAdminDirectories()
      Specified by:
      getAdminDirectories in interface org.bedework.calsvci.CalSvcI
    • getCategoriesHandler

      public org.bedework.calsvci.Categories getCategoriesHandler()
      Specified by:
      getCategoriesHandler in interface org.bedework.calsvci.CalSvcI
    • getLocationsHandler

      public org.bedework.calsvci.Locations getLocationsHandler()
      Specified by:
      getLocationsHandler in interface org.bedework.calsvci.CalSvcI
    • getContactsHandler

      public org.bedework.calsvci.Contacts getContactsHandler()
      Specified by:
      getContactsHandler in interface org.bedework.calsvci.CalSvcI
    • getObjectIterator

      public <T> Iterator<T> getObjectIterator(Class<T> cl)
      Specified by:
      getObjectIterator in interface org.bedework.calsvci.CalSvcI
    • getPrincipalObjectIterator

      public <T> Iterator<T> getPrincipalObjectIterator(Class<T> cl)
      Specified by:
      getPrincipalObjectIterator in interface org.bedework.calsvci.CalSvcI
    • getPublicObjectIterator

      public <T> Iterator<T> getPublicObjectIterator(Class<T> cl)
      Specified by:
      getPublicObjectIterator in interface org.bedework.calsvci.CalSvcI
    • getPrincipal

      public org.bedework.calfacade.BwPrincipal<?> getPrincipal()
      Specified by:
      getPrincipal in interface org.bedework.calsvci.CalSvcIRo
    • getPrincipal

      public org.bedework.calfacade.BwPrincipal<?> getPrincipal(String href)
      Specified by:
      getPrincipal in interface org.bedework.calsvci.CalSvcI
    • getUserAuth

      public org.bedework.calfacade.svc.UserAuth getUserAuth()
      Specified by:
      getUserAuth in interface org.bedework.calsvci.CalSvcIRo
    • getUserMaxEntitySize

      public long getUserMaxEntitySize()
      Specified by:
      getUserMaxEntitySize in interface org.bedework.calsvci.CalSvcI
    • getPreferences

      public org.bedework.calfacade.svc.BwPreferences getPreferences(String principalHref)
      Specified by:
      getPreferences in interface org.bedework.calsvci.CalSvcI
    • removeFromAllPrefs

      public void removeFromAllPrefs(org.bedework.calfacade.base.BwShareableDbentity<?> val)
      Specified by:
      removeFromAllPrefs in interface org.bedework.calsvci.CalSvcI
    • findGroup

      public org.bedework.calfacade.BwGroup<?> findGroup(String account, boolean admin)
      Specified by:
      findGroup in interface org.bedework.calsvci.CalSvcI
    • changeAccess

      public void changeAccess(org.bedework.calfacade.base.ShareableEntity ent, Collection<org.bedework.access.Ace> aces, boolean replaceAll)
      Specified by:
      changeAccess in interface org.bedework.calsvci.CalSvcI
    • defaultAccess

      public void defaultAccess(org.bedework.calfacade.base.ShareableEntity ent, org.bedework.access.AceWho who)
      Specified by:
      defaultAccess in interface org.bedework.calsvci.CalSvcI
    • checkAccess

      public org.bedework.access.CurrentAccess checkAccess(org.bedework.calfacade.base.ShareableEntity ent, int desiredAccess, boolean returnResult)
      Specified by:
      checkAccess in interface org.bedework.calsvci.CalSvcIRo
    • getSynchReport

      public org.bedework.calsvci.SynchReport getSynchReport(String path, String token, int limit, boolean recurse)
      Specified by:
      getSynchReport in interface org.bedework.calsvci.CalSvcIRo
    • updateFromTimeZones

      public org.bedework.calfacade.base.UpdateFromTimeZonesInfo updateFromTimeZones(String colHref, int limit, boolean checkOnly, org.bedework.calfacade.base.UpdateFromTimeZonesInfo info)
      Specified by:
      updateFromTimeZones in interface org.bedework.calsvci.CalSvcI
    • getLogger

      public org.bedework.util.logging.BwLogger getLogger()
      Specified by:
      getLogger in interface org.bedework.util.logging.Logged