Package de.iritgo.aktera.authentication.defaultauth.entity

Examples of de.iritgo.aktera.authentication.defaultauth.entity.AkteraUser


  @PayloadRoot(localPart = "getDefaultAddressStoreIdRequest", namespace = "http://aktera.iritgo.de/webservices/address")
  public GetDefaultAddressStoreIdResponse getDefaultAddressStoreId(
          @SuppressWarnings("unused") GetDefaultAddressStoreIdRequest request) throws Exception
  {
    GetDefaultAddressStoreIdResponse response = new GetDefaultAddressStoreIdResponse();
    AkteraUser user = securityContext.getUser();
    AddressStore store = null;
    store = addressManager.getAddressStoreById(preferencesManager.getInt(user.getId(), "address",
            "defaultAddressStore", - 1));
    if (store.getId() == - 1)
    {
      store = addressManager.getDefaultAddressStore();
    }
View Full Code Here


  }

  @PayloadRoot(localPart = "countAddressesRequest", namespace = "http://aktera.iritgo.de/webservices/address")
  public CountAddressesResponse countAddresses(CountAddressesRequest request) throws Exception
  {
    AkteraUser user = securityContext.getUser();
    AddressStore store = addressManager.getAddressStoreByName(request.getAddressStoreName());
    CountAddressesResponse response = new CountAddressesResponse();
    response.setCount((int) store.countAddressesByOwnerAndSearch(user.getId(), request.getQuery()));
    return response;
  }
View Full Code Here

  }

  @PayloadRoot(localPart = "listAddressesRequest", namespace = "http://aktera.iritgo.de/webservices/address")
  public ListAddressesResponse listAddresses(ListAddressesRequest request) throws Exception
  {
    AkteraUser user = securityContext.getUser();
    int firstResult = request.getFirstResult() != null ? request.getFirstResult().intValue() : 0;
    int maxResults = request.getMaxResults() != null ? request.getMaxResults().intValue() : - 1;
    SortOrder orderDir = request.getOrderDir() != null ? SortOrder.byId(request.getOrderDir())
            : SortOrder.ASCENDING;
    String orderBy = request.getOrderBy() != null ? request.getOrderBy() : "lastName";
    AddressStore store = addressManager.getAddressStoreByName(request.getAddressStoreName());
    ListAddressesResponse response = new ListAddressesResponse();
    for (Address address : store.createAddressListing(user.getId(), request.getQuery(), orderBy, orderDir,
            firstResult, maxResults))
    {
      ListAddressesResponse.Address addressElement = new ListAddressesResponse.Address();
      addressElement.setId(address.getAnyId().toString());
      addressElement.setFirstName(address.getFirstName());
View Full Code Here

TOP

Related Classes of de.iritgo.aktera.authentication.defaultauth.entity.AkteraUser

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.