Package org.jitterbit.ui.event

Examples of org.jitterbit.ui.event.ApplicationMessageEvent$LifeTime


                // Set the TokenType of the response. To make clients happy we'll return a token of the type they requested
                tokenResponse.setTokenType(tokenRequest.getTokenType());
       
                // Add a Lifetime element to indicate to clients the lifetime of the token we're sending
                // In this case, we're giving the client the lifetime they asked for
                Lifetime lifetime = tokenRequest.getLifetime();
                tokenResponse.setLifetime(lifetime);

                // Check if the request included a custom element named <TestElement>
                // Note that a list of custom elements can be obtained by calling getCustomElements();
                if (tokenRequest.getCustomElement("http://testElementNs.testElementNs", "TestElement") != null) {
View Full Code Here


        // Set the desired Lifetime of the token being requested in this case to 250 seconds
        Date start = new Date();
        Date end = new Date();
        end.setTime(start.getTime() + 250 * 1000);
        tokenRequest.setLifetime(new Lifetime(wssConfig, doc, start, end));

        // Add a custom element of our own creation
        tokenRequest.addCustomElementNS("http://testElementNs.testElementNs", "te:TestElement");

        // Create a SOAP body and set the XML element of the token request (a <RequestSecurityToken> element)
View Full Code Here

        // Set the desired Lifetime of the token being requested in this case to 250 seconds
        Date start = new Date();
        Date end = new Date();
        end.setTime(start.getTime() + 250 * 1000);
        tokenRequest.setLifetime(new Lifetime(wssConfig, doc, start, end));

        // Add a custom element of our own creation
        tokenRequest.addCustomElementNS("http://testElementNs.testElementNs", "te:TestElement");

        // Create a SOAP body and set the XML element of the token request (a <RequestSecurityToken> element)
View Full Code Here

                // Set the TokenType of the response. To make clients happy we'll return a token of the type they requested
                tokenResponse.setTokenType(tokenRequest.getTokenType());
       
                // Add a Lifetime element to indicate to clients the lifetime of the token we're sending
                // In this case, we're giving the client the lifetime they asked for
                Lifetime lifetime = tokenRequest.getLifetime();
                tokenResponse.setLifetime(lifetime);

                // Check if the request included a custom element named <TestElement>
                // Note that a list of custom elements can be obtained by calling getCustomElements();
                if (tokenRequest.getCustomElement("http://testElementNs.testElementNs", "TestElement") != null) {
View Full Code Here

            // Do nothing.
        }

        private void postStatusMessage(String msg) {
            String toPost = StringUtils.isBlank(msg) ? msg : msg + "...";
            ApplicationMessageEvent evt = new ApplicationMessageEvent(this, toPost);
            window.postApplicationMessageEvent(evt);
        }
View Full Code Here

        }

        @Override
        protected void onSuccess(Object o) {
            externalCallback.succeeded(o);
            window.postApplicationMessageEvent(new ApplicationMessageEvent(
                            this,
                            Strings.getJitterPackString("Export.Success"),
                            ApplicationMessageEvent.INFORMATION_MESSAGE));
        }
View Full Code Here

    public void dispose() {
        ErrorLog.removeListener(logListener);
    }

    private void publishError(ErrorLogEntry entry) {
        window.postApplicationMessageEvent(new ApplicationMessageEvent(
                        entry.source(),
                        CoreResources.STRINGS.getString("StatusPanelErrorPublisher.ExceptionMessage")//$NON-NLS-1$
                        ApplicationMessageEvent.ERROR_MESSAGE));
    }
View Full Code Here

        public void selectionChanged(JitterPack selected) {
            window.postApplicationMessageEvent(getEventToBroadcast(selected));
        }

        private ApplicationMessageEvent getEventToBroadcast(JitterPack jp) {
            return new ApplicationMessageEvent(this, getMessageToBroadcast(jp));
        }
View Full Code Here

            Editor toOpen = entityPageLocator.findOpenPage(transformation);
            appWin.getEditorService().openEditor(toOpen);
        }

        private void notifyUserThatBackupWasCreated(IntegrationEntity copy) {
            ApplicationMessageEvent evt = new ApplicationMessageEvent(TransformationEditor.class,
                            getBackupCreatedMessage(copy));
            appWin.postApplicationMessageEvent(evt);
        }
View Full Code Here

        }

        private void publishMessage(String msg) {
            ApplicationWindow window = windowSection.getWindow();
            if (window != null) {
                window.postApplicationMessageEvent(new ApplicationMessageEvent(this, msg));
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.event.ApplicationMessageEvent$LifeTime

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.