Class SysIntf.SynchReportData.SynchReportDataItem
java.lang.Object
org.bedework.caldav.server.sysinterface.SysIntf.SynchReportData.SynchReportDataItem
- All Implemented Interfaces:
Comparable<SysIntf.SynchReportData.SynchReportDataItem>
- Enclosing class:
- SysIntf.SynchReportData
public static class SysIntf.SynchReportData.SynchReportDataItem
extends Object
implements 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
ConstructorsConstructorDescriptionSynchReportDataItem(String vpath, CalDAVCollection<?> col, String token, boolean canSync) SynchReportDataItem(String vpath, CalDAVEvent<?> entity, String token) SynchReportDataItem(String vpath, CalDAVResource<?> resource, String token) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbooleanFalse if we can't do a direct sync report.getCol()Non-null if this is for a collectionCalDAVEvent<?>Non-null if this is for calendar entityNon-null if this is for a resourcegetToken()getVpath()Always non-null - virtual path to the element this object represents (not including this elements name).inthashCode()
-
Constructor Details
-
SynchReportDataItem
public SynchReportDataItem(String vpath, CalDAVEvent<?> entity, String token) throws org.bedework.webdav.servlet.shared.WebdavException - Parameters:
vpath-entity-token-- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
SynchReportDataItem
public SynchReportDataItem(String vpath, CalDAVResource<?> resource, String token) throws org.bedework.webdav.servlet.shared.WebdavException - Parameters:
vpath-resource-token-- Throws:
org.bedework.webdav.servlet.shared.WebdavException
-
SynchReportDataItem
public SynchReportDataItem(String vpath, CalDAVCollection<?> col, 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
- 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
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 interfaceComparable<SysIntf.SynchReportData.SynchReportDataItem>
-
hashCode
public int hashCode() -
equals
-