Examples of addMessage()


Examples of org.apache.isis.core.runtime.system.transaction.MessageBroker.addMessage()

        request.pushNewBuffer();
        request.processUtilCloseTag();
        final String content = request.popBuffer();

        final MessageBroker messageBroker = IsisContext.getMessageBroker();
        messageBroker.addMessage(content);
    }

    @Override
    public String getName() {
        return "add-message";
View Full Code Here

Examples of org.apache.isis.runtimes.dflt.runtime.system.transaction.MessageBroker.addMessage()

                    }
                }
                context.setRequestPath(view);
                if (message != null) {
                    final MessageBroker messageBroker = IsisContext.getMessageBroker();
                    messageBroker.addMessage(message);
                }
                if (override != null) {
                    context.addVariable(resultName, override, Scope.REQUEST);
                }
                if (context.getVariable(resultName) == null) {
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Feedback.addMessage()

            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                final Feedback feedbackManager = getFeedbackManager();
                feedbackManager.showBusyState(ApplicationWorkspace.this);
                getViewManager().saveOpenObjects();
                feedbackManager.addMessage("Profile saved");
                feedbackManager.showBusyState(ApplicationWorkspace.this);
            }
        });
    }
View Full Code Here

Examples of org.apache.maven.settings.validation.SettingsValidationResult.addMessage()

                return validator.validate( settings );
            }
            catch ( IOException e )
            {
                result.addMessage( e.getMessage() );
            }
            catch ( XmlPullParserException e )
            {
                result.addMessage( e.getMessage() );
            }
View Full Code Here

Examples of org.apache.qpid.server.store.MessageStore.addMessage()

                delvProps.setExpiration(System.currentTimeMillis() + delvProps.getTtl());
            }

            MessageMetaData_0_10 messageMetaData = new MessageMetaData_0_10(xfr);
            final MessageStore store = getVirtualHost().getMessageStore();
            StoredMessage<MessageMetaData_0_10> storeMessage = store.addMessage(messageMetaData);
            storeMessage.addContent(0,xfr.getBody());
            storeMessage.flushToStore();
            MessageTransferMessage message = new MessageTransferMessage(storeMessage, ((ServerSession)_session).getReference());

            List<? extends BaseQueue> queues = exchange.route(message);
View Full Code Here

Examples of org.apache.qpid.server.store.TestableMemoryMessageStore.addMessage()

        // Send persistent message

        qs.add(_queue);
        MessageMetaData metaData = msg.headersReceived(System.currentTimeMillis());
        TestableMemoryMessageStore store = (TestableMemoryMessageStore) _virtualHost.getMessageStore();
        StoredMessage handle = store.addMessage(metaData);
        msg.setStoredMessage(handle);


        ServerTransaction txn = new AutoCommitTransaction(store);
View Full Code Here

Examples of org.apache.roller.weblogger.util.RollerMessages.addMessage()

        // are we doing a preview?  or a post?
        String method = request.getParameter("method");
        final boolean preview;
        if (method != null && method.equals("preview")) {
            preview = true;
            messages.addMessage("commentServlet.previewCommentOnly");
            log.debug("Handling comment preview post");
        } else {
            preview = false;
            log.debug("Handling regular comment post");
        }
View Full Code Here

Examples of org.apache.scaffold.model.ModelResult.addMessage()

        ModelResult modelResult = new ModelResultBase();

        if (isBlank(getKey())) {
            allocateKey();
            insert();
            modelResult.addMessage(Tokens.DATA_RECORD_INSERTED);
        }
        else {
            update();
            modelResult.addMessage(Tokens.DATA_RECORD_UPDATED);
        }
View Full Code Here

Examples of org.apache.scaffold.model.ModelResultBase.addMessage()

        ModelResult modelResult = new ModelResultBase();

        if (isBlank(getKey())) {
            allocateKey();
            insert();
            modelResult.addMessage(Tokens.DATA_RECORD_INSERTED);
        }
        else {
            update();
            modelResult.addMessage(Tokens.DATA_RECORD_UPDATED);
        }
View Full Code Here

Examples of org.apache.sqoop.validation.Validation.addMessage()

  public Validation validateConnection(Object configuration) {
    Validation validation = new Validation(ConnectionConfiguration.class);
    ConnectionConfiguration config = (ConnectionConfiguration)configuration;

    if(config.connection.jdbcDriver == null) {
      validation.addMessage(Status.UNACCEPTABLE, "connection", "jdbcDriver", "Driver can't be empty");
    } else {
      try {
        Class.forName(config.connection.jdbcDriver);
      } catch (ClassNotFoundException e) {
        validation.addMessage(Status.UNACCEPTABLE, "connection", "jdbcDriver", "Can't load specified driver");
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.