Examples of Office


Examples of aim.domain.agent.Office

        final Account firstAgent = new Account(new Employee(firstAgentId, "Иванов", "Иван"));
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        firstAgent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(firstAgent);
        final Office office = new Office("Kiev");
        userDAO.persist(office);
        firstAgent.getEmployee().setOffice(office);

        final Passport secondAgentId = new Passport("АУ", "468454");
        final Account secondAgent = new Account(new Employee(secondAgentId, "Иванов", "Иван"));
        final List<UserRoles> secondAgentUserRoles = new ArrayList<UserRoles>();
        secondAgentUserRoles.add(UserRoles.ROLE_AGENT);
        secondAgent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(secondAgent);

        final List<Account> foundAgents = userDAO.findEmployeesByCriteria(UserSearchCriteria.createCriteria().setOffice(office.getTitle()));

        assertNotNull(foundAgents);
        assertEquals(agentFromKievCount, foundAgents.size());
        assertEquals(firstAgent.getEmployee().getFirstName(), foundAgents.get(0).getEmployee().getFirstName());
    }
View Full Code Here

Examples of aim.domain.agent.Office

        Set<UserRoles> userRoles = new TreeSet<UserRoles>();
        userRoles.add(UserRoles.ROLE_USER);
        userRoles.add(UserRoles.ROLE_ADMIN);
        admin.setAssociatedRoles(userRoles);
        admin.setAccount(aimSecurityAdimn);
        Office office = new Office("Центральный");
        entityManager.persist(office);
        admin.getEmployee().setOffice(office);
        entityManager.persist(admin);
 
    }
View Full Code Here

Examples of aim.domain.agent.Office

        final Account firstAgent = new Account(new Employee(firstAgentId, "Иванов", "Иван"));
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        firstAgent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(firstAgent);
        final Office office = new Office("Kiev");
        userDAO.persist(office);
        firstAgent.getEmployee().setOffice(office);

        final Passport secondAgentId = new Passport("АВ", "468454");
        final Account secondAgent = new Account(new Employee(secondAgentId, "Иванов", "Иван"));
View Full Code Here

Examples of at.compax.bbsng.dataimport.app.model.Office

  public void setEducationStart(final Contract obj, final Calendar educationStart) {
    obj.setEducationStart(educationStart);
  }

  public void setOffice(final Contract obj, final int index) {
    final Office office = officeExample.getRandomOffice();
    obj.setOfficeId(office.getId());
  }
View Full Code Here

Examples of com.impetus.client.oraclenosql.entities.Office

    @Test
    public void executeCRUDTest()
    {

        // Insert records
        persistPerson("1", "person1", 10, new Office(1, "Company1", "Location 1"));
        persistPerson("2", "person2", 20, new Office(2, "Company2", "Location 2"));
        persistPerson("3", "person3", 30, new Office(3, "Company3", "Location 3"));
        persistPerson("4", "person4", 40, new Office(4, "Company4", "Location 4"));

        // Find Records
        clearEm();
        PersonEmbeddedKVStore p11 = findById("1");
        assertNotNull(p11);
View Full Code Here

Examples of com.thinkgem.jeesite.modules.sys.entity.Office

  @ResponseBody
  @RequestMapping(value = "users")
  public List<Map<String, Object>> users(String officeId, HttpServletResponse response) {
    response.setContentType("application/json; charset=UTF-8");
    List<Map<String, Object>> mapList = Lists.newArrayList();
    Office office = officeService.get(officeId);
    List<User> userList = office.getUserList();
    for (User user : userList) {
      Map<String, Object> map = Maps.newHashMap();
      map.put("id", user.getId());
      map.put("pId", 0);
      map.put("name", user.getName());
View Full Code Here

Examples of de.forsthaus.backend.model.Office

   * Event is forwarded in the corresponding listbox.
   */
  public void onDoubleClickedOfficeItem(Event event) {
    // logger.debug(event.toString());

    Office anOffice = getSelectedOffice();

    if (anOffice != null) {
      setSelectedOffice(anOffice);
      setOffice(anOffice);

View Full Code Here

Examples of de.forsthaus.backend.model.Office

   */
  public void onSelect$listBoxOffice(Event event) {
    // logger.debug(event.toString());

    // selectedOffice is filled by annotated databinding mechanism
    Office anOffice = getSelectedOffice();

    if (anOffice == null) {
      return;
    }

    // check first, if the tabs are created
    if (getOfficeMainCtrl().getOfficeDetailCtrl() == null) {
      Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
      // if we work with spring beanCreation than we must check a little
      // bit deeper, because the Controller are preCreated ?
    } else if (getOfficeMainCtrl().getOfficeDetailCtrl().getBinder() == null) {
      Events.sendEvent(new Event("onSelect", getOfficeMainCtrl().tabOfficeDetail, null));
    }

    // INIT ALL RELATED Queries/OBJECTS/LISTS NEW
    getOfficeMainCtrl().getOfficeDetailCtrl().setSelectedOffice(anOffice);
    getOfficeMainCtrl().getOfficeDetailCtrl().setOffice(anOffice);

    // store the selected bean values as current
    getOfficeMainCtrl().doStoreInitValues();

    // show the objects data in the statusBar
    String str = Labels.getLabel("common.Office") + ": " + anOffice.getFilBezeichnung();
    EventQueues.lookup("selectedObjectEventQueue", EventQueues.DESKTOP, true).publish(new Event("onChangeSelectedObject", null, str));

  }
View Full Code Here

Examples of de.forsthaus.backend.model.Office

@Repository
public class OfficeDAOImpl extends BasisDAO<Office> implements OfficeDAO {

  @Override
  public Office getNewOffice() {
    return new Office();
  }
View Full Code Here

Examples of de.forsthaus.backend.model.Office

    return getHibernateTemplate().loadAll(Office.class);
  }

  @Override
  public void deleteOfficeById(long id) {
    Office office = getOfficeById(id);
    if (office != null) {
      delete(office);
    }
  }
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.