Search in sources :

Example 6 with BwCalSuiteWrapper

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();
    }
}
Also used : BwCalSuiteWrapper(org.bedework.calfacade.svc.wrappers.BwCalSuiteWrapper)

Aggregations

BwCalSuiteWrapper (org.bedework.calfacade.svc.wrappers.BwCalSuiteWrapper)6 BwCalendar (org.bedework.calfacade.BwCalendar)3 BwPrincipal (org.bedework.calfacade.BwPrincipal)3 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)3 BwAdminGroup (org.bedework.calfacade.svc.BwAdminGroup)2 ArrayList (java.util.ArrayList)1 AccessException (org.bedework.access.AccessException)1 Ace (org.bedework.access.Ace)1 Acl (org.bedework.access.Acl)1 CurrentAccess (org.bedework.access.Acl.CurrentAccess)1 Privilege (org.bedework.access.Privilege)1 PrivilegeSet (org.bedework.access.PrivilegeSet)1 BwEventProperty (org.bedework.calfacade.BwEventProperty)1 BwPrincipalInfo (org.bedework.calfacade.BwPrincipalInfo)1 BwString (org.bedework.calfacade.BwString)1 Directories (org.bedework.calfacade.ifs.Directories)1 BwCalSuite (org.bedework.calfacade.svc.BwCalSuite)1 BwPreferences (org.bedework.calfacade.svc.BwPreferences)1