import org.argeo.jcr.JcrException;
import org.argeo.jcr.JcrRepositoryWrapper;
import org.argeo.jcr.JcrUtils;
import org.argeo.jcr.JcrException;
import org.argeo.jcr.JcrRepositoryWrapper;
import org.argeo.jcr.JcrUtils;
- private String defaultHomeWorkspace = NodeConstants.HOME_WORKSPACE;
- private String defaultGroupsWorkspace = NodeConstants.SRV_WORKSPACE;
+ private String defaultHomeWorkspace = CmsConstants.HOME_WORKSPACE;
+ private String defaultGroupsWorkspace = CmsConstants.SRV_WORKSPACE;
// private String defaultGuestsWorkspace = NodeConstants.GUESTS_WORKSPACE;
private final boolean remote;
public EgoRepository(Repository repository, boolean remote) {
super(repository);
this.remote = remote;
// private String defaultGuestsWorkspace = NodeConstants.GUESTS_WORKSPACE;
private final boolean remote;
public EgoRepository(Repository repository, boolean remote) {
super(repository);
this.remote = remote;
lc.login();
} catch (javax.security.auth.login.LoginException e1) {
throw new IllegalStateException("Cannot login as system", e1);
lc.login();
} catch (javax.security.auth.login.LoginException e1) {
throw new IllegalStateException("Cannot login as system", e1);
String groupsWorkspace = getGroupsWorkspace();
Session adminSession = KernelUtils.openAdminSession(getRepository(groupsWorkspace), groupsWorkspace);
String cn = dn.getRdn(dn.size() - 1).getValue().toString();
String groupsWorkspace = getGroupsWorkspace();
Session adminSession = KernelUtils.openAdminSession(getRepository(groupsWorkspace), groupsWorkspace);
String cn = dn.getRdn(dn.size() - 1).getValue().toString();
if (newWorkgroup != null) {
JcrUtils.logoutQuietly(adminSession);
throw new CmsException("Workgroup " + newWorkgroup + " already exists for " + dn);
if (newWorkgroup != null) {
JcrUtils.logoutQuietly(adminSession);
throw new CmsException("Workgroup " + newWorkgroup + " already exists for " + dn);