Class BwCalSuiteWrapper
java.lang.Object
org.bedework.calfacade.base.DumpEntity<T>
org.bedework.calfacade.base.BwUnversionedDbentity<T>
org.bedework.calfacade.base.BwDbentity<BwPrincipal<?>>
org.bedework.calfacade.BwPrincipal<T>
org.bedework.calfacade.BwShareablePrincipal<BwCalSuite>
org.bedework.calfacade.svc.BwCalSuite
org.bedework.calfacade.svc.wrappers.BwCalSuiteWrapper
- All Implemented Interfaces:
Serializable,Comparable<BwPrincipal<?>>,Comparator<BwPrincipal<?>>,org.bedework.access.AccessPrincipal,OwnedEntity,ShareableEntity,EntityWrapper<BwCalSuite>,org.bedework.util.logging.Logged
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.
- Version:
- 1.0
- Author:
- Mike Douglass douglm@rpi.edu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bedework.calfacade.base.DumpEntity
DumpEntity.DumpType -
Field Summary
Fields inherited from class org.bedework.calfacade.svc.BwCalSuite
fieldDelimiter, maxNameLengthFields 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
ConstructorsConstructorDescriptionConstructorBwCalSuiteWrapper(BwCalSuite entity) ConstructorBwCalSuiteWrapper(BwCalSuite entity, org.bedework.access.CurrentAccess currentAccess) Constructor -
Method Summary
Modifier and TypeMethodDescriptionclone()Make visibleintcompareTo(BwPrincipal that) Avoid get and set so we don't expose the underlying object to request streams.Get the accessorg.bedework.access.CurrentAccessgetGroup()Get the owning groupintgetId()getName()Get the namePath to the calendar home of the owning principalGet the root calendarGet the root collection pathintgetSeq()Get the entity seqinthashCode()booleanvoidputEntity(BwCalSuite val) voidSet the accessvoidsetContext(String context) voidsetCreatorHref(String val) Set the creatorvoidsetCurrentAccess(org.bedework.access.CurrentAccess val) Only call for cloned objectvoidsetDefaultContext(boolean defaultContext) voidsetDescription(String val) voidsetGroup(BwAdminGroup val) Set the owning groupvoidsetId(int val) voidSet the namevoidsetOwnerHref(String val) Set the ownervoidsetPublick(Boolean val) voidsetResourcesHome(String val) Path to the calendar home of the owning principalvoidSet the root calendarvoidSet the root collection pathvoidsetSeq(int val) Set the seq for this entitytoString()Methods inherited from class org.bedework.calfacade.svc.BwCalSuite
compare, getFields1, getFields2, getGroupHref, getPrincipalRef, setFields1, setFields2, setGroupHref, toStringSegmentMethods inherited from class org.bedework.calfacade.BwShareablePrincipal
copyTo, getCreatorEnt, getKind, setCreatorEntMethods inherited from class org.bedework.calfacade.BwPrincipal
addGroup, 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, length, setByteSizeMethods inherited from class org.bedework.calfacade.base.BwUnversionedDbentity
markUnsaved, 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
-
Constructor Details
-
BwCalSuiteWrapper
public BwCalSuiteWrapper()Constructor -
BwCalSuiteWrapper
Constructor- Parameters:
entity- the wrapped entity
-
BwCalSuiteWrapper
Constructor- Parameters:
entity- the wrapped entitycurrentAccess- access
-
-
Method Details
-
putEntity
- Specified by:
putEntityin interfaceEntityWrapper<BwCalSuite>
-
fetchEntity
Description copied from interface:EntityWrapperAvoid get and set so we don't expose the underlying object to request streams.- Specified by:
fetchEntityin interfaceEntityWrapper<BwCalSuite>- Returns:
- T
-
setId
public void setId(int val) - Overrides:
setIdin classBwUnversionedDbentity<BwPrincipal<?>>
-
getId
public int getId()- Overrides:
getIdin classBwUnversionedDbentity<BwPrincipal<?>>- Returns:
- int id
-
setSeq
public void setSeq(int val) Description copied from class:BwDbentitySet the seq for this entity- Overrides:
setSeqin classBwDbentity<BwPrincipal<?>>- Parameters:
val- int seq
-
getSeq
public int getSeq()Description copied from class:BwDbentityGet the entity seq- Overrides:
getSeqin classBwDbentity<BwPrincipal<?>>- Returns:
- int the entity seq
-
setOwnerHref
Set the owner- Specified by:
setOwnerHrefin interfaceOwnedEntity- Overrides:
setOwnerHrefin classBwShareablePrincipal<BwCalSuite>- Parameters:
val- String owner of the entity
-
getOwnerHref
- Specified by:
getOwnerHrefin interfaceOwnedEntity- Overrides:
getOwnerHrefin classBwShareablePrincipal<BwCalSuite>- Returns:
- String owner of the entity
-
setPublick
- Specified by:
setPublickin interfaceOwnedEntity- Overrides:
setPublickin classBwShareablePrincipal<BwCalSuite>- Parameters:
val- - true for public
-
getPublick
- Specified by:
getPublickin interfaceOwnedEntity- Overrides:
getPublickin classBwShareablePrincipal<BwCalSuite>- Returns:
- boolean true for public
-
setCreatorHref
Description copied from interface:ShareableEntitySet the creator- Specified by:
setCreatorHrefin interfaceShareableEntity- Overrides:
setCreatorHrefin classBwShareablePrincipal<BwCalSuite>- Parameters:
val- String creator of the entity
-
getCreatorHref
- Specified by:
getCreatorHrefin interfaceShareableEntity- Overrides:
getCreatorHrefin classBwShareablePrincipal<BwCalSuite>- Returns:
- BwUser creator of the entity
-
setAccess
Description copied from interface:ShareableEntitySet the access- Specified by:
setAccessin interfaceShareableEntity- Overrides:
setAccessin classBwShareablePrincipal<BwCalSuite>- Parameters:
val- String access
-
getAccess
Description copied from interface:ShareableEntityGet the access- Specified by:
getAccessin interfaceShareableEntity- Overrides:
getAccessin classBwShareablePrincipal<BwCalSuite>- Returns:
- String access
-
setName
Description copied from class:BwCalSuiteSet the name- Overrides:
setNamein classBwCalSuite- Parameters:
val- String name
-
getName
Description copied from class:BwCalSuiteGet the name- Overrides:
getNamein classBwCalSuite- Returns:
- String name
-
getContext
- Overrides:
getContextin classBwCalSuite- Returns:
- the name of the sub-context for this suite (may be null)
-
setContext
- Overrides:
setContextin classBwCalSuite- Parameters:
context- the web context
-
isDefaultContext
public boolean isDefaultContext()- Overrides:
isDefaultContextin classBwCalSuite- Returns:
- true if this is the default context
-
setDefaultContext
public void setDefaultContext(boolean defaultContext) - Overrides:
setDefaultContextin classBwCalSuite- Parameters:
defaultContext- the default web context
-
setGroup
Description copied from class:BwCalSuiteSet the owning group- Overrides:
setGroupin classBwCalSuite- Parameters:
val- BwAdminGroup group
-
getGroup
Description copied from class:BwCalSuiteGet the owning group- Overrides:
getGroupin classBwCalSuite- Returns:
- BwAdminGroup group
-
setRootCollectionPath
Description copied from class:BwCalSuiteSet the root collection path- Overrides:
setRootCollectionPathin classBwCalSuite- Parameters:
val- String rootCalendar path
-
getRootCollectionPath
Description copied from class:BwCalSuiteGet the root collection path- Overrides:
getRootCollectionPathin classBwCalSuite- Returns:
- String rootCollection path
-
setDescription
- Specified by:
setDescriptionin interfaceorg.bedework.access.AccessPrincipal- Overrides:
setDescriptionin classBwCalSuite
-
getDescription
- Specified by:
getDescriptionin interfaceorg.bedework.access.AccessPrincipal- Overrides:
getDescriptionin classBwCalSuite
-
setRootCollection
Set the root calendar- Overrides:
setRootCollectionin classBwCalSuite- Parameters:
val- BwCalendar rootCalendar
-
getRootCollection
Get the root calendar- Overrides:
getRootCollectionin classBwCalSuite- Returns:
- BwCalendar rootCollection
-
setCurrentAccess
public void setCurrentAccess(org.bedework.access.CurrentAccess val) Only call for cloned object- Parameters:
val- CurrentAccess
-
getCurrentAccess
public org.bedework.access.CurrentAccess getCurrentAccess()- Returns:
- CurrentAccess
-
setResourcesHome
Path to the calendar home of the owning principal- Parameters:
val- path
-
getResourcesHome
Path to the calendar home of the owning principal- Returns:
- path
-
clone
Description copied from class:BwUnversionedDbentityMake visible- Overrides:
clonein classBwCalSuite- Returns:
- Object of class T
-
compareTo
- Specified by:
compareToin interfaceComparable<BwPrincipal<?>>- Overrides:
compareToin classBwPrincipal<BwCalSuite>
-
hashCode
public int hashCode()- Overrides:
hashCodein classBwCalSuite
-
toString
- Overrides:
toStringin classBwCalSuite
-