Examples of Passport


Examples of aim.domain.agent.Passport

        serie32.setPolicyType(policyType3);
        serie33.setPolicyType(policyType3);
        entityManager.persist(policyType3);


        final Account admin = new Account(new Employee(new Passport("АВ", "468454"), "Иванов", "Иван"));
        final User aimSecurityAdimn = new User("admin", "a4a88c0872bf652bb9ed803ece5fd6e82354838a9bf59ab4babb1dab322154e1");
        Set<UserRoles> userRoles = new TreeSet<UserRoles>();
        userRoles.add(UserRoles.ROLE_USER);
        userRoles.add(UserRoles.ROLE_ADMIN);
        admin.setAssociatedRoles(userRoles);
View Full Code Here

Examples of aim.domain.agent.Passport

    /**
     * {@inheritDoc }
     */
    @Override
    public Employee getAgentByID(String serie, String number) {
        return agentDAO.getAgentByID(new Passport(serie, number));
    }
View Full Code Here

Examples of aim.domain.agent.Passport

    @Test
    public void testGetAllAgents() {
        final int agentCount = 2;

        final Account firstAgent = new Account(new Employee(new Passport("АВ", "468454"), "Иванов", "Иван"));
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        firstAgent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(firstAgent);

        final Account secondAgent = new Account(new Employee(new Passport("АП", "468454"), "Иванов", "Иван"));
        final Set<UserRoles> secondAgentUserRoles = new TreeSet<UserRoles>();
        secondAgentUserRoles.add(UserRoles.ROLE_AGENT);
        secondAgent.setAssociatedRoles(secondAgentUserRoles);
        userDAO.persist(secondAgent);
View Full Code Here

Examples of aim.domain.agent.Passport

        assertEquals(agentCount, agents.size());
    }

    @Test
    public void testGetAgentPolicy() {
        final Passport agentId = new Passport("АВ", "468454");
        final Employee employee = new Employee(agentId, "Иванов", "Иван");
        final Account agent = new Account(employee);
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        agent.setAssociatedRoles(firstAgentUserRoles);
View Full Code Here

Examples of aim.domain.agent.Passport

        assertEquals(policyCount, policies.size());
    }

    @Test
    public void testGetAgentById() {
        final Passport agentId = new Passport("АВ", "468454");
        final Account agent = new Account(new Employee(agentId, "Иванов", "Иван"));
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        agent.setAssociatedRoles(firstAgentUserRoles);
        userDAO.persist(agent);
View Full Code Here

Examples of aim.domain.agent.Passport

    @Test
    @Ignore
    public void testFindByOffice() {
        final int agentFromKievCount = 1;
        final Passport firstAgentId = new Passport("АВ", "468454");
        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);
View Full Code Here

Examples of aim.domain.agent.Passport

    }


    @Test
    public void testGetAgentsPolicyWithinDate() {
        final Passport agentId = new Passport("АВ", "100500");
        final Employee employee = new Employee(agentId, "Иванов", "Иван");
        final Account agent = new Account(employee);
        final Set<UserRoles> firstAgentUserRoles = new TreeSet<UserRoles>();
        firstAgentUserRoles.add(UserRoles.ROLE_AGENT);
        agent.setAssociatedRoles(firstAgentUserRoles);
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

    addColumn(i18n.tr("HBCI-Medium"),"passport_class", new Formatter() {
      public String format(Object o)
      {
        if (o == null || !(o instanceof String))
          return null;
        Passport p;
        try
        {
          p = PassportRegistry.findByClass((String)o);
          return p.getName();
        }
        catch (Exception e)
        {
          Logger.error("error while loading hbci passport for konto",e);
          return i18n.tr("Fehler beim Ermitteln des HBCI-Mediums");
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

  public void handleAction(Object context) throws ApplicationException
  {
    if (context == null || !(context instanceof Passport))
      throw new ApplicationException(i18n.tr("Kein Sicherheitsmedium ausgew�hlt oder keines verf�gbar"));

    final Passport p = (Passport) context;

    GUI.startSync(new Runnable()
    {
      public void run() {
        try {

          GUI.getStatusBar().startProgress();
          GUI.getStatusBar().setSuccessText(i18n.tr("Medium wird ausgelesen..."));
          new KontoMerge().handleAction(p.getHandle().getKonten());

          // Konto-Liste neu laden
          GUI.startView(KontoList.class,null);
        }
        catch (OperationCanceledException oce)
View Full Code Here

Examples of de.willuhn.jameica.hbci.passport.Passport

        getKonto().setBackendClass(backend != null ? backend.getClass().getName() : null);
       
        BeanService service = Application.getBootLoader().getBootable(BeanService.class);
        final SynchronizeBackend hbci = service.get(HBCISynchronizeBackend.class);

        Passport p = (Passport) getPassportAuswahl().getValue();
        if (backend != null && backend.equals(hbci)) // Passport gibts nur bei Scripting
        {
          if (p == null)
            throw new ApplicationException(i18n.tr("Bitte w�hlen Sie ein FinTS-Sicherheitsverfahren aus"));
          getKonto().setPassportClass(p.getClass().getName());
        }
        else
        {
          getKonto().setPassportClass(null);
        }
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.