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
Constructors Constructor Description SynchReportDataItem(String vpath, CalDAVCollection<?> col, String token, boolean canSync)SynchReportDataItem(String vpath, CalDAVEvent<?> entity, String token)SynchReportDataItem(String vpath, CalDAVResource<?> resource, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(SysIntf.SynchReportData.SynchReportDataItem that)booleanequals(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 resourceStringgetToken()StringgetVpath()Always non-null - virtual path to the element this object represents (not including this elements name).inthashCode()
-
-
-
Constructor Detail
-
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 Detail
-
getToken
public String getToken()
- Returns:
- The token
-
getEntity
public CalDAVEvent<?> getEntity()
Non-null if this is for calendar entity- Returns:
- event or null
-
getResource
public CalDAVResource<?> getResource()
Non-null if this is for a resource- Returns:
- resource or null
-
getCol
public CalDAVCollection<?> getCol()
Non-null if this is for a collection- Returns:
- collection or null
-
getVpath
public 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
public int compareTo(SysIntf.SynchReportData.SynchReportDataItem that)
- Specified by:
compareToin interfaceComparable<SysIntf.SynchReportData.SynchReportDataItem>
-
-