Examples of IScope


Examples of org.eclipse.xtext.scoping.IScope

  // message Contact {
  //   optional com.google.test.Type type = 1;
  // }
  @Test public void should_provide_imported_Types_with_equal_package() {
    MessageField field = xtext.find("type", " =", MessageField.class);
    IScope scope = scopeProvider.scope_ComplexTypeLink_target(typeOf(field), reference);
    assertThat(descriptionsIn(scope), containAll("Type", "proto.Type", "google.proto.Type", "com.google.proto.Type",
                                                 ".com.google.proto.Type",
                                                 "Address", "proto.Address", "google.proto.Address",
                                                 "com.google.proto.Address", ".com.google.proto.Address",
                                                 "Contact", "proto.Contact", "google.proto.Contact",
View Full Code Here

Examples of org.eclipse.xtext.scoping.IScope

  // message Contact {
  //   optional test.proto.Type type = 1;
  // }
  @Test public void should_provide_public_imported_Types() {
    MessageField field = xtext.find("type", " =", MessageField.class);
    IScope scope = scopeProvider.scope_ComplexTypeLink_target(typeOf(field), reference);
    assertThat(descriptionsIn(scope), containAll("test.proto.Type", ".test.proto.Type",
                                                 "test.proto.Address", ".test.proto.Address",
                                                 "Contact", "proto.Contact", "google.proto.Contact",
                                                 "com.google.proto.Contact", ".com.google.proto.Contact"));
  }
View Full Code Here

Examples of org.red5.server.api.IScope

          }
          String scopeName = "hibernate";
          if (rcl.getRoom_id() != null) {
            scopeName = rcl.getRoom_id().toString();
          }
          IScope currentScope = ScopeApplicationAdapter.getInstance()
              .getRoomScope(scopeName);
          ScopeApplicationAdapter.getInstance().roomLeaveByScope(rcl,
              currentScope);

          HashMap<Integer, String> messageObj = new HashMap<Integer, String>();
View Full Code Here

Examples of org.red5.server.api.IScope

        String scopeName = "hibernate";
        if (rcl.getRoom_id() != null) {
          scopeName = rcl.getRoom_id().toString();
        }
        IScope currentScope = ScopeApplicationAdapter.getInstance()
            .getRoomScope(scopeName);
        ScopeApplicationAdapter.getInstance().roomLeaveByScope(rcl,
            currentScope);

        HashMap<Integer, String> messageObj = new HashMap<Integer, String>();
View Full Code Here

Examples of org.red5.server.api.IScope

         }
         String scopeName = "hibernate";
         if (rcl.getRoom_id() != null) {
           scopeName = rcl.getRoom_id().toString();
         }
         IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         this.scopeApplicationAdapter.roomLeaveByScope(rcl, currentScope);
        
        
         HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
         messageObj.put(0, "kick");
View Full Code Here

Examples of org.red5.server.api.IScope

          }
          String scopeName = "hibernate";
          if (rcl.getRoom_id() != null) {
            scopeName = rcl.getRoom_id().toString();
          }
          IScope currentScope = this.scopeApplicationAdapter.getRoomScope(scopeName);
         
          HashMap<Integer,String> messageObj = new HashMap<Integer,String>();
          messageObj.put(0, "kick");
         
          this.scopeApplicationAdapter.sendMessageById(messageObj, rcl.getStreamid(), currentScope);
View Full Code Here

Examples of org.red5.server.api.IScope

    HashMap <String,RoomClient> roomClientList = new HashMap<String,RoomClient>();
    try {
     
      log.debug("sendMessageByRoomAndDomain "+room_id);
     
      IScope globalScope = getContext().getGlobalScope();
     
      IScope webAppKeyScope = globalScope.getScope(ScopeApplicationAdapter.webAppRootKey);
     
      log.debug("webAppKeyScope "+webAppKeyScope);
     
      IScope scopeHibernate = webAppKeyScope.getScope(room_id.toString());
      //IScope scopeHibernate = webAppKeyScope.getScope("hibernate");
     
     
      if (scopeHibernate!=null){
       
View Full Code Here

Examples of org.red5.server.api.IScope

  }
 
  public synchronized IScope getRoomScope(String room) {
    try {
     
      IScope globalScope = getContext().getGlobalScope();
      IScope webAppKeyScope = globalScope.getScope(ScopeApplicationAdapter.webAppRootKey);
     
      String scopeName = "hibernate";
      //If set then its a NON default Scope
      if (room.length() != 0) {
        scopeName = room;
      }
     
      IScope scopeHibernate = webAppKeyScope.getScope(scopeName);
     
      return scopeHibernate;
    } catch (Exception err) {
      log.error("[getRoomScope]",err);
    }
View Full Code Here

Examples of org.red5.server.api.IScope

      screenSharingCursor.setX(cursorStatus.getX());
      screenSharingCursor.setY(cursorStatus.getY());
       
      String publicSID = cursorStatus.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 "+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

      screenSharingNewFrame.setH(serverFrameBean.getHeight());
      screenSharingNewFrame.setW(serverFrameBean.getWidth());
       
      String publicSID = serverFrameBean.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 "+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
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.