Examples of addMsg()


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

        }
      }

      if(Isp.class == accountClass) {
        account = svc.addIsp((Isp) account, aios, users);
        s.addMsg("Isp added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      else if(Merchant.class == accountClass) {
        account = svc.addMerchant((Merchant) account, aios, users);
        s.addMsg("Merchant added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
View Full Code Here

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

        account = svc.addIsp((Isp) account, aios, users);
        s.addMsg("Isp added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      else if(Merchant.class == accountClass) {
        account = svc.addMerchant((Merchant) account, aios, users);
        s.addMsg("Merchant added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      else if(Customer.class == accountClass) {
        account = svc.addCustomer((Customer) account, aios, users);
        s.addMsg("Customer added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
View Full Code Here

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

        account = svc.addMerchant((Merchant) account, aios, users);
        s.addMsg("Merchant added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      else if(Customer.class == accountClass) {
        account = svc.addCustomer((Customer) account, aios, users);
        s.addMsg("Customer added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      else {
        s.addMsg("Unhandled account type: " + accountClass, MsgLevel.ERROR, MsgAttr.STATUS.flag);
        return p;
      }
View Full Code Here

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

      else if(Customer.class == accountClass) {
        account = svc.addCustomer((Customer) account, aios, users);
        s.addMsg("Customer added", MsgLevel.INFO, MsgAttr.STATUS.flag);
      }
      else {
        s.addMsg("Unhandled account type: " + accountClass, MsgLevel.ERROR, MsgAttr.STATUS.flag);
        return p;
      }

      // marshal the added account
      maccount = mlr.marshalEntity(account, pc.getMarshalOptionsResolver().resolve(SmbizEntityType.ACCOUNT));
View Full Code Here

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

   */
  public <S extends IMarshalable, R extends IMarshalable> ListingPayload<R> process(final String sessionId, final ListingContext context, final ListingRequest<S> request) {
    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 id specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
View Full Code Here

Examples of com.tll.common.msg.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 id 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.msg.Status.addMsg()

      status.addMsg("No listing id 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<R> handler = null;
    ListingStatus listingStatus = null;
View Full Code Here

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

    ListingHandler<R> 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 {
        final ListingCache lcache = context.getListingCache();
        assert lcache != null : "Null ListingCache";
        Integer offset = request.getOffset();
View Full Code Here

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

            log.debug("Generating listing handler for listing: '{}'...", listingId);

            final RemoteListingDefinition<S> listingDef = request.getListingDef();
            if(listingDef == null) {
              status.addMsg("No listing def specified.", MsgLevel.ERROR, MsgAttr.STATUS.flag);
            }
            else {
              /*
              final S search = listingDef.getSearchCriteria();
              if(search == null) {
View Full Code Here

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

          // do the query related listing op
          if(handler != null && listingOp != null && listingOp.isQuery()) {
            log.debug("Performing : '{}' for '{}'", listingOp.getName(), 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
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.