Examples of ClientModel


Examples of netWorking.ClientModel

   */
  public ClientView(MasterView m, Object o) {
    super(m);
    connectivity = true;
    if (!(o instanceof ClientModel))
      cm = new ClientModel(this, m, o);
    else {
      cm = (ClientModel) o;
      cm.setClientView(this);
    }
    buildMain();
View Full Code Here

Examples of netWorking.ClientModel

      break;

    case NETWORKTANKVIEW:
      previousPane = currentPane;
      if (o instanceof ClientModel) {
        ClientModel c = (ClientModel) o;
        currentPane = new NetworkTankView(this, 1, c);
      }
      if (o instanceof HostModel) {
        HostModel c = (HostModel) o;
        currentPane = new NetworkTankView(this, 0, c);
      }

      System.out.println("changeview with o:" + o);
      body.removeAll();
      body.add(currentPane, "NETWORKTANKVIEW");
      CardLayout c1 = (CardLayout) body.getLayout();
      c1.show(body, "NETWORKTANKVIEW");
      for (Component co : body.getComponents()) {
        if (co == currentPane) {
          currentPane.requestFocusInWindow();
        }
      }
      this.setBackground(Color.black);
      this.setSize(1180, 750);
      this.setLocationRelativeTo(null);
      // this.setExtendedState(this.MAXIMIZED_BOTH);

      break;

    case LAN:
      this.setBackground(Color.white);
      previousPane = currentPane;
      currentPane = new LanView(this);
      body.removeAll();
      body.add(currentPane, "LAN");
      this.setLocationRelativeTo(null);
      this.setSize(650, 400);
      break;

    case PREVIOUS:

      JPanel temp = previousPane;
      previousPane = currentPane;
      currentPane = temp;
      if (currentPane instanceof LanView)
        changeView(Views.LAN, null);
      if (currentPane instanceof TitleView)
        changeView(Views.TITLE, null);
      if (currentPane instanceof TankView)
        changeView(Views.TANKVIEW, null);

      body.removeAll();
      body.add(currentPane, v.name());
      if (currentPane instanceof TitleView) {
        this.setLocation(50, 50);
        this.setSize(640, 600);
      }
      repaint();
      break;
    case TANKVIEW:
      if (currentLevel == 1) {
        currentPane = new TankView(this, new Level1());
      }
      if (currentLevel == 2) {
        currentPane = new TankView(this, new Level2());
      }
      if (currentLevel == 3) {
        currentPane = new TankView(this, new Level3());
      }
      if (currentLevel == 4) {
        currentPane = new TankView(this, new Level4());
      }
      if (currentLevel == 5) {
        currentPane = new TankView(this, new Level5());
      }

      body.add(currentPane, "TANKVIEW");
      CardLayout c = (CardLayout) body.getLayout();
      c.show(body, "TANKVIEW");
      for (Component co : body.getComponents()) {
        if (co == currentPane) {
          currentPane.requestFocusInWindow();
        }
      }
View Full Code Here

Examples of org.apache.chemistry.opencmis.workbench.model.ClientModel

    public ClientFrame() {
        super();
        ClientHelper.installKeyBindings();

        model = new ClientModel();
        createGUI();
        showLoginForm();
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.workbench.model.ClientModel

    private ClientModel model;

    public ClientFrame() {
        super();

        model = new ClientModel();
        createGUI();
        showLoginForm();
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.workbench.model.ClientModel

    public ClientFrame() {
        super();
        ClientHelper.installKeyBindings();

        model = new ClientModel();
        createGUI();
        showLoginForm();
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.workbench.model.ClientModel

    private final ClientModel model;

    public ClientFrame() {
        super();

        model = new ClientModel();
        createGUI();
        showLoginForm();
    }
View Full Code Here

Examples of org.keycloak.models.ClientModel

        }

        public Set<String> getApplications() {
            Set<String> apps = new HashSet<String>();
            for (ClientSessionModel clientSession : session.getClientSessions()) {
                ClientModel client = clientSession.getClient();
                if (client instanceof ApplicationModel) apps.add(client.getClientId());
            }
            return apps;
        }
View Full Code Here

Examples of org.keycloak.models.ClientModel

            return apps;
        }
        public List<String> getClients() {
            List<String> apps = new ArrayList<String>();
            for (ClientSessionModel clientSession : session.getClientSessions()) {
                ClientModel client = clientSession.getClient();
                if (client instanceof OAuthClientModel) apps.add(client.getClientId());
            }
            return apps;
        }
View Full Code Here

Examples of org.keycloak.models.ClientModel

        return Response.noContent().build();
    }

    protected ApplicationModel authorizeApplication(String authorizationHeader, MultivaluedMap<String, String> formData) {
        ClientModel client = OpenIDConnectService.authorizeClientBase(authorizationHeader, formData, event, realm);

        if (client.isPublicClient()) {
            Map<String, String> error = new HashMap<String, String>();
            error.put(OAuth2Constants.ERROR, "invalid_client");
            error.put(OAuth2Constants.ERROR_DESCRIPTION, "Public clients not allowed");
            event.error(Errors.INVALID_CLIENT);
            throw new BadRequestException("Public clients not allowed", javax.ws.rs.core.Response.status(javax.ws.rs.core.Response.Status.BAD_REQUEST).entity(error).type("application/json").build());
View Full Code Here

Examples of org.keycloak.models.ClientModel

    }

    @Test
    public void testRemoveUserSessionsByExpired() {
        session.sessions().getUserSessions(realm, session.users().getUserByUsername("user1", realm));
        ClientModel client = realm.findClient("test-app");

        try {
            Set<String> expired = new HashSet<String>();
            Set<String> expiredClientSessions = new HashSet<String>();
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.