public class SynchReportItem extends Object implements Comparable<SynchReportItem>
The parent indicates what collection is visible in the hierarchy. It may be an alias to the actual parent.
| Constructor and Description |
|---|
SynchReportItem(String vpath,
BwCalendar col,
boolean canSync) |
SynchReportItem(String vpath,
BwCalendar col,
boolean canSync,
String token)
For an alias where the target lastmod is the token
|
SynchReportItem(String vpath,
BwResource resource) |
SynchReportItem(String vpath,
EventInfo event) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(SynchReportItem that) |
boolean |
equals(Object o) |
boolean |
getCanSync()
False if we can't do a direct sync report.
|
BwCalendar |
getCol()
Non-null if this is for a collection
|
EventInfo |
getEvent()
Non-null if this is for an event
|
BwResource |
getResource()
Non-null if this is for a resource
|
String |
getToken() |
String |
getVpath()
Always non-null - virtual path to the element this object represents (not
including this elements name).
|
int |
hashCode() |
public SynchReportItem(String vpath, EventInfo event)
vpath - the virtual pathevent - the eventpublic SynchReportItem(String vpath, BwResource resource)
vpath - the virtual pathresource - the resourcepublic SynchReportItem(String vpath, BwCalendar col, boolean canSync)
vpath - the virtual pathcol - the collectioncanSync - false if this cannot do sync reportpublic SynchReportItem(String vpath, BwCalendar col, boolean canSync, String token)
vpath - the virtual pathcol - the collectioncanSync - false if this cannot do sync reporttoken - to usepublic String getToken()
public EventInfo getEvent()
public BwResource getResource()
public BwCalendar getCol()
public String getVpath()
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
public boolean getCanSync()
public int compareTo(SynchReportItem that)
compareTo in interface Comparable<SynchReportItem>Copyright © 2019 Bedework. All rights reserved.