Package org.bedework.caldav.server
Class CalDAVCollection<T extends CalDAVCollection<?>>
java.lang.Object
org.bedework.webdav.servlet.shared.WdEntity<T>
org.bedework.webdav.servlet.shared.WdCollection<T>
org.bedework.caldav.server.CalDAVCollection<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Comparable<org.bedework.webdav.servlet.shared.WdEntity<?>>
- Direct Known Subclasses:
CalDAVCollectionBase
public abstract class CalDAVCollection<T extends CalDAVCollection<?>>
extends org.bedework.webdav.servlet.shared.WdCollection<T>
Class to represent a collection in CalDAV
- Author:
- douglm
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intNormal calendar collectionstatic final intNormal folderstatic final intInboxstatic final intOutboxstatic final intOutboxstatic final intIndicate unknown type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanabstract booleanabstract booleanabstract StringGet the calendar aliasUri propertyabstract intabstract StringgetColor()Get the calendar color propertyabstract booleanabstract intGet the calendar refresh rateabstract StringGet the calendar remoteId propertyabstract StringGet the calendar remotePw propertyabstract booleanGet the deletions suppressed flag for synchabstract StringGet the collection timezone propertyabstract TresolveAlias(boolean resolveSubAlias) abstract voidsetAffectsFreeBusy(boolean val) abstract voidsetAliasUri(String val) Set the calendar aliasUri propertyabstract voidsetCalType(int val) abstract voidSet the calendar color propertyabstract voidsetRefreshRate(int val) Set the calendar refresh rateabstract voidsetRemoteId(String val) Set the calendar remoteId propertyabstract voidsetRemotePw(String val) Set the calendar remotePw propertyabstract voidsetSupportedComponents(List<String> val) abstract voidsetSynchDeleteSuppressed(boolean val) Set the deletions suppressed flag for synchabstract voidsetTimezone(String val) Set the collection timezone propertyMethods inherited from class org.bedework.webdav.servlet.shared.WdEntity
compareTo, getCanPublish, getCanShare, getCreated, getDescription, getDisplayName, getEtag, getLastmod, getName, getOwner, getParentPath, getPath, getPreviousEtag, getProperty, hashCode, isAlias, setCreated, setDescription, setDisplayName, setLastmod, setName, setOwner, setParentPath, setPath, setProperty, toString, toStringSegment
-
Field Details
-
calTypeUnknown
public static final int calTypeUnknownIndicate unknown type- See Also:
-
calTypeCollection
public static final int calTypeCollectionNormal folder- See Also:
-
calTypeCalendarCollection
public static final int calTypeCalendarCollectionNormal calendar collection- See Also:
-
calTypeInbox
public static final int calTypeInboxInbox- See Also:
-
calTypeOutbox
public static final int calTypeOutboxOutbox- See Also:
-
calTypeNotifications
public static final int calTypeNotificationsOutbox- See Also:
-
-
Constructor Details
-
CalDAVCollection
public CalDAVCollection()Constructor
-
-
Method Details
-
resolveAlias
- Specified by:
resolveAliasin classorg.bedework.webdav.servlet.shared.WdEntity<T extends CalDAVCollection<?>>
-
setCalType
public abstract void setCalType(int val) - Parameters:
val- type
-
getCalType
public abstract int getCalType()- Returns:
- int
-
freebusyAllowed
public abstract boolean freebusyAllowed()- Returns:
- true if freebusy reports are allowed
-
getDeleted
public abstract boolean getDeleted()- Returns:
- true if this represents a deleted collection.
-
entitiesAllowed
public abstract boolean entitiesAllowed()- Returns:
- true if entities can be stored
-
setAffectsFreeBusy
public abstract void setAffectsFreeBusy(boolean val) - Parameters:
val- true if the calendar takes part in free/busy calculations
-
getAffectsFreeBusy
public abstract boolean getAffectsFreeBusy()- Returns:
- boolean true if the calendar takes part in free/busy calculations
-
setTimezone
Set the collection timezone property- Parameters:
val- the tzid
-
getTimezone
Get the collection timezone property- Returns:
- String vtimezone spec
-
setColor
Set the calendar color property- Parameters:
val- the color
-
getColor
Get the calendar color property- Returns:
- String calendar color
-
setAliasUri
Set the calendar aliasUri property- Parameters:
val- alias uri
-
getAliasUri
Get the calendar aliasUri property- Specified by:
getAliasUriin classorg.bedework.webdav.servlet.shared.WdEntity<T extends CalDAVCollection<?>>- Returns:
- String calendar AliasUri
-
setRefreshRate
public abstract void setRefreshRate(int val) Set the calendar refresh rate- Parameters:
val- - seconds
-
getRefreshRate
public abstract int getRefreshRate()Get the calendar refresh rate- Returns:
- int seconds
-
setRemoteId
Set the calendar remoteId property- Parameters:
val- remote id
-
getRemoteId
Get the calendar remoteId property- Returns:
- String calendar RemoteId
-
setRemotePw
Set the calendar remotePw property- Parameters:
val- calendar remotePw property
-
getRemotePw
Get the calendar remotePw property- Returns:
- String calendar RemotePw
-
setSynchDeleteSuppressed
public abstract void setSynchDeleteSuppressed(boolean val) Set the deletions suppressed flag for synch- Parameters:
val- true if we suppress deletions during synch
-
getSynchDeleteSuppressed
public abstract boolean getSynchDeleteSuppressed()Get the deletions suppressed flag for synch- Returns:
- boolean on/off
-
setSupportedComponents
- Parameters:
val- the supported component names e.g. "VEVENT", "VTODO" etc.
-
getSupportedComponents
- Returns:
- the supported component names e.g. "VEVENT", "VTODO" etc.
-
getVpollSupportedComponents
- Returns:
- the vpoll supported component names e.g. "VEVENT", "VTODO" etc.
-