Examples of apply()


Examples of com.adito.security.forms.IpRestrictionForm.apply()

     * @throws Exception
     */
    public ActionForward doCommit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
                        throws Exception {
        IpRestrictionForm ipRestrictionForm = (IpRestrictionForm)form;
        ipRestrictionForm.apply();
        Permission permission = ipRestrictionForm.isEditing() ? PolicyConstants.PERM_EDIT : PolicyConstants.PERM_CREATE;
        PolicyUtil.checkPermission(PolicyConstants.IP_RESTRICTIONS_RESOURCE_TYPE, permission, request);
       
        try {
            if(ipRestrictionForm.isEditing()) {       
View Full Code Here

Examples of com.alibaba.fastjson.serializer.SimplePropertyPreFilter.apply()

   
    public void test_name_a() throws Exception {
        SimplePropertyPreFilter filter = new SimplePropertyPreFilter(VO.class, "name");
        Assert.assertEquals(VO.class, filter.getClazz());
        Assert.assertEquals(1, filter.getIncludes().size());
        Assert.assertTrue(filter.apply(null, null, null));
       
        String text = JSON.toJSONString(a, filter);
        Assert.assertTrue("{\"id\":123,\"name\":\"sandzhangtoo\"}".equals(text) || "{\"name\":\"sandzhangtoo\",\"id\":123}".equals(text));
    }
   
View Full Code Here

Examples of com.ardor3d.math.Quaternion.apply()

                }
                rotation.lookAt(direction, up);

                if (shapeNormalBuffer != null && normals != null) {
                    vector.set(shapeNormalBuffer.get(), shapeNormalBuffer.get(), shapeNormalBuffer.get());
                    rotation.apply(vector, vector);
                    normals.put(vector.getXf());
                    normals.put(vector.getYf());
                    normals.put(vector.getZf());
                }
View Full Code Here

Examples of com.asakusafw.runtime.directio.hadoop.DirectIoTransactionEditor.apply()

        if (args.length == 1) {
            String executionId = args[0];
            DirectIoTransactionEditor editor = new DirectIoTransactionEditor(repository);
            editor.setConf(getConf());
            try {
                editor.apply(executionId);
                return 0;
            } catch (Exception e) {
                LOG.error(MessageFormat.format(
                        "Failed to apply transaction (executionId={0})",
                        executionId), e);
View Full Code Here

Examples of com.axemblr.provisionr.core.templates.PoolTemplate.apply()

            .createSoftware();

        PoolTemplate jenkins = XmlTemplate.newXmlTemplate(Resources.toString(Resources
            .getResource(PoolTemplate.class, DEFAULT_JENKINS_TEMPLATE_PATH), Charsets.UTF_8));

        final Pool pool = jenkins.apply(Pool.builder()
            .provider(provider)
            .network(network)
            .adminAccess(adminAccess)
            .software(software)
            .hardware(hardware)
View Full Code Here

Examples of com.clarkparsia.pellet.sparqldl.model.Query.apply()

          }
          else {
            b = new ResultBindingImpl();
            b.setValue( a2, a1 );
          }
          q = q.apply( b );
          boundSameAs = true;
          break;
        }
      }
    }
View Full Code Here

Examples of com.clarkparsia.pellint.model.LintFixer.apply()

    addAxiom(m_Axioms[1]);
   
    Set<OWLAxiom> axiomsToRemove = CollectionUtil.asSet(m_Axioms[0], m_Axioms[1]);
    Set<OWLAxiom> axiomsToAdd = CollectionUtil.asSet(m_Axioms[2]);
    LintFixer fixer = new LintFixer(axiomsToRemove, axiomsToAdd);
    assertTrue(fixer.apply(m_Manager, m_Ontology));
   
    Set<OWLAxiom> axioms = m_Ontology.getAxioms();
    assertEquals(1, axioms.size());
    assertTrue(axioms.contains(m_Axioms[2]));
  }
View Full Code Here

Examples of com.cloudera.cdk.data.FieldPartitioner.apply()

        } catch (IntrospectionException e) {
          throw new IllegalStateException("Cannot read property " + name +
              " from " + entity, e);
        }
      }
      replace(i, fp.apply(value));
    }

    return this;
  }
View Full Code Here

Examples of com.dci.intellij.dbn.connection.ProjectConnectionBundle.apply()

    }

    public void applyChanges() throws ConfigurationException {
        Project project = getConfiguration().getProject();
        ProjectConnectionBundle projectConnectionManager = ProjectConnectionBundle.getInstance(project);
        projectConnectionManager.apply();

        ModuleManager moduleManager = ModuleManager.getInstance(project);
        Module[] modules = moduleManager.getModules();
        for (Module module : modules) {
            ModuleConnectionBundle.getInstance(module).apply();
View Full Code Here

Examples of com.dci.intellij.dbn.connection.config.ConnectionSettings.apply()

            listChanged = true;
        }

        for (int i=0; i< listModel.getSize(); i++) {
            ConnectionSettings connectionSettings = (ConnectionSettings) listModel.getElementAt(i);
            connectionSettings.apply();

            ConnectionHandler connectionHandler = connectionBundle.getConnection(connectionSettings.getDatabaseSettings().getId());
            if (connectionHandler == null) {
                connectionHandler = new ConnectionHandlerImpl(connectionBundle, connectionSettings);
                connectionSettings.getDatabaseSettings().setNew(false);
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.