Examples of ConfigHelper


Examples of com.amazonaws.services.simpleworkflow.flow.examples.common.ConfigHelper

public class WorkflowHost {

    public static final String DECISION_TASK_LIST = "PeriodicWorkflow";

    public static void main(String[] args) throws Exception {
        ConfigHelper configHelper = ConfigHelper.createConfig();
        AmazonSimpleWorkflow swfService = configHelper.createSWFClient();
        String domain = configHelper.getDomain();

        final WorkflowWorker worker = new WorkflowWorker(swfService, domain, DECISION_TASK_LIST);
        worker.addWorkflowImplementationType(CronWithRetryWorkflowImpl.class);
        worker.setRegisterDomain(true);
        worker.setDomainRetentionPeriodInDays(1);
View Full Code Here

Examples of com.redhat.gss.redhat_support_lib.helpers.ConfigHelper

   * @param userAgent
   *            User agent string
   */
  public API(String username, String password, String url, String proxyUser,
      String proxyPassword, URL proxyUrl, int proxyPort, String userAgent) {
    config = new ConfigHelper(username, password, url, proxyUser,
        proxyPassword, proxyUrl, proxyPort, userAgent, false);
    connectionManager = new ConnectionManager(config);

    solutions = new Solutions(connectionManager);
    articles = new Articles(connectionManager);
View Full Code Here

Examples of com.sun.enterprise.admin.wsmgmt.registry.ConfigHelper

        return port;
    }
   
    String getWSDL(String host, String webServiceName){
        String port = DEFAULT_PORT;
        ConfigHelper ch = ConfigHelper.getInstanceToQueryRegistryLocations();
        port = ch.getInstancePort ();
        if (port == null)
            port = DEFAULT_PORT; // sanity
       
        String wsdl = null;
        String uri = null;
View Full Code Here

Examples of com.sun.enterprise.admin.wsmgmt.registry.ConfigHelper

     * connector-connection-pool, proceeds further to remove the
     * connector-resource
     * @param jndiNameOfRegistry whose resources are to be removed from the domain
     */
    public void removeRegistryConnectionResources(String jndiNameOfRegistry) {
        ConfigHelper configHelper = ConfigHelper.getInstanceToDeleteRegistryResources();
        configHelper.removeRegistryConnectionResources(jndiNameOfRegistry);
        return;
    }
View Full Code Here

Examples of com.sun.enterprise.admin.wsmgmt.registry.ConfigHelper

     * {@link com.sun.appserv.management.WebServiceMgr#PASSWORD_KEY}
     *
     */
    public void addRegistryConnectionResources(String jndiName,
            String description, String type, Map<String, String> properties){
        ConfigHelper configHelper = ConfigHelper.getInstanceToDeleteRegistryResources();
        configHelper.addRegistryConnectionResources(jndiName, description, type,
                properties);
    }
View Full Code Here

Examples of de.beimax.simplespleef.util.ConfigHelper

    if (SimpleSpleef.getGameHandler().gameExists(id)) {
      sender.sendMessage(ChatColor.DARK_RED + SimpleSpleef.ll("adminerrors.addarenaArenaExists", "[ARENA]", arena));
      return false;
    }
    // create new arena entry in config
    ConfigHelper configHelper = new ConfigHelper();
    if (!configHelper.createNewArena(id, arena)) { // createNewArena also saves config to disk
      sender.sendMessage(ChatColor.DARK_RED + "Internal error: Could not create arena - see log file for details.");
      return false;
    }

    // set default arena
View Full Code Here

Examples of helper.ConfigHelper

     * @param xMSF the XMultiServiceFactory
     */
    public static void dockStylist(XMultiServiceFactory xMSF){
        // prepare Window-Settings
        try {
            ConfigHelper aConfig = new ConfigHelper(xMSF,
                                    "org.openoffice.Office.Views", false);
           
            // Is node "5539" (slot-id for navigator) available? If not, insert it
            XNameReplace x5539 = aConfig.getOrInsertGroup("Windows", "5539");
           
            aConfig.updateGroupProperty(
               "Windows""5539", "WindowState", "952,180,244,349;1;0,0,0,0;");
           
            aConfig.insertOrUpdateExtensibleGroupProperty(
               "Windows", "5539", "UserData", "Data","V2,V,0,AL:(5,16,0/0/244/349,244;610)");               
           
            // Is node "SplitWindow2" available? If not, instert it.
            aConfig.getOrInsertGroup("Windows", "SplitWindow2");
           
            aConfig.insertOrUpdateExtensibleGroupProperty(
               "Windows", "SplitWindow2","UserData", "UserItem","V1,2,1,0,5539");
           
            aConfig.flush();
            aConfig = null;
       
        } catch (com.sun.star.uno.Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of helper.ConfigHelper

    public static void dockStylist(XMultiServiceFactory xMSF)
    {
        // prepare Window-Settings
        try
        {
            ConfigHelper aConfig = new ConfigHelper(xMSF,
                    "org.openoffice.Office.Views", false);

            // Is node "5539" (slot-id for navigator) available? If not, insert it
            XNameReplace x5539 = aConfig.getOrInsertGroup("Windows", "5539");

            aConfig.updateGroupProperty(
                    "Windows", "5539", "WindowState", "952,180,244,349;1;0,0,0,0;");

            aConfig.insertOrUpdateExtensibleGroupProperty(
                    "Windows", "5539", "UserData", "Data", "V2,V,0,AL:(5,16,0/0/244/349,244;610)");

            // Is node "SplitWindow2" available? If not, instert it.
            aConfig.getOrInsertGroup("Windows", "SplitWindow2");

            aConfig.insertOrUpdateExtensibleGroupProperty(
                    "Windows", "SplitWindow2", "UserData", "UserItem", "V1,2,1,0,5539");

            aConfig.flush();
            aConfig = null;

        }
        catch (com.sun.star.uno.Exception e)
        {
View Full Code Here

Examples of helper.ConfigHelper

     * @param xMSF the XMultiServiceFactory
     */
    public static void dockStylist(XMultiServiceFactory xMSF){
        // prepare Window-Settings
        try {
            ConfigHelper aConfig = new ConfigHelper(xMSF,
                                    "org.openoffice.Office.Views", false);
           
            // Is node "5539" (slot-id for navigator) available? If not, insert it
            XNameReplace x5539 = aConfig.getOrInsertGroup("Windows", "5539");
           
            aConfig.updateGroupProperty(
               "Windows""5539", "WindowState", "952,180,244,349;1;0,0,0,0;");
           
            aConfig.insertOrUpdateExtensibleGroupProperty(
               "Windows", "5539", "UserData", "Data","V2,V,0,AL:(5,16,0/0/244/349,244;610)");               
           
            // Is node "SplitWindow2" available? If not, instert it.
            aConfig.getOrInsertGroup("Windows", "SplitWindow2");
           
            aConfig.insertOrUpdateExtensibleGroupProperty(
               "Windows", "SplitWindow2","UserData", "UserItem","V1,2,1,0,5539");
           
            aConfig.flush();
            aConfig = null;
       
        } catch (com.sun.star.uno.Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of helper.ConfigHelper

    public static void dockStylist(XMultiServiceFactory xMSF)
    {
        // prepare Window-Settings
        try
        {
            ConfigHelper aConfig = new ConfigHelper(xMSF,
                    "org.openoffice.Office.Views", false);

            // Is node "5539" (slot-id for navigator) available? If not, insert it
            XNameReplace x5539 = aConfig.getOrInsertGroup("Windows", "5539");

            aConfig.updateGroupProperty(
                    "Windows", "5539", "WindowState", "952,180,244,349;1;0,0,0,0;");

            aConfig.insertOrUpdateExtensibleGroupProperty(
                    "Windows", "5539", "UserData", "Data", "V2,V,0,AL:(5,16,0/0/244/349,244;610)");

            // Is node "SplitWindow2" available? If not, instert it.
            aConfig.getOrInsertGroup("Windows", "SplitWindow2");

            aConfig.insertOrUpdateExtensibleGroupProperty(
                    "Windows", "SplitWindow2", "UserData", "UserItem", "V1,2,1,0,5539");

            aConfig.flush();
            aConfig = null;

        }
        catch (com.sun.star.uno.Exception e)
        {
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.