Package com.collabnet.ce.soap60.webservices.cemain

Examples of com.collabnet.ce.soap60.webservices.cemain.ICollabNetSoap


        ITrackerAppSoap trackerClient = (ITrackerAppSoap) ClientSoapStubFactory.getSoapStub(ITrackerAppSoap.class, defaultWebserviceEndpoint);
        ArtifactSoapDO artifact = (ArtifactSoapDO) getUpdatedData();
        TrackerFieldSoapDO[] fields = trackerClient.getFields(getSessionKey(), artifact.getFolderId());
        boolean processEvent = false;

        SoapFieldValues flexFields = artifact.getFlexFields();

        for(TrackerFieldSoapDO field: fields) {
            System.out.println(field.getName() + field.getDisabled());
            if(field.getName().equals(ctfFieldName) && Arrays.asList(flexFields.getNames()).contains(field.getName())
                    && !field.getDisabled()) {
                if(field.getFieldValues() != null && field.getFieldValues().length > 0
                    && field.getFieldValues()[0].getValue() != null
                    && field.getFieldValues()[0].getValue().equals(ctfFieldValue)) {
                    processEvent = true;
View Full Code Here


        System.out.println("targetId: " + targetId);
        System.out.println("operation: " + operation);

        if (targetId != null && (operation.equals("create")
                || operation.equals("update"))) {
            ICollabNetSoap sfApp = (ICollabNetSoap) ClientSoapStubFactory.getSoapStub(ICollabNetSoap.class, defaultWebserviceEndpoint);
            boolean finishedUpdate = false;
            int numberOfTries = 0;
            while (!finishedUpdate && numberOfTries++ < 10) {
                try {
                    String description = "Create SOAP Association for TestSuite Creation.";
                    sfApp.createAssociation(getSessionKey(), originId, targetId, description);
                    finishedUpdate = true;
                } catch (AxisFault e) {
                    QName faultCode = e.getFaultCode();
                    if (!faultCode.getLocalPart().equals("VersionMismatchFault")) {
                        throw e;
View Full Code Here

    @Override
    public void processEvent() throws Exception {

        ITrackerAppSoap trackerClient = (ITrackerAppSoap) ClientSoapStubFactory.getSoapStub(ITrackerAppSoap.class, defaultWebserviceEndpoint);
        ArtifactSoapDO artifact = (ArtifactSoapDO) getUpdatedData();
        TrackerFieldSoapDO[] fields = trackerClient.getFields(getSessionKey(), artifact.getFolderId());
        boolean processEvent = false;

        SoapFieldValues flexFields = artifact.getFlexFields();

        for(TrackerFieldSoapDO field: fields) {
            System.out.println(field.getName() + field.getDisabled());
            if(field.getName().equals(ctfFieldName) && Arrays.asList(flexFields.getNames()).contains(field.getName())
                    && !field.getDisabled()) {
                if(field.getFieldValues() != null && field.getFieldValues().length > 0
                    && field.getFieldValues()[0].getValue() != null
                    && field.getFieldValues()[0].getValue().equals(ctfFieldValue)) {
                    processEvent = true;
                    break;
                }
            }
        }
        System.out.println(processEvent);
        if(!processEvent) return;

        String originId = artifact.getId();
        //get the target id.

        String targetId = getTargetId(originId);
        String operation = getEventContext().getOperation();
View Full Code Here

    }

    @Override
    public void processEvent() throws Exception {

        ITrackerAppSoap trackerClient = (ITrackerAppSoap) ClientSoapStubFactory.getSoapStub(ITrackerAppSoap.class, defaultWebserviceEndpoint);
        ArtifactSoapDO artifact = (ArtifactSoapDO) getUpdatedData();
        TrackerFieldSoapDO[] fields = trackerClient.getFields(getSessionKey(), artifact.getFolderId());
        boolean processEvent = false;

        SoapFieldValues flexFields = artifact.getFlexFields();

        for(TrackerFieldSoapDO field: fields) {
View Full Code Here

TOP

Related Classes of com.collabnet.ce.soap60.webservices.cemain.ICollabNetSoap

Copyright © 2018 www.massapicom. 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.