use of org.bedework.calfacade.annotations.NoDump in project bw-calendar-engine by Bedework.
the class BwCategory method getRestoreCallback.
@NoDump
public static FromXmlCallback getRestoreCallback() {
if (fromXmlCb == null) {
fromXmlCb = new FromXmlCallback();
fromXmlCb.addSkips("byteSize", "id", "seq");
fromXmlCb.addMapField("public", "publick");
}
return fromXmlCb;
}
use of org.bedework.calfacade.annotations.NoDump in project bw-calendar-engine by Bedework.
the class BwEvent method getXicalProperties.
/**
* Find x-properties storing the value of the named ical property
*
* @param val - name to match
* @return list of matching properties - never null
* @throws CalFacadeException
*/
@NoProxy
@NoDump
public List<BwXproperty> getXicalProperties(final String val) throws CalFacadeException {
List<BwXproperty> res = new ArrayList<>();
List<BwXproperty> xs = getXproperties();
if (xs == null) {
return res;
}
for (BwXproperty x : xs) {
if (x.getName().equals(BwXproperty.bedeworkIcalProp)) {
List<Xpar> xpars = x.getParameters();
Xpar xp = xpars.get(0);
if (xp.getName().equals(val)) {
res.add(x);
}
}
}
return res;
}
use of org.bedework.calfacade.annotations.NoDump in project bw-calendar-engine by Bedework.
the class BwContact method getRestoreCallback.
@NoDump
public static FromXmlCallback getRestoreCallback() {
if (fromXmlCb == null) {
fromXmlCb = new FromXmlCallback();
fromXmlCb.addSkips("byteSize", "id", "seq");
fromXmlCb.addMapField("public", "publick");
}
return fromXmlCb;
}
use of org.bedework.calfacade.annotations.NoDump in project bw-calendar-engine by Bedework.
the class BwPrincipal method getRestoreCallback.
@NoDump
public static FromXmlCallback getRestoreCallback() {
if (fromXmlCb == null) {
fromXmlCb = new FromXmlCallback() {
protected Timestamp lastAccess;
/**
* Last time principal modified something in our
* system.
*/
protected Timestamp lastModify;
@Override
public Object simpleValue(final Class cl, final String val) throws Throwable {
if (cl.getCanonicalName().equals(Timestamp.class.getCanonicalName())) {
return Timestamp.valueOf(val);
}
return null;
}
};
fromXmlCb.addSkips("id", "seq");
}
return fromXmlCb;
}
use of org.bedework.calfacade.annotations.NoDump in project bw-calendar-engine by Bedework.
the class BwPreferences method getRestoreCallback.
@NoDump
public static FromXmlCallback getRestoreCallback() {
if (fromXmlCb == null) {
fromXmlCb = new FromXmlCallback();
fromXmlCb.addClassForName("view", BwView.class);
fromXmlCb.addClassForName("property", BwProperty.class);
fromXmlCb.addSkips("byteSize", "id", "seq");
}
return fromXmlCb;
}
Aggregations