Package com.tll.common.data

Examples of com.tll.common.data.AuxDataPayload


   * Loads auxiliary data.
   * @param request
   * @return the resultant payload
   */
  public AuxDataPayload loadAuxData(final AuxDataRequest request) {
    final AuxDataPayload payload = new AuxDataPayload();
    if(validateAuxDataRequest(request, payload)) {
      try {
        AuxDataHandler.getAuxData(context, request, payload);
      }
      catch(final RuntimeException se) {
        RpcServlet.exceptionToStatus(se, payload.getStatus());
        context.getExceptionHandler().handleException(se);
      }
    }
    return payload;
  }
View Full Code Here


    final PersistServiceDelegate delegate = getDelegate();
    final AuxDataRequest adr = new AuxDataRequest();
    adr.requestAppRefData(RefDataType.ISO_COUNTRY_CODES);
    adr.requestEntityList(TestEntityType.ADDRESS);
    adr.requestEntityPrototype(TestEntityType.ADDRESS);
    final AuxDataPayload p = delegate.loadAuxData(adr);
    assert p != null;
    assert p.getEntityMap() != null && p.getEntityMap().size() > 0;
    assert p.getEntityPrototypes() != null && p.getEntityPrototypes().size() == 1;
    assert p.getRefDataMaps() != null && p.getRefDataMaps().size() == 1;
  }
View Full Code Here

TOP

Related Classes of com.tll.common.data.AuxDataPayload

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.