Package org.apache.openmeetings.persistence.beans.basic

Examples of org.apache.openmeetings.persistence.beans.basic.Server


  @Override
  protected void onDeleteSubmit(AjaxRequestTarget target, Form<?> form) {
    Application.getBean(ServerDao.class).delete(getModelObject(),
        WebSession.getUserId());
    this.setModelObject(new Server());
    target.add(listContainer);
    target.add(this);
    target.appendJavaScript("omServerPanelInit();");
  }
View Full Code Here


        new SearchableDataProvider<Server>(ServerDao.class)) {
      private static final long serialVersionUID = 8715559628755439596L;

      @Override
      protected void populateItem(final Item<Server> item) {
        final Server Server = item.getModelObject();
        item.add(new Label("id", "" + Server.getId()));
        item.add(new Label("name", "" + Server.getName()));
        item.add(new Label("address", "" + Server.getAddress()));
        item.add(new AjaxEventBehavior("onclick") {
          private static final long serialVersionUID = -8069413566800571061L;

          protected void onEvent(AjaxRequestTarget target) {
            form.setModelObject(Server);
            form.hideNewRecord();
            target.add(form);
            target.appendJavaScript("omServerPanelInit();");
          }
        });
        item.add(AttributeModifier.replace("class", (item.getIndex() % 2 == 1) ? "even" : "odd"));
      }
    };
   
    final WebMarkupContainer listContainer = new WebMarkupContainer("listContainer");
    add(listContainer.add(dataView).setOutputMarkupId(true));
    DataViewContainer<Server> container = new DataViewContainer<Server>(listContainer, dataView);
    container.setLinks(new OrderByBorder<Server>("orderById", "id", container)
        , new OrderByBorder<Server>("orderByName", "name", container)
        , new OrderByBorder<Server>("orderByAddress", "address", container));
    add(container.orderLinks);
    add(new PagedEntityListPanel("navigator", dataView) {
      private static final long serialVersionUID = 5097048616003411362L;

      @Override
      protected void onEvent(AjaxRequestTarget target) {
        target.add(listContainer);
      }
    });
   
    form = new ServerForm("form", listContainer, new Server());
    form.showNewRecord();
        add(form);
   
  }
View Full Code Here

          return true;

        } else {

          Server server = serverDao.get(serverId);
          Client rcl = sessionManager.getClientByStreamId(
              streamid, server);
          slaveHTTPConnectionManager.kickSlaveUser(server, rcl.getPublicSID());
         
          // true means only the REST call is performed, it is no
View Full Code Here

    Long user_level = userManager.getUserLevelByID(users_id);
    if (authLevelUtil.checkUserLevel(user_level)) {
      List<Server> serverList = serverDao.getActiveServers();

      long minimum = -1;
      Server result = null;
      HashMap<Server, List<Long>> activeRoomsMap = new HashMap<Server, List<Long>>();
      for (Server server : serverList) {
        List<Long> roomIds = sessionManager.getActiveRoomIdsByServer(server);
        if (roomIds.contains(roomId)) {
          // if the room is already opened on a server, redirect the user to that one,
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.persistence.beans.basic.Server

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.