Examples of Exhibitor


Examples of com.gwcworld.core.bean.Exhibitor

    ModelAndView mav = new ModelAndView(Constants.EXHIBITORS_VIEW);
   
    int idExhibitor = WebUtil.parameter2int(request.getParameter("idExhibitor"));
    int idProject = (Integer)request.getSession().getAttribute(Constants.PROJECT_ID_FOR_EXHIBITOR_VIEW);
   
    Exhibitor exhibitor = exhibitorService.getById(idExhibitor);
    Project project = projectService.getById(idProject);
       
    if(exhibitor!=null && project!=null){
     
      List<Map[]> allMaps = mapService.getAllByProjectWithUniqueName(project, MAX_RESULT);
      List<Map> maps = new ArrayList<Map>();
      for (Map[] mapsArray : allMaps) {
        maps.add(mapsArray[0]);
      }
     
      List<Stand> stands = standService.getStandListByExhibitor(maps, exhibitor);
      List<com.gwcworld.core.bean.StandStatus> standStatusList = standStatusService.getAll();
     
      mav.addObject("exhibitor", exhibitor);
      mav.addObject("customerId", exhibitor.getCustomer().getId());
      mav.addObject("project", project);
      mav.addObject("stands", stands);
      mav.addObject("standStatusList", standStatusList);
    }
    else
View Full Code Here

Examples of com.gwcworld.core.bean.Exhibitor

      exhibitors = exhibitorService.getExhibitorsByCustomerAndName(project.getCustomer(), name);
   
    List<Exhibitor> exhibitorsList = new ArrayList<Exhibitor>();
    if(exhibitors!=null){
      for (Iterator<Exhibitor> iterator = exhibitors.iterator(); iterator.hasNext();) {
        Exhibitor exhibitor = iterator.next();
        exhibitor.setCustomer(null);
        exhibitorsList.add(exhibitor);
      }
    }
   
    response.addHeader(Constants.CORS_HEADER, "*");
 
View Full Code Here

Examples of com.gwcworld.core.bean.Exhibitor

    Customer customer = customerService.getCustomerByToken(token3rdParty);
   
    int result = 0;
   
    if(customer!=null){
      Exhibitor exhibitor = exhibitorService.getExhibitorsByCustomerAndExactName(customer, name);
      if(exhibitor==null)
        exhibitor = new Exhibitor();
     
      exhibitor.setId3rdParty(id3rdParty);
      exhibitor.setLastId3rdParty(lastId3rdParty);
      exhibitor.setName(name);
      exhibitor.setAddress(address);
      exhibitor.setTel(tel);
      exhibitor.setFax(fax);
      exhibitor.setEmail(email);
      exhibitor.setMqRequested(mqRequested);
      exhibitor.setChangeRequest(changeRequest);
      exhibitor.setCustomer(customer);
     
      exhibitorService.save(exhibitor);
     
      result = 1;
    }
View Full Code Here

Examples of com.gwcworld.core.bean.Exhibitor

      for (Map[] mapsArray : allMaps) {
        maps.add(mapsArray[0]);
      }
     
      for (Exhibitor exhibitor2 : exhibitors) {
        Exhibitor exhibitor = exhibitor2;
        //iddom, mq stand, alert variaz mq (s/n), nome padiglione, codice stand, link1, link 2, link 3
               
        int mq = 0;
        String mapName = " ";
        String standName = " ";
        String variazioneMq = "n";
        List<Stand> stands = standService.getStandListByExhibitor(maps, exhibitor);
        StringBuffer sbOffers = new StringBuffer();
        boolean addLink = true;
        int count = 1;
        for (Iterator<Stand> iterator = stands.iterator(); iterator.hasNext() && count <=MAX_OFFERS;) {
          Stand stand = iterator.next();
          if(addLink)
            sbOffers.append(stand.getLayer().getArea().getMap().getId()+"/"+stand.getId());
          else
            sbOffers.append(" ");
          sbOffers.append(TOKEN);
         
          if(stand.getStatus().getCode().equals(Constants.STAND_STATUS_CONFIRMED)){
            addLink = false;
            mq = stand.getSurfaceTot();
            mapName = stand.getLayer().getArea().getMap().getName();
            standName = stand.getCode();
            variazioneMq = exhibitor.getMqRequested()!=mq?"s":"n";
          }
          count++;
        }
       
        int padding = MAX_OFFERS-stands.size();
        for (int i = 0; i < padding; i++) {
          sbOffers.append(" "+TOKEN);
        }
       
        // ID domanda
        sb.append(exhibitor.getId3rdParty()+TOKEN);
        // Mq totali in caso di stand confermato
        sb.append(mq+TOKEN);
        // Variazione Mq richiesti da Mq totali per stand confermato (s/n)
        sb.append(variazioneMq+TOKEN);
        // Nome mappa per eventuale stand confermato
View Full Code Here

Examples of com.gwcworld.core.bean.Exhibitor

    ModelAndView mav = null;
   
    int customerId = WebUtil.parameter2int(request.getParameter("customerId"));
    int idExhibitor = WebUtil.parameter2int(request.getParameter("idExhibitor"));
   
    Exhibitor exhibitor = exhibitorService.getById(idExhibitor);
       
    if(exhibitor!=null){
      try{
        exhibitorService.delete(exhibitor);
      }
View Full Code Here

Examples of com.gwcworld.core.bean.Exhibitor

             
              Stand stand = new Stand();
              stand.setCode(standJson.getCode());
              stand.setDescription(standJson.getDescription());
              if(standJson.getExhibitorId()!=0){
                Exhibitor exhibitor = exhibitorService.getById(standJson.getExhibitorId());
                stand.setExhibitor(exhibitor);
              }
              stand.setLogo(standJson.getLogo());
              stand.setName(standJson.getName());
              stand.setOpenSides(standJson.getOpenSides());
View Full Code Here

Examples of com.netflix.exhibitor.core.Exhibitor

        {
            addRemoteAuth(builder, securityArguments.getRemoteAuthSpec());
        }

        builder.shutdownProc(makeShutdownProc(this));
        exhibitor = new Exhibitor(configProvider, null, backupProvider, builder.build());
        exhibitor.start();

        DefaultResourceConfig   application = JerseySupport.newApplicationConfig(new UIContext(exhibitor));
        ServletContainer        container = new ServletContainer(application);
        server = new Server(httpPort);
View Full Code Here

Examples of com.netflix.exhibitor.core.Exhibitor

    private final DefaultResourceConfig     config;

    public ExhibitorResourceConfig(@Context ServletContext context)
    {
        DefaultResourceConfig   localConfig;
        Exhibitor               exhibitor = (Exhibitor)context.getAttribute(ExhibitorServletContextListener.class.getName());
        if ( exhibitor != null )
        {
            log.info("Adding Exhibitor Jersey resources");
            localConfig = JerseySupport.newApplicationConfig(new UIContext(exhibitor));
        }
View Full Code Here

Examples of com.netflix.exhibitor.core.Exhibitor

        try
        {
            exhibitorCreator = new ExhibitorCreator(toArgsArray(argsBuilder));

            exhibitor = new Exhibitor(exhibitorCreator.getConfigProvider(), null, exhibitorCreator.getBackupProvider(), exhibitorCreator.getBuilder().build());
            exhibitor.start();

            event.getServletContext().setAttribute(ExhibitorServletContextListener.class.getName(), exhibitor);
        }
        catch ( MissingConfigurationTypeException exit )
View Full Code Here

Examples of com.netflix.exhibitor.core.Exhibitor

        ActivityQueue activityQueue = new ActivityQueue();

        final Queue<AssertionError> exceptions = Queues.newConcurrentLinkedQueue();

        Exhibitor mockExhibitor1 = Mockito.mock(Exhibitor.class, Mockito.RETURNS_MOCKS);
        Mockito.when(mockExhibitor1.getActivityQueue()).thenReturn(activityQueue);
        ConfigManager configManager1 = new TestConfigManager(mockExhibitor1, mockConfigProvider);
        Mockito.when(mockExhibitor1.getConfigManager()).thenReturn(configManager1);
        MonitorRunningInstance monitorRunningInstance1 = new MockMonitorRunningInstance(mockExhibitor1, providerConfig, "one", restartLatch, exceptions);
        Mockito.when(mockExhibitor1.getMonitorRunningInstance()).thenReturn(monitorRunningInstance1);
        Mockito.when(mockExhibitor1.getThisJVMHostname()).thenReturn("one");
        Mockito.when(mockExhibitor1.getProcessOperations()).thenReturn(mockOperations1);
        Mockito.when(mockExhibitor1.getControlPanelValues()).thenReturn(mockControlPanelValues);

        Exhibitor mockExhibitor2 = Mockito.mock(Exhibitor.class, Mockito.RETURNS_MOCKS);
        Mockito.when(mockExhibitor2.getActivityQueue()).thenReturn(activityQueue);
        ConfigManager configManager2 = new TestConfigManager(mockExhibitor2, mockConfigProvider);
        Mockito.when(mockExhibitor2.getConfigManager()).thenReturn(configManager2);
        MonitorRunningInstance monitorRunningInstance2 = new MockMonitorRunningInstance(mockExhibitor2, providerConfig, "two", restartLatch, exceptions);
        Mockito.when(mockExhibitor2.getMonitorRunningInstance()).thenReturn(monitorRunningInstance2);
        Mockito.when(mockExhibitor2.getThisJVMHostname()).thenReturn("two");
        Mockito.when(mockExhibitor2.getProcessOperations()).thenReturn(mockOperations2);
        Mockito.when(mockExhibitor2.getControlPanelValues()).thenReturn(mockControlPanelValues);

        Exhibitor mockExhibitor3 = Mockito.mock(Exhibitor.class, Mockito.RETURNS_MOCKS);
        Mockito.when(mockExhibitor3.getActivityQueue()).thenReturn(activityQueue);
        ConfigManager configManager3 = new TestConfigManager(mockExhibitor3, mockConfigProvider);
        Mockito.when(mockExhibitor3.getConfigManager()).thenReturn(configManager3);
        MonitorRunningInstance monitorRunningInstance3 = new MockMonitorRunningInstance(mockExhibitor3, providerConfig, "three", restartLatch, exceptions);
        Mockito.when(mockExhibitor3.getMonitorRunningInstance()).thenReturn(monitorRunningInstance3);
        Mockito.when(mockExhibitor3.getThisJVMHostname()).thenReturn("three");
        Mockito.when(mockExhibitor3.getProcessOperations()).thenReturn(mockOperations3);
        Mockito.when(mockExhibitor3.getControlPanelValues()).thenReturn(mockControlPanelValues);

        try
        {
            activityQueue.start();
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.