Package com.tll.service.entity.intf

Examples of com.tll.service.entity.intf.IInterfaceService


  @Override
  public void loadImpl(ISearch search, ModelPayload payload) {
    if(search instanceof AccountInterfaceDataSearch) {
      final AccountInterfaceDataSearch ais = (AccountInterfaceDataSearch) search;

      final IInterfaceService isvc = context.getEntityServiceFactory().instance(IInterfaceService.class);
      final AccountInterface ai = isvc.loadAccountInterface(ais.getAccountId(), ais.getInterfaceId());

      // set the quasi-id
      ai.setId(ais.getAccountId() + '|' + ais.getInterfaceId());

      final Marshaler marshaler = context.getMarshaler();
View Full Code Here


  public void doUpdate(Model model, ModelPayload payload) {
    // [re-]set the account interface options for a given interface and account

    final Marshaler marshaler = context.getMarshaler();

    final IInterfaceService isvc = context.getEntityServiceFactory().instance(IInterfaceService.class);

    final String id = model.getId();
    final String accountId = id.substring(0, id.indexOf('|'));
    final String intfId = id.substring(id.indexOf('|')+1);
    AccountInterface ai = isvc.loadAccountInterface(accountId, intfId);

    ai = marshaler.marshalModel(model, ai);
    isvc.setAccountInterface(ai);

    final MarshalOptions moptions = context.getMarshalOptionsResolver().resolve(SmbizEntityType.ACCOUNT_INTERFACE);
    final Model m = marshaler.marshalEntity(ai, moptions);
    payload.setModel(m);
  }
View Full Code Here

TOP

Related Classes of com.tll.service.entity.intf.IInterfaceService

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.