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 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

      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 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

      public int compareTo​(SysIntf.SynchReportData.SynchReportDataItem that)
      Specified by:
      compareTo in interface java.lang.Comparable<SysIntf.SynchReportData.SynchReportDataItem>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object