Package org.bedework.caldav.server
Class CalDAVCollectionBase<T extends CalDAVCollectionBase>
- java.lang.Object
-
- org.bedework.webdav.servlet.shared.WdEntity<T>
-
- org.bedework.webdav.servlet.shared.WdCollection<T>
-
- org.bedework.caldav.server.CalDAVCollection<T>
-
- org.bedework.caldav.server.CalDAVCollectionBase<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
Comparable<org.bedework.webdav.servlet.shared.WdEntity>
public abstract class CalDAVCollectionBase<T extends CalDAVCollectionBase> extends CalDAVCollection<T>
Simple implementation of class to represent a collection in CalDAV, used by the simpler interfaces.- Author:
- douglm
-
-
Field Summary
Fields Modifier and Type Field Description static intcalTypeResourceResource collection.-
Fields inherited from class org.bedework.caldav.server.CalDAVCollection
calTypeCalendarCollection, calTypeCollection, calTypeInbox, calTypeNotifications, calTypeOutbox, calTypeUnknown
-
-
Constructor Summary
Constructors Constructor Description CalDAVCollectionBase(int calType, boolean freebusyAllowed)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanentitiesAllowed()booleanfreebusyAllowed()booleangetAffectsFreeBusy()StringgetAliasUri()Get the calendar aliasUri propertyintgetCalType()StringgetColor()Get the calendar color propertyStringgetRemoteId()Get the calendar remoteId propertyStringgetRemotePw()Get the calendar remotePw propertybooleangetSynchDeleteSuppressed()Get the deletions suppressed flag for synchStringgetTimezone()Get the collection timezone propertybooleanisAlias()TresolveAlias(boolean resolveSubAlias)voidsetAffectsFreeBusy(boolean val)voidsetAliasUri(String val)Set the calendar aliasUri propertyvoidsetCalType(int val)voidsetColor(String val)Set the calendar color propertyvoidsetRemoteId(String val)Set the calendar remoteId propertyvoidsetRemotePw(String val)Set the calendar remotePw propertyvoidsetSynchDeleteSuppressed(boolean val)Set the deletions suppressed flag for synchvoidsetTimezone(String val)Set the collection timezone property-
Methods inherited from class org.bedework.caldav.server.CalDAVCollection
getDeleted, getRefreshRate, getSupportedComponents, getVpollSupportedComponents, setRefreshRate, setSupportedComponents
-
Methods inherited from class org.bedework.webdav.servlet.shared.WdEntity
compareTo, getCanPublish, getCanShare, getCreated, getDescription, getDisplayName, getEtag, getLastmod, getName, getOwner, getParentPath, getPath, getPreviousEtag, getProperty, hashCode, setCreated, setDescription, setDisplayName, setLastmod, setName, setOwner, setParentPath, setPath, setProperty, toString, toStringSegment
-
-
-
-
Field Detail
-
calTypeResource
public static final int calTypeResource
Resource collection. According to the CalDAV spec a collection may exist inside a calendar collection but no calendar collection must be so contained at any depth. (RFC 4791 Section 4.2)- See Also:
- Constant Field Values
-
-
Method Detail
-
isAlias
public boolean isAlias() throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
isAliasin classorg.bedework.webdav.servlet.shared.WdEntity<T extends CalDAVCollectionBase>- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
resolveAlias
public T resolveAlias(boolean resolveSubAlias) throws org.bedework.webdav.servlet.shared.WebdavException
- Specified by:
resolveAliasin classCalDAVCollection<T extends CalDAVCollectionBase>- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setCalType
public void setCalType(int val) throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
setCalTypein classCalDAVCollection<T extends CalDAVCollectionBase>- Parameters:
val- type- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getCalType
public int getCalType() throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
getCalTypein classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- int
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
freebusyAllowed
public boolean freebusyAllowed() throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
freebusyAllowedin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- true if freebusy reports are allowed
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
entitiesAllowed
public boolean entitiesAllowed() throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
entitiesAllowedin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- true if entities can be stored
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setAffectsFreeBusy
public void setAffectsFreeBusy(boolean val) throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
setAffectsFreeBusyin classCalDAVCollection<T extends CalDAVCollectionBase>- Parameters:
val- true if the calendar takes part in free/busy calculations- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getAffectsFreeBusy
public boolean getAffectsFreeBusy() throws org.bedework.webdav.servlet.shared.WebdavException- Specified by:
getAffectsFreeBusyin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- boolean true if the calendar takes part in free/busy calculations
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setTimezone
public void setTimezone(String val) throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionSet the collection timezone property- Specified by:
setTimezonein classCalDAVCollection<T extends CalDAVCollectionBase>- Parameters:
val- the tzid- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getTimezone
public String getTimezone() throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionGet the collection timezone property- Specified by:
getTimezonein classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- String vtimezone spec
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setColor
public void setColor(String val) throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionSet the calendar color property- Specified by:
setColorin classCalDAVCollection<T extends CalDAVCollectionBase>- Parameters:
val- the color- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getColor
public String getColor() throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionGet the calendar color property- Specified by:
getColorin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- String calendar color
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setAliasUri
public void setAliasUri(String val) throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionSet the calendar aliasUri property- Specified by:
setAliasUriin classCalDAVCollection<T extends CalDAVCollectionBase>- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getAliasUri
public String getAliasUri() throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionGet the calendar aliasUri property- Specified by:
getAliasUriin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- String calendar AliasUri
- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
setRemoteId
public void setRemoteId(String val) throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionSet the calendar remoteId property- Specified by:
setRemoteIdin classCalDAVCollection<T extends CalDAVCollectionBase>- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
getRemoteId
public String getRemoteId() throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionGet the calendar remoteId property- Specified by:
getRemoteIdin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- String calendar RemoteId
- Throws:
org.bedework.webdav.servlet.shared.WebdavException- on fatal error
-
setRemotePw
public void setRemotePw(String val) throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionSet the calendar remotePw property- Specified by:
setRemotePwin classCalDAVCollection<T extends CalDAVCollectionBase>- Parameters:
val- calendar remotePw property- Throws:
org.bedework.webdav.servlet.shared.WebdavException- on fatal error
-
getRemotePw
public String getRemotePw() throws org.bedework.webdav.servlet.shared.WebdavException
Description copied from class:CalDAVCollectionGet the calendar remotePw property- Specified by:
getRemotePwin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- String calendar RemotePw
- Throws:
org.bedework.webdav.servlet.shared.WebdavException- on fatal error
-
setSynchDeleteSuppressed
public void setSynchDeleteSuppressed(boolean val)
Description copied from class:CalDAVCollectionSet the deletions suppressed flag for synch- Specified by:
setSynchDeleteSuppressedin classCalDAVCollection<T extends CalDAVCollectionBase>- Parameters:
val- true if we suppress deletions during synch
-
getSynchDeleteSuppressed
public boolean getSynchDeleteSuppressed()
Description copied from class:CalDAVCollectionGet the deletions suppressed flag for synch- Specified by:
getSynchDeleteSuppressedin classCalDAVCollection<T extends CalDAVCollectionBase>- Returns:
- boolean on/off
-
-