Package com.volantis.mcs.components

Examples of com.volantis.mcs.components.LinkComponent


        XMLRepositoryManager xmlRepositoryMgr = new XMLRepositoryManager();
        xmlRepositoryMgr.executeWith(new XMLRepositoryManager.RepositoryCommand() {
            public void execute(RepositoryConnection repositoryConnection,
                                XMLRepository repository,
                                String repositoryDir) throws Exception {
                LinkComponent lc = new LinkComponent("/testAddLinkComponent.mlnk");
                LinkRepositoryManager manager =
                        new LinkRepositoryManager(repository);
                manager.addLinkComponent(repositoryConnection, lc);
                containerExists(lc.getName(), false, repositoryConnection,
                        repository);
            }
        });
    }
View Full Code Here


        XMLRepositoryManager xmlRepositoryMgr = new XMLRepositoryManager();
        xmlRepositoryMgr.executeWith(new XMLRepositoryManager.RepositoryCommand() {
            public void execute(RepositoryConnection repositoryConnection,
                                XMLRepository repository,
                                String repositoryDir) throws Exception {
                LinkComponent lc = new LinkComponent("/testRemoveLinkComponent.mlnk");
                LinkRepositoryManager manager =
                        new LinkRepositoryManager(repositoryConnection);
                manager.addLinkComponent(repositoryConnection, lc);
                containerExists(lc.getName(), false, repositoryConnection,
                        repository);

                manager.removeLinkComponent(repositoryConnection, lc.getName());

                containerExists(lc.getName(), true, repositoryConnection,
                        repository);
            }
        });
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.components.LinkComponent

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.