Examples of AddressDao


Examples of com.ateam.webstore.dao.AddressDAO

public class AddressService implements RepositoryService<Address> {

  @Override
  public Address store(Address address) {
   
    AddressDAO repository = new AddressDAO();
    return repository.save(address);
   
  }
View Full Code Here

Examples of com.ateam.webstore.dao.AddressDAO

  }

  @Override
  public void remove(Address address) {
   
    AddressDAO repository = new AddressDAO();
    repository.delete(address);
   
  }
View Full Code Here

Examples of com.ateam.webstore.dao.AddressDAO

  }

  @Override
  public Collection<Address> getAll() {

    AddressDAO repository = new AddressDAO();
    return repository.getAll();
   
  }
View Full Code Here

Examples of com.ateam.webstore.dao.AddressDAO

   
  }

  @Override
  public Address getById(Serializable id) {
    AddressDAO repository = new AddressDAO();
    return repository.get(id);
  }
View Full Code Here

Examples of com.ateam.webstore.dao.AddressDAO

    return repository.get(id);
  }
 
  public Collection<Address> getByCustomerId(Serializable id) {
    Customer customer = new CustomerService().getById(id);
    AddressDAO repository = new AddressDAO();
    return repository.getByPerson(customer.getPerson());
  }
View Full Code Here

Examples of de.iritgo.aktera.address.AddressDAO

          Persistent party = persistentManager.create("aktera.Party");

          party.setField("userId", new Integer(userId));
          party.find();

          AddressDAO addressDAO = (AddressDAO) SpringTools.getBean(AddressDAO.ID);
          Option<Address> address = addressDAO.findAddressByPartyId(party.getFieldInt("partyId"));
          AktarioUser aktarioUser = new AktarioUser();
          if (address.full())
          {
            if (StringTools.isTrimEmpty(address.get().getFirstName()))
            {
View Full Code Here

Examples of de.iritgo.aktera.address.AddressDAO

          Persistent party = persistentManager.create("aktera.Party");

          party.setField("userId", new Integer(userId));
          party.find();

          AddressDAO addressDAO = (AddressDAO) SpringTools.getBean(AddressDAO.ID);
          Option<Address> address = addressDAO.findAddressByPartyId(party.getFieldInt("partyId"));
          AktarioUser aktarioUser = aktarioUsers.getUserByName(user.getFieldString("name"));
          if (address.full())
          {
            if (StringTools.isTrimEmpty(address.get().getFirstName()))
            {
View Full Code Here

Examples of org.projectforge.address.AddressDao

   */
  @Override
  public boolean hasAccess(final PFUserDO user, final AddressCampaignValueDO obj, final AddressCampaignValueDO oldObj,
      final OperationType operationType)
  {
    final AddressDao addressDao = (AddressDao) Registry.instance().getDao(AddressDao.class);
    if (operationType.isIn(OperationType.SELECT, OperationType.INSERT) == true && obj == null) {
      return addressDao.hasInsertAccess(user);
    }
    return addressDao.hasAccess(user, obj != null ? obj.getAddress() : null, oldObj != null ? oldObj.getAddress() : null, operationType,
        false);
  }
View Full Code Here

Examples of org.projectforge.address.AddressDao

      resp.sendError(HttpStatus.SC_FORBIDDEN);
      return;
    }

    final String searchNumber = NumberHelper.extractPhonenumber(number);
    final AddressDao addressDao = (AddressDao) Registry.instance().getDao(AddressDao.class);

    final BaseSearchFilter filter = new BaseSearchFilter();
    filter.setSearchString("*" + searchNumber);
    final QueryFilter queryFilter = new QueryFilter(filter);

    final StringBuffer buf = new StringBuffer();
    // Use internal get list method for avoiding access checking (no user is logged-in):
    final List<AddressDO> list = addressDao.internalGetList(queryFilter);
    if (list != null && list.size() >= 1) {
      AddressDO result = list.get(0);
      if (list.size() > 1) {
        // More than one result, therefore find the newest one:
        buf.append("+"); // Mark that more than one entry does exist.
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.