Class CalSvcIPars

java.lang.Object
org.bedework.calfacade.svc.CalSvcIPars
All Implemented Interfaces:
Serializable

public class CalSvcIPars extends Object implements Serializable
These are global parameters used by the CalSvc interface.
Author:
Mike Douglass douglm rpi.edu
See Also:
  • Field Details

  • Constructor Details

    • CalSvcIPars

      public CalSvcIPars(String logId, String authUser, String user, String calSuite, boolean publicAdmin, boolean publicAuth, boolean allowSuperUser, boolean service, boolean publicSubmission, boolean adminCanEditAllPublicCategories, boolean adminCanEditAllPublicLocations, boolean adminCanEditAllPublicContacts, boolean sessionless, boolean dontKill, boolean readonly, String clientId, boolean forRestore, boolean indexRebuild)
      Constructor for this object.
      Parameters:
      authUser - String authenticated user of the application
      user - String user to act as
      calSuite - String calSuite name
      publicAdmin - true for admin
      publicAuth - true for authenticated public client
      allowSuperUser - true to allow superuser mode in non-admin mode
      service - true for a service
      publicSubmission - true for the submit app
      adminCanEditAllPublicCategories - true/false
      adminCanEditAllPublicLocations - true/false
      adminCanEditAllPublicContacts - true/false
      sessionless - true if this is a sessionless client
      dontKill - true if this is a system process
      readonly - true if this is a readonly process
  • Method Details

    • getRoClientPars

      public static CalSvcIPars getRoClientPars(String id, String authUser, String user, String calSuite, boolean publicAuth)
    • getRwClientPars

      public static CalSvcIPars getRwClientPars(String id, String authUser, String user)
    • getAdminClientPars

      public static CalSvcIPars getAdminClientPars(String id, String authUser, String user, String calSuite, boolean adminCanEditAllPublicCategories, boolean adminCanEditAllPublicLocations, boolean adminCanEditAllPublicContacts)
    • getToolPars

      public static CalSvcIPars getToolPars(String user, boolean superUser)
    • getServicePars

      public static CalSvcIPars getServicePars(String logId, String account, boolean publicAdmin, boolean allowSuperUser)
      Return new parameters for a service
      Parameters:
      logId - String used for labelling
      account - - the account
      publicAdmin - - true for public admin
      allowSuperUser - - trie/false
      Returns:
      CalSvcIPars
    • getIndexerPars

      public static CalSvcIPars getIndexerPars(String account, boolean publicAdmin)
      Return new pars for an index rebuild
      Parameters:
      account - - the account
      publicAdmin - - true for public admin
      Returns:
      CalSvcIPars
    • getDumpRestorePars

      public static CalSvcIPars getDumpRestorePars(String id, String account, boolean superUser)
      Return new pars for a system restore
      Parameters:
      account - - the account
      Returns:
      CalSvcIPars
    • getCaldavPars

      public static CalSvcIPars getCaldavPars(String logId, String authUser, String runAsUser, String clientId, boolean allowSuperUser, boolean service, boolean publicAdmin, String calSuite, boolean allowCreateEprops, boolean readonly)
      Return new parameters for caldav.
      Parameters:
      logId - String used for labelling
      authUser - String authenticated user of the application
      runAsUser - String user to run as
      clientId - The application we're acting for.
      allowSuperUser - true to allow superuser mode in non-admin mode
      service - - true if this is a service call - e.g. iSchedule - rather than a real user.
      publicAdmin - - true for public admin
      allowCreateEprops - - allow create of new event properties, locations etc
      Returns:
      CalSvcIPars
    • setAuthUser

      public void setAuthUser(String val)
      Parameters:
      val - String auth user
    • getAuthUser

      public String getAuthUser()
      Returns:
      String auth user
    • getUser

      public String getUser()
      Returns:
      String current user
    • setCalSuite

      public void setCalSuite(String val)
      Parameters:
      val - String calSuite
    • getCalSuite

      public String getCalSuite()
      Returns:
      String
    • getClientId

      public String getClientId()
      Returns:
      String
    • setLogId

      public void setLogId(String val)
      Parameters:
      val - String logId
    • getLogId

      public String getLogId()
      Returns:
      String
    • getPublicAdmin

      public boolean getPublicAdmin()
      Returns:
      boolean true if this is a public admin object.
    • getPublicAuth

      public boolean getPublicAuth()
      Returns:
      boolean true if this is a public authenticated client.
    • getPublicSubmission

      public boolean getPublicSubmission()
    • getService

      public boolean getService()
      Returns:
      boolean true if this is a service.
    • getAllowSuperUser

      public boolean getAllowSuperUser()
      Returns:
      boolean true if we allow superuser mode in non-admin.
    • getAdminCanEditAllPublicCategories

      public boolean getAdminCanEditAllPublicCategories()
      Returns:
      boolean
    • getAdminCanEditAllPublicLocations

      public boolean getAdminCanEditAllPublicLocations()
      Returns:
      boolean
    • getAdminCanEditAllPublicContacts

      public boolean getAdminCanEditAllPublicContacts()
      Returns:
      boolean
    • getSessionsless

      public boolean getSessionsless()
      Returns:
      boolean true if this is a sessionless client..
    • getDontKill

      public boolean getDontKill()
      Returns:
      boolean true if this is a system process.
    • getWebMode

      public boolean getWebMode()
      Returns:
      boolean true if this is a web client..
    • setReadonly

      public void setReadonly(Boolean val)
      Parameters:
      val - readonly flag
    • getReadonly

      public boolean getReadonly()
      Returns:
      boolean true if this is a read-only request.
    • getForRestore

      public boolean getForRestore()
      Returns:
      boolean true if this is for restore of system..
    • getIndexRebuild

      public boolean getIndexRebuild()
      Returns:
      boolean true if this is for an index rebuild.
    • isGuest

      public boolean isGuest()
      Returns:
      boolean true for guest
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • cloneRo

      public CalSvcIPars cloneRo()