Package org.jayasoft.woj.common.services

Examples of org.jayasoft.woj.common.services.ClientServerServicesProvider


    public static void main(String[] args) throws IOException {
        WojToolsSettings settings = WojToolsSettings.buildInstance(args);
       
        try {
            ClientServerServicesProvider ssp = ClientServerServicesProvider.get(settings.getServer());
            Authentification auth;
            auth = ssp.getAuthentificationService().authenticate(settings.getUserName(), settings.getPassword(), "");
           
            if (auth instanceof AuthSuccessfull) {
                ModuleManagementService mms = ssp.getModuleManagementService();
                AddModuleToWOJ batch = new AddModuleToWOJ(mms);
                batch.processDirectory(settings.getModulesDir().getPath());
                System.out.println("job done");
            } else {
                System.out.println("Authentication failed !");
View Full Code Here


        checkAttributes();
        log("connecting to woj");

        WOJCluster cluster = WOJClusterHelper.buildCluster(3);
        log("using cluster "+cluster+" to access WOJ", Project.MSG_VERBOSE);
        ClientServerServicesProvider ssp = ClientServerServicesProvider.get(cluster);
        UnifiedAuthentificationService.getInstance().setAuthentificationCluster(cluster);
        UnifiedAuthentificationService.getInstance().setLoginInfo(getUser(), getPasswd(), WojAntPlugin.getPluginVersion());
        Authentification auth;
        try {
            auth = ssp.getAuthentificationService().authenticate();
            if (auth instanceof AuthSuccessfull) {
                log("Congratulations! your woj ant plugin installation is successful");
            } else if (auth instanceof AuthFailed) {
                AuthFailed authFailed = (AuthFailed)auth;
                log("Sorry, your authentication failed: "+authFailed.getReasonMessage());
View Full Code Here

    }
   
    private void initWojConnectivity() {
        WOJCluster cluster = WOJClusterHelper.buildCluster(3);
        log("using cluster "+cluster+" to access WOJ", Project.MSG_VERBOSE);
        ClientServerServicesProvider ssp = ClientServerServicesProvider.get(cluster);
        UnifiedAuthentificationService.getInstance().setAuthentificationCluster(cluster);
        UnifiedAuthentificationService.getInstance().setLoginInfo(getUser(), getPasswd(), WojAntPlugin.getPluginVersion());
        _mms = ssp.getModuleManagementService();
    }
View Full Code Here

            System.setOut(new PrintStream(trace));
           
            System.out.println("\n\n\nBEGINNING MODULE BUILDER "+new Date()+" - "+settings.getServer());
            System.err.println("\n\n\nBEGINNING MODULE BUILDER "+new Date()+" - "+settings.getServer());
           
            ClientServerServicesProvider ssp = ClientServerServicesProvider.get(settings.getServer());
      Authentification auth;
            auth = ssp.getAuthentificationService().authenticate(settings.getUserName(), settings.getPassword(), "");
     
      if (auth instanceof AuthSuccessfull) {
        ModuleManagementService mms = ssp.getModuleManagementService();
        FromDLModuleBuilder builder = new FromDLModuleBuilder(explorer, mms, settings.getModulesDir());
        for (Iterator iter = explorer.getAllRevisions().iterator(); iter.hasNext();) {
          Revision rev = (Revision)iter.next();
          builder.build(rev);
        }
View Full Code Here

    public static void main(String[] args) {
        try {
            WojToolsSettings settings = WojToolsSettings.buildInstance(args);

            ClientServerServicesProvider ssp = ClientServerServicesProvider.get(settings.getServer());
            Authentification auth;
            auth = ssp.getAuthentificationService().authenticate(settings.getUserName(), settings.getPassword(), "");
           
            if (auth instanceof AuthSuccessfull) {
                ModuleManagementService mms = ssp.getModuleManagementService();
                RemoveModuleFromWOJBatch batch = new RemoveModuleFromWOJBatch(mms);
                batch.process(new DLExplorer(settings.getDLDir().getPath()));
                System.out.println("job done");
            } else {
                System.out.println("Authentication failed !");
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.common.services.ClientServerServicesProvider

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.