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:
java.lang.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
Modifier and Type Method Description booleanentitiesAllowed()booleanfreebusyAllowed()booleangetAffectsFreeBusy()java.lang.StringgetAliasUri()Get the calendar aliasUri propertyintgetCalType()java.lang.StringgetColor()Get the calendar color propertyjava.lang.StringgetRemoteId()Get the calendar remoteId propertyjava.lang.StringgetRemotePw()Get the calendar remotePw propertybooleangetSynchDeleteSuppressed()Get the deletions suppressed flag for synchjava.lang.StringgetTimezone()Get the collection timezone propertybooleanisAlias()TresolveAlias(boolean resolveSubAlias)voidsetAffectsFreeBusy(boolean val)voidsetAliasUri(java.lang.String val)Set the calendar aliasUri propertyvoidsetCalType(int val)voidsetColor(java.lang.String val)Set the calendar color propertyvoidsetRemoteId(java.lang.String val)Set the calendar remoteId propertyvoidsetRemotePw(java.lang.String val)Set the calendar remotePw propertyvoidsetSynchDeleteSuppressed(boolean val)Set the deletions suppressed flag for synchvoidsetTimezone(java.lang.String val)Set the collection timezone propertyMethods inherited from class org.bedework.caldav.server.CalDAVCollection
getDeleted, getRefreshRate, getSupportedComponents, getVpollSupportedComponents, setRefreshRate, setSupportedComponentsMethods 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, toStringSegmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
calTypeResource
public static final int calTypeResourceResource 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
-
-
Constructor Details
-
CalDAVCollectionBase
public CalDAVCollectionBase(int calType, boolean freebusyAllowed)Constructor- Parameters:
calType- collection typefreebusyAllowed- true if freeebusy allowed on the collection
-
-
Method Details
-
isAlias
public boolean isAlias()- Specified by:
isAliasin classorg.bedework.webdav.servlet.shared.WdEntity<T extends CalDAVCollectionBase<?>>
-
resolveAlias
- 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(java.lang.String val)Description copied from class:CalDAVCollectionSet the collection timezone property- Specified by:
setTimezonein classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- the tzid
-
getTimezone
public java.lang.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(java.lang.String val)Description copied from class:CalDAVCollectionSet the calendar color property- Specified by:
setColorin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- the color
-
getColor
public java.lang.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(java.lang.String val)Description copied from class:CalDAVCollectionSet the calendar aliasUri property- Specified by:
setAliasUriin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- alias uri
-
getAliasUri
public java.lang.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(java.lang.String val)Description copied from class:CalDAVCollectionSet the calendar remoteId property- Specified by:
setRemoteIdin classCalDAVCollection<T extends CalDAVCollectionBase<?>>- Parameters:
val- remote id
-
getRemoteId
public java.lang.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(java.lang.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 java.lang.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
-