use of org.bedework.calfacade.svc.BwCalSuite in project bw-calendar-engine by Bedework.
the class CalSuites method get.
/* (non-Javadoc)
* @see org.bedework.calsvci.CalSuitesI#get(org.bedework.calfacade.svc.BwAdminGroup)
*/
@Override
public BwCalSuiteWrapper get(final BwAdminGroup group) throws CalFacadeException {
BwCalSuite cs = getCal().get(group);
if (cs == null) {
return null;
}
checkCollections(cs);
return wrap(cs, false);
}
use of org.bedework.calfacade.svc.BwCalSuite in project bw-calendar-engine by Bedework.
the class CalSuites method get.
/* (non-Javadoc)
* @see org.bedework.calsvci.CalSuitesI#get(java.lang.String)
*/
@Override
public BwCalSuiteWrapper get(final String name) throws CalFacadeException {
BwCalSuite cs = getCal().getCalSuite(name);
if (cs == null) {
return null;
}
checkCollections(cs);
return wrap(cs, false);
}
use of org.bedework.calfacade.svc.BwCalSuite in project bw-calendar-engine by Bedework.
the class CalSuites method update.
@Override
public void update(final BwCalSuiteWrapper csw, final String adminGroupName, final String rootCollectionPath, final String submissionsPath) throws CalFacadeException {
BwCalSuite cs = csw.fetchEntity();
if (adminGroupName != null) {
validateGroup(cs, adminGroupName);
}
setRootCol(cs, rootCollectionPath);
setSubmissionsCol(cs, submissionsPath);
getCal().saveOrUpdate(cs);
}
use of org.bedework.calfacade.svc.BwCalSuite in project bw-calendar-engine by Bedework.
the class CalSuites method getAll.
/* (non-Javadoc)
* @see org.bedework.calsvci.CalSuitesI#getAll()
*/
@Override
public Collection<BwCalSuite> getAll() throws CalFacadeException {
Collection<BwCalSuite> css = getCal().getAllCalSuites();
TreeSet<BwCalSuite> retCss = new TreeSet<BwCalSuite>();
for (BwCalSuite cs : css) {
checkCollections(cs);
BwCalSuite w = wrap(cs, true);
if (w != null) {
retCss.add(w);
}
}
return retCss;
}
use of org.bedework.calfacade.svc.BwCalSuite in project bw-calendar-engine by Bedework.
the class BwCalSuiteWrapper method clone.
/* ====================================================================
* Convenience methods
* ==================================================================== */
/* ====================================================================
* Object methods
* ==================================================================== */
@Override
public Object clone() {
final BwCalSuite cs = (BwCalSuite) entity.clone();
final BwCalSuiteWrapper csw = new BwCalSuiteWrapper(cs, getCurrentAccess());
csw.setResourcesHome(getResourcesHome());
return csw;
}
Aggregations