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()
- Specified by:
isAliasin classorg.bedework.webdav.servlet.shared.WdEntity<T extends CalDAVCollectionBase<?>>
-
resolveAlias
public T resolveAlias(boolean resolveSubAlias)
- Specified by:
resolveAliasin classCalDAVCollection<T extends CalDAVCollectionBase<?>>
-
setCalType
public void setCalType(int val)
- Specified by:
setCalTypein classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- type
-
getCalType
public int getCalType()
- Specified by:
getCalTypein classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- int
-
freebusyAllowed
public boolean freebusyAllowed()
- Specified by:
freebusyAllowedin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- true if freebusy reports are allowed
-
entitiesAllowed
public boolean entitiesAllowed()
- Specified by:
entitiesAllowedin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- true if entities can be stored
-
setAffectsFreeBusy
public void setAffectsFreeBusy(boolean val)
- Specified by:
setAffectsFreeBusyin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- true if the calendar takes part in free/busy calculations
-
getAffectsFreeBusy
public boolean getAffectsFreeBusy()
- Specified by:
getAffectsFreeBusyin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- boolean true if the calendar takes part in free/busy calculations
-
setTimezone
public void setTimezone(String val)
Description copied from class:CalDAVCollectionSet the collection timezone property- Specified by:
setTimezonein classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- the tzid
-
getTimezone
public String getTimezone()
Description copied from class:CalDAVCollectionGet the collection timezone property- Specified by:
getTimezonein classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- String vtimezone spec
-
setColor
public void setColor(String val)
Description copied from class:CalDAVCollectionSet the calendar color property- Specified by:
setColorin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- the color
-
getColor
public String getColor()
Description copied from class:CalDAVCollectionGet the calendar color property- Specified by:
getColorin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- String calendar color
-
setAliasUri
public void setAliasUri(String val)
Description copied from class:CalDAVCollectionSet the calendar aliasUri property- Specified by:
setAliasUriin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- alias uri
-
getAliasUri
public String getAliasUri()
Description copied from class:CalDAVCollectionGet the calendar aliasUri property- Specified by:
getAliasUriin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- String calendar AliasUri
-
setRemoteId
public void setRemoteId(String val)
Description copied from class:CalDAVCollectionSet the calendar remoteId property- Specified by:
setRemoteIdin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- remote id
-
getRemoteId
public String getRemoteId()
Description copied from class:CalDAVCollectionGet the calendar remoteId property- Specified by:
getRemoteIdin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- String calendar RemoteId
-
setRemotePw
public void setRemotePw(String val)
Description copied from class:CalDAVCollectionSet the calendar remotePw property- Specified by:
setRemotePwin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- calendar remotePw property
-
getRemotePw
public String getRemotePw()
Description copied from class:CalDAVCollectionGet the calendar remotePw property- Specified by:
getRemotePwin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Returns:
- String calendar RemotePw
-
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
-
-