Examples of removeField()


Examples of org.ejbca.core.model.ra.raadmin.EndEntityProfile.removeField()

        endEntityProfile.setValue(EndEntityProfile.AVAILCERTPROFILES, 0, "" + certProfileId);
        endEntityProfile.setValue(EndEntityProfile.DEFAULTCA, 0, "" + caid);
        endEntityProfile.setValue(EndEntityProfile.AVAILCAS, 0, "" + caid);
        endEntityProfile.setUse(EndEntityProfile.CLEARTEXTPASSWORD, 0,true);
        endEntityProfile.setValue(EndEntityProfile.CLEARTEXTPASSWORD,0,EndEntityProfile.TRUE);
        endEntityProfile.removeField(DnComponents.COMMONNAME, 0)// We will add the right number of CNs later
        endEntityProfileSession.addEndEntityProfile(admin, endEntityProfileName, endEntityProfile);
        newEndEntityProfile = true;
      } catch (EndEntityProfileExistsException e) {
        throw new EJBException(e)// We just checked for this so this cannot happen
      }
View Full Code Here

Examples of org.exolab.javasource.JClass.removeField()

            boolean addInitializerCode = true;
            if (jClass.getField(objName) != null) {
                //-- either inheritence, duplicate name, or error.
                //-- if inheritence or duplicate name, always take
                //-- the later definition. Do same if error, for now.
                jClass.removeField(objName);
                jClass.removeField(typeName);
                addInitializerCode = false;
            }

            if (generateConstantDefinitions) {
View Full Code Here

Examples of org.gdbms.engine.data.AlphanumericDataSource.removeField()

        AlphanumericDataSource d = (AlphanumericDataSource) ds
                .getDataSource(dsName, DataSourceFactory.UNDOABLE);
        d.beginTrans();
        d.deleteRow(0);
        assertTrue(d.canUndo());
        d.removeField(1);
        assertTrue(!d.canRedo());
        assertTrue(!d.canUndo());
        d.rollBackTrans();
    }
View Full Code Here

Examples of org.gdbms.engine.data.DataSource.removeField()

    assertTrue(d.isModified());
    d.rollBackTrans();

    d.beginTrans();
    assertFalse(d.isModified());
    d.removeField(1);
    assertTrue(d.isModified());
    d.rollBackTrans();

    d.beginTrans();
    assertFalse(d.isModified());
View Full Code Here

Examples of org.gdbms.engine.data.SpatialDataSource.removeField()

                .getDataSource("spatialobjectpersona");

        d.beginTrans();
        int sfi = d.getSpatialFieldIndex();
        try {
            d.removeField(sfi);
            assertTrue(false);
        } catch (UnsupportedOperationException e) {
            assertTrue(true);
        }
        d.rollBackTrans();
View Full Code Here

Examples of org.graylog2.plugin.Message.removeField()

    public void testRemoveField() {
        Message lm = new Message("foo", "bar", Tools.iso8601());
        lm.addField("something", "foo");
        lm.addField("something_else", "bar");

        lm.removeField("something_else");

        assertEquals(5, lm.getFields().size());
        assertEquals("foo", lm.getField("something"));
    }
View Full Code Here

Examples of org.graylog2.plugin.Message.removeField()

    public void testRemoveFieldWithNonExistentKey() {
        Message lm = new Message("foo", "bar", Tools.iso8601());
        lm.addField("something", "foo");
        lm.addField("something_else", "bar");

        lm.removeField("LOLIDONTEXIST");

        assertEquals(6, lm.getFields().size());
    }
   
    @Test
View Full Code Here

Examples of org.graylog2.plugin.Message.removeField()

   
    @Test
    public void testRemoveFieldDoesNotDeleteReservedFields() {
        DateTime time = Tools.iso8601();
        Message lm = new Message("foo", "bar", time);
        lm.removeField("source");
        lm.removeField("timestamp");
        lm.removeField("_id");

        assertTrue(lm.isComplete());
        assertEquals("foo", lm.getField("message"));
View Full Code Here

Examples of org.graylog2.plugin.Message.removeField()

    @Test
    public void testRemoveFieldDoesNotDeleteReservedFields() {
        DateTime time = Tools.iso8601();
        Message lm = new Message("foo", "bar", time);
        lm.removeField("source");
        lm.removeField("timestamp");
        lm.removeField("_id");

        assertTrue(lm.isComplete());
        assertEquals("foo", lm.getField("message"));
        assertEquals("bar", lm.getField("source"));
View Full Code Here

Examples of org.graylog2.plugin.Message.removeField()

    public void testRemoveFieldDoesNotDeleteReservedFields() {
        DateTime time = Tools.iso8601();
        Message lm = new Message("foo", "bar", time);
        lm.removeField("source");
        lm.removeField("timestamp");
        lm.removeField("_id");

        assertTrue(lm.isComplete());
        assertEquals("foo", lm.getField("message"));
        assertEquals("bar", lm.getField("source"));
        assertEquals(time, lm.getField("timestamp"));
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.