Examples of IScope


Examples of org.red5.server.api.IScope

      }
     
     
      String publicSID = serverSharingSessionBean.getPublicSID();
     
      IScope globalScope = getContext().getGlobalScope();
      IScope webAppKeyScope = globalScope.getScope(ScopeApplicationAdapter.webAppRootKey);
     
      //log.debug("webAppKeyScope "+webAppKeyScope);
     
      //Get Room Id to send it to the correct Scope
      RoomClient currentClient = this.clientListManager.getClientByPublicSID(publicSID);
     
      if (currentClient == null) {
        return;
        //throw new Exception("Could not Find RoomClient on List");
      }
      //default Scope Name
      String scopeName = "hibernate";
      if (currentClient.getRoom_id() != null) {
        scopeName = currentClient.getRoom_id().toString();
      }
     
      IScope scopeHibernate = webAppKeyScope.getScope(scopeName);
     
      //log.debug("scopeHibernate "+scopeHibernate);
     
      if (scopeHibernate!=null){
        //Notify the clients of the same scope (room) with user_id
View Full Code Here

Examples of org.red5.server.api.IScope

  }

  public synchronized void sendMessageWithClientByPublicSID(Object message, String publicSID) {
    try {
      //ApplicationContext appCtx = getContext().getApplicationContext();
      IScope globalScope = getContext().getGlobalScope();
     
      IScope webAppKeyScope = globalScope.getScope(ScopeApplicationAdapter.webAppRootKey);
     
      //log.debug("webAppKeyScope "+webAppKeyScope);
     
      //Get Room Id to send it to the correct Scope
      RoomClient currentClient = this.clientListManager.getClientByPublicSID(publicSID);
     
      if (currentClient == null) {
        throw new Exception("Could not Find RoomClient on List publicSID: "+publicSID);
      }
      //default Scope Name
      String scopeName = "hibernate";
      if (currentClient.getRoom_id() != null) {
        scopeName = currentClient.getRoom_id().toString();
      }
     
      IScope scopeHibernate = webAppKeyScope.getScope(scopeName);
     
      //log.debug("scopeHibernate "+scopeHibernate);
     
      if (scopeHibernate!=null){
        //Notify the clients of the same scope (room) with user_id
View Full Code Here

Examples of org.red5.server.api.IScope

 
  public synchronized void sendMessageWithClientByPublicSIDOrUser(Object message, String publicSID, Long user_id) {
    try {
      //ApplicationContext appCtx = getContext().getApplicationContext();
     
      IScope globalScope = getContext().getGlobalScope();
     
      IScope webAppKeyScope = globalScope.getScope(ScopeApplicationAdapter.webAppRootKey);
     
      //log.debug("webAppKeyScope "+webAppKeyScope);
     
      //Get Room Id to send it to the correct Scope
      RoomClient currentClient = this.clientListManager.getClientByPublicSID(publicSID);
     
      if (currentClient == null) {
        currentClient = this.clientListManager.getClientByUserId(user_id);
      }
     
      Collection<Set<IConnection>> conCollection = null;
     
      if (currentClient == null) {
        //Must be from a previous session, search for user in current scope
        IConnection current = Red5.getConnectionLocal();
        //Notify all Clients of that Scope (Room)
        conCollection = current.getScope().getConnections();
      else {
        //default Scope Name
        String scopeName = "hibernate";
        if (currentClient.getRoom_id() != null) {
          scopeName = currentClient.getRoom_id().toString();
        }
       
        IScope scopeHibernate = webAppKeyScope.getScope(scopeName);
       
        if (scopeHibernate!=null){
          conCollection = webAppKeyScope.getScope(scopeName).getConnections();
        }
      }
View Full Code Here

Examples of org.red5.server.api.scope.IScope

    HashMap<String, Client> roomClientList = new HashMap<String, Client>();
    try {

      log.debug("sendMessageByRoomAndDomain " + room_id);

      IScope globalScope = getContext().getGlobalScope();
      IScope webAppKeyScope = globalScope
          .getScope(OpenmeetingsVariables.webAppRootKey);

      log.debug("webAppKeyScope " + webAppKeyScope);

      IScope scopeHibernate = webAppKeyScope.getScope(room_id.toString());

      if (scopeHibernate != null) {

        for (Set<IConnection> conset : webAppKeyScope.getScope(room_id.toString()).getConnections()) {
        for (IConnection conn : conset) {
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.