Examples of GlobalContext


Examples of bear.core.GlobalContext

        return global.var(plugin.sendToHosts) ? super.getStage() : global.localStage;
    }

    @Override
    public void init() {
        GlobalContext global = plugin.getGlobal();
        //"$" if for conf, injected inside BearCommandLineConfigurator
        binding.setVariable("global", global);
        binding.setVariable("bear", global.bear);
        binding.setVariable("local", global.local);
        binding.setVariable("tasks", global.tasks);
View Full Code Here

Examples of org.apache.jackrabbit.oak.jcr.GlobalContext

        RepositoryConfiguration configuration =
                OakRepositoryConfiguration.create(Collections.singletonMap(
                        RepositoryConfiguration.MICROKERNEL_URL, url));
        final Repository repository =
                new GlobalContext(configuration).getInstance(Repository.class);
        Servlet servlet = new JCRWebdavServerServlet() {
            @Override
            protected Repository getRepository() {
                return repository;
            }
View Full Code Here

Examples of org.perl6.nqp.runtime.GlobalContext

            }
            else if (cmdStrings[1].equals("run")) {
                String[] argv = new String[cmdStrings.length - 3];
                System.arraycopy(cmdStrings, 2, argv, 0, argv.length);

                GlobalContext gc = new GlobalContext();
                gc.in = new ByteArrayInputStream(new byte[0]);
                gc.out = gc.err = new PrintStream( Channels.newOutputStream(sock), true, "UTF-8" );
                gc.interceptExit = true;
                gc.sharingHint = true;
View Full Code Here

Examples of uk.gov.nationalarchives.droid.command.context.GlobalContext

     */
    public static void main(final String[] args) throws CommandLineException {

        RuntimeConfig.configureRuntimeEnvironment();

        GlobalContext context = new SpringUiContext();
       
        int returnCode = 0;
   
        DroidCommandLine commandLine = new DroidCommandLine(args);
        returnCode = commandLine.processExecution();
View Full Code Here

Examples of uk.gov.nationalarchives.droid.gui.GlobalContext

        properties.put(DroidGlobalProperty.UPDATE_AUTOSET_DEFAULT.getName(), Boolean.FALSE);
       
        DroidGlobalConfig globalConfig = mock(DroidGlobalConfig.class);
        when(globalConfig.getPropertiesMap()).thenReturn(properties);
       
        GlobalContext globalContext = mock(GlobalContext.class);
        when(globalContext.getGlobalConfig()).thenReturn(globalConfig);
       
        configDialog = new ConfigDialog(null, globalContext);
        configDialog.setModal(false);
        configDialog.setVisible(true);
    }
View Full Code Here

Examples of xregistry.context.GlobalContext

public class UserAndGroupTest extends AbstractXregistryTestCase {

   
    public void testAddUser() throws Exception{
        GlobalContext globalContext = new GlobalContext(true);
        XregistryImpl registry = new XregistryImpl(globalContext);
       
        String user = "/C=US/O=National Center for Supercomputing Applications/CN=Hemapani Srinath Perera";
        registry.createGroup(user, "group1", "group1");
        registry.createGroup(user, "group2", "group1");
View Full Code Here

Examples of xregistry.context.GlobalContext

    private String regsitryURL = "https://linbox3.extreme.indiana.edu:6666/xregistry?wsdl";
   
    public void testStatelessOperations() throws XregistryException{
       
        ProxyRenewer renewer = new ProxyRenewer("hperea","hperera1234",MyProxy.DEFAULT_PORT,14400,"portal.leadproject.org");
        GlobalContext context = new GlobalContext(true);
        context.setHostcertsKeyFile("/etc/lead/certificates/hostcertkey.pem.hperera");
        //context.setCredential(renewer.renewProxy());
        DocumentRegistryClient client = new DocumentRegistryClient(context,regsitryURL);
        DocData[] data;
        data  = client.findHosts("");
        if(data != null){
View Full Code Here

Examples of xregistry.context.GlobalContext

//    }
   
   
    private GlobalContext createContext(String userName,String passwd) throws XregistryException{
        ProxyRenewer renewer = new ProxyRenewer(userName,passwd,MyProxy.DEFAULT_PORT,14400,"portal.leadproject.org");
        GlobalContext context = new GlobalContext(true);
        context.setCredential(renewer.renewProxy());
        return context;
    }
View Full Code Here

Examples of xregistry.context.GlobalContext

//        TestUtils.printListArray(apps);
//    }
   
   
    public void testAddremoveDocTest() throws Exception{
        GlobalContext context =  new GlobalContext(true);
        DocumentRegistryClient client = new DocumentRegistryClient(context,"http://linbox3.extreme.indiana.edu:6666/xregistry?wsdl");
        //DocumentRegistryClient client = new DocumentRegistryClient(context,"https://tyr14.cs.indiana.edu:6666/xregistry?wsdl");
        String user = "/C=US/O=National Center for Supercomputing Applications/CN=Hemapani Srinath Perera";
        String otherUser = "/C=US/O=National Center for Supercomputing Applications/CN=Suresh Marru";
        //String[] hostList;
View Full Code Here

Examples of xregistry.context.GlobalContext

    /**
     * @param args
     * @throws XregistryException
     */
    public static void main(String[] args) throws Exception {
        GlobalContext globalContext = new GlobalContext(true);
        DocumentRegistryClient client = new DocumentRegistryClient(globalContext,"https://tyr15.cs.indiana.edu:6666/xregistry?wsdl");
        client.registerConcreteWsdl(GfacUtils.readFile("/u/hperera/temp/cwsdls/AdderService.wsdl"), 99999999);
       
       
        System.out.println(Utils.canonicalizeDN("O=LEAD Project,OU=portal.leadprojec t.org,OU=cs.indiana.edu,CN=hperera/Email=hperera@cs.indiana.edu,CN=proxy"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.