Lawrence
2020-12-16 44d216100b45c3337c593ee82ee68e7e0f35d24b
src/main/java/com/genersoft/iot/vmp/gb28181/event/EventPublisher.java
@@ -1,5 +1,8 @@
package com.genersoft.iot.vmp.gb28181.event;
import com.genersoft.iot.vmp.gb28181.bean.ParentPlatform;
import com.genersoft.iot.vmp.gb28181.event.platformNotRegister.PlatformNotRegisterEvent;
import com.genersoft.iot.vmp.vmanager.platform.PlatformController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;
@@ -9,7 +12,7 @@
/**    
 * @Description:Event事件通知推送器,支持推送在线事件、离线事件
 * @author: songww
 * @author: swwheihei
 * @date:   2020年5月6日 上午11:30:50     
 */
@Component
@@ -31,4 +34,14 @@
      outEvent.setFrom(from);
        applicationEventPublisher.publishEvent(outEvent);
    }
   /**
    * 平台未注册事件
    * @param platformGbId
    */
   public void platformNotRegisterEventPublish(String platformGbId){
      PlatformNotRegisterEvent platformNotRegisterEvent = new PlatformNotRegisterEvent(this);
      platformNotRegisterEvent.setPlatformGbID(platformGbId);
        applicationEventPublisher.publishEvent(platformNotRegisterEvent);
    }
}