use of org.bedework.calfacade.svc.wrappers.BwCalSuiteWrapper in project bw-calendar-engine by Bedework.
the class ProcessCreate method createCalsuite.
private BwCalSuiteWrapper createCalsuite(final String name) throws Throwable {
if (debug) {
debug("About to create cal suite " + name);
}
if (name == null) {
addError("Must supply name");
return null;
}
final String adminGroup = word();
if (adminGroup == null) {
addError("Must supply admin group");
return null;
}
try {
open();
final BwCalSuiteWrapper cs = getSvci().getCalSuitesHandler().add(name, adminGroup, null, null);
return cs;
} finally {
close();
}
}
Aggregations