Package org.bedework.calfacade.svc
Class BwCalSuite
java.lang.Object
- All Implemented Interfaces:
Serializable,Comparable<BwPrincipal<?>>,Comparator<BwPrincipal<?>>,org.bedework.access.AccessPrincipal,OwnedEntity,ShareableEntity,org.bedework.util.logging.Logged
- Direct Known Subclasses:
BwCalSuiteWrapper
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final intWe can easily limit this nameFields inherited from class org.bedework.calfacade.BwPrincipal
bwadmingroupPrincipalRoot, calsuitePrincipalRoot, categoryAccess, contactAccess, created, groupNames, groupPrincipalRoot, groups, hostPrincipalRoot, lastAccess, lastModify, locationAccess, logon, principalInfo, principalRoot, publicUser, publicUserHref, resourcePrincipalRoot, ticketPrincipalRoot, unauthenticated, userPrincipalRoot, venuePrincipalRoot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Make visibleintcompare(BwPrincipal cs1, BwPrincipal cs2) Get the combined fields 2getGroup()Get the owning groupGet the owning groupgetName()Get the nameGet the root collectionGet the root collection pathinthashCode()booleanvoidsetContext(String context) voidsetDefaultContext(boolean defaultContext) voidsetDescription(String val) voidsetFields1(String val) Set the fields1 valuevoidsetFields2(String val) Set the submissions root pathvoidsetGroup(BwAdminGroup val) Set the owning groupvoidsetGroupHref(String val) Set the owning groupvoidSet the namevoidSet the root collectionvoidSet the root collection pathtoString()protected voidtoStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuilderMethods inherited from class org.bedework.calfacade.BwShareablePrincipal
copyTo, getAccess, getCreatorEnt, getCreatorHref, getKind, getOwnerHref, getPublick, setAccess, setCreatorEnt, setCreatorHref, setOwnerHref, setPublickMethods inherited from class org.bedework.calfacade.BwPrincipal
addGroup, compareTo, copyTo, equals, getAccount, getAccountNoSlash, getAccountSplit, getAclAccount, getCategoryAccess, getContactAccess, getCreated, getGroupNames, getGroups, getHref, getLastAccess, getLastModify, getLocationAccess, getLogon, getPrincipalInfo, getQuota, getRestoreCallback, getUnauthenticated, isPrincipal, makeGroupPrincipal, makeLocationPrincipal, makePrincipal, makePrincipal, makePrincipalHref, makeUserPrincipal, setAccount, setCategoryAccess, setContactAccess, setCreated, setGroupNames, setGroups, setHref, setKind, setLastAccess, setLastModify, setLocationAccess, setLogon, setPrincipalInfo, setPrincipalRef, setQuota, setUnauthenticated, toStringSegmentMethods inherited from class org.bedework.calfacade.base.BwDbentity
addDeletedEntity, afterDeletion, beforeDeletion, beforeSave, beforeUpdate, getByteSize, getDeletedEntities, getSeq, length, setByteSize, setSeqMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
getId, markUnsaved, setId, unsavedMethods inherited from class org.bedework.calfacade.base.DumpEntity
dump, dump, getLogger, hasDumpValueMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods 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
-
Field Details
-
maxNameLength
public static final int maxNameLengthWe can easily limit this name- See Also:
-
fieldDelimiter
- See Also:
-
-
Constructor Details
-
BwCalSuite
public BwCalSuite()Constructor
-
-
Method Details
-
getPrincipalRef
- Specified by:
getPrincipalRefin interfaceorg.bedework.access.AccessPrincipal- Overrides:
getPrincipalRefin classBwPrincipal<BwCalSuite>
-
setName
Set the name- Parameters:
val- String name
-
getName
Get the name- Returns:
- String name
-
setGroup
Set the owning group- Parameters:
val- BwAdminGroup group
-
getGroup
Get the owning group- Returns:
- BwAdminGroup group
-
setFields1
Set the fields1 value- Parameters:
val- String combined fields 1
-
getFields1
- Returns:
- String combined fields 1
-
setFields2
Set the submissions root path- Parameters:
val- String combined fields 2
-
getFields2
Get the combined fields 2- Returns:
- String combined fields 2
-
setGroupHref
Set the owning group- Parameters:
val- BwAdminGroup group
-
getGroupHref
Get the owning group- Returns:
- BwAdminGroup group
-
setRootCollection
Set the root collection- Parameters:
val- BwCalendar rootCalendar
-
getRootCollection
Get the root collection- Returns:
- BwCalendar rootCollection
-
getContext
- Returns:
- the name of the sub-context for this suite (may be null)
-
setContext
- 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
Set the root collection path- Parameters:
val- String rootCalendar path
-
getRootCollectionPath
Get the root collection path- Returns:
- String rootCollection path
-
setDescription
- Specified by:
setDescriptionin interfaceorg.bedework.access.AccessPrincipal- Overrides:
setDescriptionin classBwPrincipal<BwCalSuite>
-
getDescription
- Specified by:
getDescriptionin interfaceorg.bedework.access.AccessPrincipal- Overrides:
getDescriptionin classBwPrincipal<BwCalSuite>
-
toStringSegment
protected void toStringSegment(org.bedework.util.misc.ToString ts) Add our stuff to the StringBuilder- Overrides:
toStringSegmentin classBwShareablePrincipal<BwCalSuite>- Parameters:
ts- StringBuilder for result
-
compare
- Specified by:
comparein interfaceComparator<BwPrincipal<?>>- Overrides:
comparein classBwPrincipal<BwCalSuite>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwPrincipal<BwCalSuite>
-
toString
- Overrides:
toStringin classBwPrincipal<BwCalSuite>
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwShareablePrincipal<BwCalSuite>- Returns:
- Object of class T
-