Class BwCalSuite

All Implemented Interfaces:
Serializable, Comparable<BwPrincipal<?>>, Comparator<BwPrincipal<?>>, org.bedework.access.AccessPrincipal, OwnedEntity, ShareableEntity, org.bedework.util.logging.Logged
Direct Known Subclasses:
BwCalSuiteWrapper

public class BwCalSuite extends BwShareablePrincipal<BwCalSuite>
This object represents a calendar suite in bedework. The calendar suites all share common data but have their own set of preferences associated with a run-as user.

All public views of the calendar system are based on the root calendar. At the moment this generally points at the root of the calendar system but in a hosted environment it would point to the root for the hosted organization.

Version:
1.0
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • Field Details

  • Constructor Details

    • BwCalSuite

      public BwCalSuite()
      Constructor
  • Method Details

    • getPrincipalRef

      public String getPrincipalRef()
      Specified by:
      getPrincipalRef in interface org.bedework.access.AccessPrincipal
      Overrides:
      getPrincipalRef in class BwPrincipal<BwCalSuite>
    • setName

      public void setName(String val)
      Set the name
      Parameters:
      val - String name
    • getName

      public String getName()
      Get the name
      Returns:
      String name
    • setGroup

      public void setGroup(BwAdminGroup val)
      Set the owning group
      Parameters:
      val - BwAdminGroup group
    • getGroup

      public BwAdminGroup getGroup()
      Get the owning group
      Returns:
      BwAdminGroup group
    • setFields1

      public void setFields1(String val)
      Set the fields1 value
      Parameters:
      val - String combined fields 1
    • getFields1

      public String getFields1()
      Returns:
      String combined fields 1
    • setFields2

      public void setFields2(String val)
      Set the submissions root path
      Parameters:
      val - String combined fields 2
    • getFields2

      public String getFields2()
      Get the combined fields 2
      Returns:
      String combined fields 2
    • setGroupHref

      public void setGroupHref(String val)
      Set the owning group
      Parameters:
      val - BwAdminGroup group
    • getGroupHref

      public String getGroupHref()
      Get the owning group
      Returns:
      BwAdminGroup group
    • setRootCollection

      public void setRootCollection(BwCalendar val)
      Set the root collection
      Parameters:
      val - BwCalendar rootCalendar
    • getRootCollection

      public BwCalendar getRootCollection()
      Get the root collection
      Returns:
      BwCalendar rootCollection
    • getContext

      public String getContext()
      Returns:
      the name of the sub-context for this suite (may be null)
    • setContext

      public void setContext(String context)
      Parameters:
      context - the web context
    • isDefaultContext

      public boolean isDefaultContext()
      Returns:
      true if this is the default context
    • setDefaultContext

      public void setDefaultContext(boolean defaultContext)
      Parameters:
      defaultContext - the default web context
    • setRootCollectionPath

      public void setRootCollectionPath(String val)
      Set the root collection path
      Parameters:
      val - String rootCalendar path
    • getRootCollectionPath

      public String getRootCollectionPath()
      Get the root collection path
      Returns:
      String rootCollection path
    • setDescription

      public void setDescription(String val)
      Specified by:
      setDescription in interface org.bedework.access.AccessPrincipal
      Overrides:
      setDescription in class BwPrincipal<BwCalSuite>
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.bedework.access.AccessPrincipal
      Overrides:
      getDescription in class BwPrincipal<BwCalSuite>
    • toStringSegment

      protected void toStringSegment(org.bedework.util.misc.ToString ts)
      Add our stuff to the StringBuilder
      Overrides:
      toStringSegment in class BwShareablePrincipal<BwCalSuite>
      Parameters:
      ts - StringBuilder for result
    • compare

      public int compare(BwPrincipal cs1, BwPrincipal cs2)
      Specified by:
      compare in interface Comparator<BwPrincipal<?>>
      Overrides:
      compare in class BwPrincipal<BwCalSuite>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BwPrincipal<BwCalSuite>
    • toString

      public String toString()
      Overrides:
      toString in class BwPrincipal<BwCalSuite>
    • clone

      public Object clone()
      Description copied from class: BwUnversionedDbentity
      Make visible
      Overrides:
      clone in class BwShareablePrincipal<BwCalSuite>
      Returns:
      Object of class T