Examples of approve()


Examples of com.sissi.ucenter.relation.muc.room.RoomConfigApprover.approve()

    }

    @Override
    public boolean allowed(JID jid, RoomConfig key, Object value) {
      RoomConfigApprover approver = MongoRoomBuilder.this.readers.get(key);
      return approver != null ? approver.approve(new MucConfigParamImpl(jid, this.group, this.creator, this.configs), value) : false;
    }
  }
}
View Full Code Here

Examples of com.zesped.model.Invoice.approve()

          connect();
          Dms oDms = getSession().getDms();
          for (int d=0; d<aDocs.length; d++) {
            try {
              Invoice oInv = new Invoice(oDms, aDocs[d]);
              oInv.approve(getSession(), getSessionAttribute("user_uuid"));
              addDataLine("docid", aDocs[d]);
              commit();
            } catch (Exception xcpt) {
              rollback();
              addError("document", new SimpleError (xcpt.getClass().getName()+" "+xcpt.getMessage()));
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

    assertEquals("The deployment should tell use we need bundle URL 'bundle1-1';", "http://bundle1-1", sgo.getArtifactsFromDeployment()[0].getUrl());
    assertEquals("1", sgo.getCurrentVersion());
   
    final String newVersion = runAndWaitForEvent(new Callable<String>() {
        public String call() throws Exception {
            return sgo.approve();
        }
    }, false, DeploymentVersionObject.TOPIC_ADDED, TOPIC_STATUS_CHANGED);
   
    assertFalse("Immediately after approval, no approval is necessary.", sgo.needsApprove());
    assertEquals("We expect the registration state to be Registered;", RegistrationState.Registered, sgo.getRegistrationState());
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

        assertTrue("Turning on the autoapprove should not automatically approve whatever was waiting.", sgo.needsApprove());

        runAndWaitForEvent(new Callable<Object>() {
            public Object call() throws Exception {
                sgo.approve();
                return null;
            }
        }, false, TOPIC_STATUS_CHANGED);

        assertFalse("We approved the new version by hand, so we should not need approval.", sgo.needsApprove());
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

        m_feature2distributionRepository.create(g, l);

        m_distribution2targetRepository.create(l, sgo.getTargetObject());

        try {
            sgo.approve();
            assertTrue("Without a resource processor for our artifact, approve should go wrong.", false);
        }
        catch (IllegalStateException ise) {
            // expected
        }
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

        attr.put(BundleHelper.KEY_SYMBOLICNAME, "my.processor.bundle");
        attr.put(ArtifactHelper.KEY_MIMETYPE, BundleHelper.MIMETYPE);

        ArtifactObject b2 = m_artifactRepository.create(attr, tags);

        sgo.approve();

        DeploymentVersionObject dep = m_deploymentVersionRepository.getMostRecentDeploymentVersion(sgo.getID());

        DeploymentArtifact[] toDeploy = dep.getDeploymentArtifacts();
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

        // create a deploymentversion
        assertTrue("With the new assignments, the SGO should need approval.", sgo.needsApprove());
       
        runAndWaitForEvent(new Callable<Object>() {
            public Object call() throws Exception {
                sgo.approve();
                return null;
            }
        }, false, TOPIC_STATUS_CHANGED);

        // find the deployment version
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

        // try the simple template
        m_artifact2featureRepository.remove(a2g);
        a1 = m_artifactRepository.importArtifact(simpleTemplateFile.toURI().toURL(), true);
        a2g = m_artifact2featureRepository.create(a1, go);

        sgo.approve();

        // find the deployment version
        dvo = m_deploymentVersionRepository.getMostRecentDeploymentVersion("templatetarget2");
        // sleep for a while, to allow the OBR to process the file.
        Thread.sleep(250);
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

            Thread.sleep(100);
        }
       
        assertTrue("With the new assignments, the SGO should need approval.", sgo.needsApprove());
        // create a deploymentversion
        sgo.approve();

        // the preprocessor now has gotten its properties; inspect these
        PropertyResolver target = preprocessor.getProps();
        assertTrue("The property resolver should be able to resolve 'id'.", target.get("id").startsWith(targetId));
        assertTrue("The property resolver should be able to resolve 'name'.", target.get("name").startsWith("mydistribution"));
View Full Code Here

Examples of org.apache.ace.client.repository.stateful.StatefulTargetObject.approve()

                approveButton.setEnabled(target.needsApprove());
            }
        });
        approveButton.addListener(new Button.ClickListener() {
            public void buttonClick(ClickEvent event) {
                target.approve();
                approveButton.setEnabled(target.needsApprove());
            }
        });

        return result;
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.