Examples of Config


Examples of hermes.browser.MessageRenderer.Config

     * @throws NoSuchMethodException
     */
    public static JComponent createDefaultConfigPanel(final ConfigDialogProxy dialogProxy) throws IllegalAccessException, InvocationTargetException,
            NoSuchMethodException
    {
        final Config theConfig = dialogProxy.getConfig();
        final List<Property> list = new ArrayList<Property>();
        final Map properties = PropertyUtils.describe(theConfig);

        for (Iterator iter = properties.entrySet().iterator(); iter.hasNext();)
        {
            final Map.Entry entry = (Map.Entry) iter.next();
            final String propertyName = (String) entry.getKey();
            final Object propertyValue = entry.getValue();

            if (!propertyName.equals("class") && !propertyName.equals("name"))
            {
                Property displayProperty = new Property(propertyName, theConfig.getPropertyDescription(propertyName), propertyValue.getClass())
                {
                    /**
           *
           */
          private static final long serialVersionUID = -4650355524853942976L;
View Full Code Here

Examples of info.atende.webutil.jpa.Config

     * Testa a conversao de ConfigDTO para Config
     */
    @Test
    public void convertToConfig(){
        EmailConfig emailConfig = new EmailConfig("servidor_valor", "usuario_valor", "senha_valor");
        Config config = ConfigUtils.convertToConfig(emailConfig).get();
        Assert.assertEquals("servidor_valor", config.getValues().get("host"));
        Assert.assertEquals("usuario_valor", config.getValues().get("login"));
        Assert.assertEquals("senha_valor", config.getValues().get("password"));
        Assert.assertEquals(config.getConfig(), emailConfig.configName());
        Optional<Config> config1 = ConfigUtils.convertToConfig(null);
        Assert.assertFalse(config1.isPresent());

        emailConfig = new EmailConfig("google.com", Protocol.TLS, 465, "login", "password", true,
                "no-reply@pucminas.br", true);

        Config convert = ConfigUtils.convertToConfig(emailConfig).get();
        Assert.assertEquals(EmailConfig.CONFIG_NAME, convert.getConfig());
        Assert.assertEquals("google.com", convert.getValues().get("host"));
        Assert.assertEquals("TLS", convert.getValues().get("protocol"));
        Assert.assertEquals("465", convert.getValues().get("port"));
        Assert.assertEquals("login", convert.getValues().get("login"));
        Assert.assertEquals("password", convert.getValues().get("password"));
        Assert.assertEquals("true", convert.getValues().get("needAuthentication"));
        Assert.assertEquals("no-reply@pucminas.br", convert.getValues().get("sender"));
        Assert.assertEquals("true", convert.getValues().get("debug"));

    }
View Full Code Here

Examples of info.jtrac.domain.Config

        assertEquals(1, users2.size());
       
    }
   
    public void testConfigStoreAndLoad() {
        Config config = new Config("testParam", "testValue");
        jtrac.storeConfig(config);
        String value = jtrac.loadConfig("testParam");
        assertEquals("testValue", value);
    }
View Full Code Here

Examples of io.s4.comm.util.ConfigParser.Config

        System.exit(1);
    }

    private static void doMain(String zkAddress, boolean clean, boolean setup, String setupXml) {
        ConfigParser parser = new ConfigParser();
        Config config = parser.parse(setupXml);
        for (Cluster cluster : config.getClusters()) {
            processCluster(clean, zkAddress, cluster, config.getVersion());
        }
    }
View Full Code Here

Examples of it.eng.spagobi.commons.bo.Config

    IConfigDAO configDao = DAOFactory.getSbiConfigDAO();
    List lstConfigChecks = configDao.loadConfigParametersByProperties(PROP_NODE);
    logger.debug("checks found on db: " + lstConfigChecks.size());

    for(int i=0; i<lstConfigChecks.size(); i++){
      Config check = (Config)lstConfigChecks.get(i);
      if ((SpagoBIConstants.CHANGEPWD_CHANGE_FIRST).equals(check.getLabel()) && user.getDtLastAccess() == null){
        //if dtLastAccess isn't enhanced it represents the first login, so is necessary change the pwd
        logger.info("The pwd needs to activate!");
        toReturn = true;
        break;
      }

      if ((SpagoBIConstants.CHANGEPWD_EXPIRED_TIME).equals(check.getLabel()) &&
          user.getDtPwdEnd() != null && currentDate.compareTo(user.getDtPwdEnd()) >= 0){
        //check if the pwd is expiring, in this case it's locked.
        logger.info("The pwd is expiring... it should be changed");
        toReturn = true;
        break;
      }
      if ((SpagoBIConstants.CHANGEPWD_DISACTIVE_TIME).equals(check.getLabel())){
        //defines the end date for uselessness
        Date tmpEndForUnused = null;
        if (user.getDtLastAccess() != null){
          SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
          Calendar cal = Calendar.getInstance();
View Full Code Here

Examples of it.freedomotic.model.ds.Config

            while ((line = myInput.readLine()) != null) {
                xml.append(line).append("\n");
            }

            Config c = null;
            xstream.alias("config", Config.class);
            c = (Config) xstream.fromXML(xml.toString());
            c.setXmlFile(file);

            return c;
        } catch (FileNotFoundException fileNotFoundException) {
            LOG.warning(fileNotFoundException.getLocalizedMessage());
        } finally {
            if (myInput != null) {
                myInput.close();
            }
        }

        return new Config();
    }
View Full Code Here

Examples of jrdesktop.Config

    private static int lastConfigIndex = 0;
    private static Config viewerConfig;
   
    /** Creates new form ServerConnection */
    public ConnectionDialog() {
        viewerConfig = new Config(Commons.viewerSide, "");
        initComponents();
        jComboBoxConfig.setSelectedIndex(lastConfigIndex);
    }
View Full Code Here

Examples of lt.baltic_amadeus.jqbridge.server.Config

    private long scanInterval;

    public FilePort(FileProvider provider, String name) {
        this.provider = provider;
        this.name = name;
        Config conf = provider.getConfig();
        /* global port options */
        String pfx = "port." + name + ".";
        scanInterval = conf.getInt(pfx + "scanInterval", 5000);
        /* define queues */
        queues = new HashMap();
        for (NamesIterator i = (NamesIterator) conf.namesIterator("port[.]" + name + "[.]q[.]([^.]+)[.]dir"); i.hasNext(); ) {
            String prop = (String) i.next();
            defineQueue(conf, i.group(1), conf.getString(prop));
        }
    }
View Full Code Here

Examples of mymadrid.soccer.Config

    String[] columns = {"Pos", "Equipe", "MJ", "V", "N", "P", "BP", "BC", "Dif", "Pt"};
    Vector<Match> vectMatchs;
    private List<Row> rows;

    public MatchAffiche() {
        Config conf = new Config(1);
   
        Group grp = conf.getGroups().first();
        rows = grp.getTable().getRows();


        try {
            vectMatchs = matchs.SelectMatch();
View Full Code Here

Examples of net.ftlines.wicket.fullcalendar.Config

        final FeedbackPanel feedback = new FeedbackPanel(ID_FEEDBACK);
        feedback.setOutputMarkupId(true);
        addOrReplace(feedback);

       
        final Config config = new Config();
        config.setSelectable(true);
        config.setSelectHelper(false);
       
        List<ObjectAssociation> dateAssociations = elementSpec.getAssociations(CollectionContentsAsFullCalendarFactory.OF_TYPE_DATE);
       
       
        int i=0;
        for (ObjectAssociation dateAssociation : dateAssociations) {
            final EventSource association = new EventSource();
            association.setTitle(dateAssociation.getName());
            association.setEventsProvider(new DateAssociationEventsProvider(model, dateAssociation));
            association.setEditable(true);
            String color = COLORS[i++ % COLORS.length];
            association.setBackgroundColor(color);
            association.setBorderColor(color);
            config.add(association);
        }

        config.setAspectRatio(2.5f);
       
        config.getHeader().setLeft("prevYear,prev,next,nextYear, today");
        config.getHeader().setCenter("title");
        config.getHeader().setRight("");

        config.setLoading("function(bool) { if (bool) $(\"#loading\").show(); else $(\"#loading\").hide(); }");

        config.setAllDaySlot(true);
       
        final FullCalendar calendar = new FullCalendarWithEventHandling(ID_FULL_CALENDAR, config, feedback);
        addOrReplace(calendar);

        addOrReplace(new EventSourceSelector(ID_SELECTOR, calendar));
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.