Examples of addMsg()


Examples of com.sun.messaging.jmq.jmsserver.core.Producer.addMsg()

           }
           long pid = msg.getProducerID();
           ProducerUID puid = new ProducerUID(pid);
           Producer p = Producer.getProducer(puid);
           if (p != null)
               p.addMsg(); // increment counter
           // see if we need to resume flow
           if (msg.getConsumerFlow()) {
               pausedProducer = p;
               if (pausedProducer == null) {
                   logger.log(Logger.INFO,"Internal Error: Unknown ProducerUID " + puid);
View Full Code Here

Examples of com.tll.client.ui.msg.IMsgOperator.addMsg()

        @Override
        public void onClick(ClickEvent event) {
          registry.clear();
          final IMsgOperator operator = registry.getOperator(refWidget, false);
          operator.addMsg(msgWarn, null);
          nestedContext.setVisible(false);
          operator.showMsgs(true);
          Window
          .alert("No message popup should appear even though showMsgs() was called because the nestedContext's visibliity was just set to false.");
          nestedContext.setVisible(true);
View Full Code Here

Examples of com.tll.client.ui.msg.IMsgOperator.addMsg()

        @Override
        public void onClick(ClickEvent event) {
          registry.clear();
          final IMsgOperator operator = registry.getOperator(refWidget, false);
          operator.addMsg(msgWarn, null);
          nestedContext.setVisible(false);
          operator.showMsgs(true);
          Window
          .alert("No message popup should appear even though showMsgs() was called because the nestedContext's visibliity was just set to false.");
          nestedContext.setVisible(true);
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

    if(context == null) throw new IllegalStateException("Null listing context");

    final Status status = new Status();

    if(request == null) {
      status.addMsg("No listing request specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
    }

    final String listingId = request == null ? null : request.getListingId();
    if(listingId == null) {
      status.addMsg("No listing name specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

      status.addMsg("No listing request specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
    }

    final String listingId = request == null ? null : request.getListingId();
    if(listingId == null) {
      status.addMsg("No listing name specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
    }

    final ListingOp listingOp = request == null ? null : request.getListingOp();
    if(listingOp == null) {
      status.addMsg("No listing op specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

      status.addMsg("No listing name specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
    }

    final ListingOp listingOp = request == null ? null : request.getListingOp();
    if(listingOp == null) {
      status.addMsg("No listing op specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
    }

    ListingHandler<Model> handler = null;
    ListingStatus listingStatus = null;
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

    ListingHandler<Model> handler = null;
    ListingStatus listingStatus = null;

    if(!status.hasErrors() && request != null) {
      if(sessionId == null) {
        status.addMsg("No session id specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
      }
      else {
        Integer offset = request.getOffset();
        Sorting sorting = request.getSorting();
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

              catch(final InvalidCriteriaException e) {
                throw new ListingException(listingId, "Invalid criteria: " + e.getMessage(), e);
              }
              catch(final EmptyListException e) {
                // we proceed to allow client to still show the listing
                status.addMsg(e.getMessage(), MsgLevel.WARN, MsgAttr.STATUS.flag);
              }
              catch(final ListHandlerException e) {
                // shouldn't happen
                throw new IllegalStateException("Unable to instantiate the list handler: " + e.getMessage(), e);
              }
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

          if(handler != null && listingOp != null && listingOp.isQuery()) {
            if(log.isDebugEnabled())
              log.debug("Performing : '" + listingOp.getName() + "' for '" + listingId + "'...");
            try {
              handler.query(offset.intValue(), sorting, (listingOp == ListingOp.REFRESH));
              status.addMsg(listingOp.getName() + " for '" + listingId + "' successful.", MsgLevel.INFO,
                  MsgAttr.STATUS.flag);
            }
            catch(final EmptyListException e) {
              // we proceed to allow client to still show the listing
              status.addMsg(e.getMessage(), MsgLevel.WARN, MsgAttr.STATUS.flag);
View Full Code Here

Examples of com.tll.common.data.Status.addMsg()

              status.addMsg(listingOp.getName() + " for '" + listingId + "' successful.", MsgLevel.INFO,
                  MsgAttr.STATUS.flag);
            }
            catch(final EmptyListException e) {
              // we proceed to allow client to still show the listing
              status.addMsg(e.getMessage(), MsgLevel.WARN, MsgAttr.STATUS.flag);
            }
            catch(final ListingException e) {
              throw new ListingException(listingId, "An unexpected error occurred performing listing operation: "
                  + e.getMessage(), e);
            }
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.