Package org.brixcms.workspace

Examples of org.brixcms.workspace.WorkspaceManager


            }
        }
    }

    private boolean isCurrentWorkspaceValid() {
        WorkspaceManager manager = getBrix().getWorkspaceManager();
        Workspace workspace = getModelObject();
        return workspace != null && manager.workspaceExists(workspace.getId());
    }
View Full Code Here


    @Override
    protected void init() {
        super.init();

        final JcrSessionFactory sf = getJcrSessionFactory();
        final WorkspaceManager wm = getWorkspaceManager();

        getDebugSettings().setOutputMarkupContainerClassName(true);

        try {
            // create uri mapper for the cms
View Full Code Here

// FIXME figure out why this is failing on teamcity
@Ignore
public class WorkspaceManagerRmiTest {
    @Test
    public void test() throws Exception {
        WorkspaceManager remote = EasyMock.createMock(WorkspaceManager.class);

        Workspace workspace = EasyMock.createMock(Workspace.class);

        EasyMock.expect(remote.createWorkspace()).andReturn(workspace);
        workspace.delete();

        EasyMock.replay(remote, workspace);

        Registry registry = LocateRegistry.createRegistry(10000);

        ServerWorkspaceManager server = new ServerWorkspaceManager(remote);
        RemoteStub stub = UnicastRemoteObject.exportObject(server);
        registry.rebind("wm", stub);

        RemoteWorkspaceManager client = (RemoteWorkspaceManager) registry.lookup("wm");
        WorkspaceManager local = new ClientWorkspaceManager(client);

        Workspace w = local.createWorkspace();
        w.delete();
        EasyMock.verify(remote, workspace);

        UnicastRemoteObject.unexportObject(server, true);
    }
View Full Code Here

        }
        return name;
    }

    private boolean isCurrentWorkspaceValid() {
        WorkspaceManager manager = getBrix().getWorkspaceManager();
        Workspace workspace = getModelObject();
        return workspace != null && manager.workspaceExists(workspace.getId());
    }
View Full Code Here

TOP

Related Classes of org.brixcms.workspace.WorkspaceManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.