Class SysIntf.SynchReportData.SynchReportDataItem
java.lang.Object
org.bedework.caldav.server.sysinterface.SysIntf.SynchReportData.SynchReportDataItem
- All Implemented Interfaces:
java.lang.Comparable<SysIntf.SynchReportData.SynchReportDataItem>
- Enclosing class:
- SysIntf.SynchReportData
public static class SysIntf.SynchReportData.SynchReportDataItem extends java.lang.Object implements java.lang.Comparable<SysIntf.SynchReportData.SynchReportDataItem>
The changed entity may be an event, a resource or a collection. If it is
deleted then it will be marked as tombstoned.
The parent indicates what collection is visible in the hierarchy. It may be an alias to the actual parent.
- Author:
- douglm
-
Constructor Summary
Constructors Constructor Description SynchReportDataItem(java.lang.String vpath, CalDAVCollection<?> col, java.lang.String token, boolean canSync)SynchReportDataItem(java.lang.String vpath, CalDAVEvent<?> entity, java.lang.String token)SynchReportDataItem(java.lang.String vpath, CalDAVResource<?> resource, java.lang.String token) -
Method Summary
Modifier and Type Method Description intcompareTo(SysIntf.SynchReportData.SynchReportDataItem that)booleanequals(java.lang.Object o)booleangetCanSync()False if we can't do a direct sync report.CalDAVCollection<?>getCol()Non-null if this is for a collectionCalDAVEvent<?>getEntity()Non-null if this is for calendar entityCalDAVResource<?>getResource()Non-null if this is for a resourcejava.lang.StringgetToken()java.lang.StringgetVpath()Always non-null - virtual path to the element this object represents (not including this elements name).inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SynchReportDataItem
public SynchReportDataItem(java.lang.String vpath, CalDAVEvent<?> entity, java.lang.String token) throws org.bedework.webdav.servlet.shared.WebdavException- Parameters:
vpath-entity-token-- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
SynchReportDataItem
public SynchReportDataItem(java.lang.String vpath, CalDAVResource<?> resource, java.lang.String token) throws org.bedework.webdav.servlet.shared.WebdavException- Parameters:
vpath-resource-token-- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
SynchReportDataItem
public SynchReportDataItem(java.lang.String vpath, CalDAVCollection<?> col, java.lang.String token, boolean canSync) throws org.bedework.webdav.servlet.shared.WebdavException- Parameters:
vpath-col-token-canSync-- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
-
Method Details
-
getToken
public java.lang.String getToken()- Returns:
- The token
-
getEntity
Non-null if this is for calendar entity- Returns:
- event or null
-
getResource
Non-null if this is for a resource- Returns:
- resource or null
-
getCol
Non-null if this is for a collection- Returns:
- collection or null
-
getVpath
public java.lang.String getVpath()Always non-null - virtual path to the element this object represents (not including this elements name).For example, if (x) represents a collection x and [x] represents an alias x then for element c we have:
(a)->(b)->(c) has the vpath and path a/b/c while (a)->[b] | v (x)->(y)->(c) has the vpath a/b/c and path) x/y/c- Returns:
- parent collection
-
getCanSync
public boolean getCanSync()False if we can't do a direct sync report.- Returns:
- boolean
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<SysIntf.SynchReportData.SynchReportDataItem>
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-