Examples of ISharedObjectService


Examples of org.red5.server.api.so.ISharedObjectService

   *            Whether SharedObject instance should be persistent or not
   * @return          Shared object instance with name given
   */
  public ISharedObject getSharedObject(IScope scope, String name,
      boolean persistent) {
    ISharedObjectService service = (ISharedObjectService) getScopeService(
        scope, ISharedObjectService.class, SharedObjectService.class,
        false);
    return service.getSharedObject(scope, name, persistent);
  }
View Full Code Here

Examples of org.red5.server.api.so.ISharedObjectService

   *
   * @param scope
   *            Scope that SO belong to
   */
  public Set<String> getSharedObjectNames(IScope scope) {
    ISharedObjectService service = (ISharedObjectService) getScopeService(
        scope, ISharedObjectService.class, SharedObjectService.class,
        false);
    return service.getSharedObjectNames(scope);
  }
View Full Code Here

Examples of org.red5.server.api.so.ISharedObjectService

   *            Scope that SO belong to
   * @param name
   *            Name of SharedObject
   */
  public boolean hasSharedObject(IScope scope, String name) {
    ISharedObjectService service = (ISharedObjectService) getScopeService(
        scope, ISharedObjectService.class, SharedObjectService.class,
        false);
    return service.hasSharedObject(scope, name);
  }
View Full Code Here

Examples of org.red5.server.api.so.ISharedObjectService

    return duration;
  }

  /** {@inheritDoc} */
    public boolean clearSharedObjects(IScope scope, String name) {
    ISharedObjectService service = (ISharedObjectService) getScopeService(
        scope, ISharedObjectService.class, SharedObjectService.class,
        false);

        return service.clearSharedObjects(scope, name);
    }
View Full Code Here

Examples of org.red5.server.api.so.ISharedObjectService

      // The scope already has been deleted.
      sendSOCreationFailed(conn, name, persistent);
      return;
    }

    ISharedObjectService sharedObjectService = (ISharedObjectService) getScopeService(
        scope, ISharedObjectService.class, SharedObjectService.class,
        false);
    if (!sharedObjectService.hasSharedObject(scope, name)) {
      ISharedObjectSecurityService security = (ISharedObjectSecurityService) ScopeUtils
          .getScopeService(scope, ISharedObjectSecurityService.class);
      if (security != null) {
        // Check handlers to see if creation is allowed
        for (ISharedObjectSecurity handler : security
            .getSharedObjectSecurity()) {
          if (!handler.isCreationAllowed(scope, name, persistent)) {
            sendSOCreationFailed(conn, name, persistent);
            return;
          }
        }
      }

      if (!sharedObjectService
          .createSharedObject(scope, name, persistent)) {
        sendSOCreationFailed(conn, name, persistent);
        return;
      }
    }
    so = sharedObjectService.getSharedObject(scope, name);
    if (so.isPersistentObject() != persistent) {
      SharedObjectMessage msg = new SharedObjectMessage(name, 0,
          persistent);
      msg.addEvent(new SharedObjectEvent(
          ISharedObjectEvent.Type.CLIENT_STATUS, "error",
View Full Code Here

Examples of org.red5.server.api.so.ISharedObjectService

   
    return null;
  }
 
  private ISharedObject getSharedObject(IScope scope, String name) {
    ISharedObjectService service = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, SharedObjectService.class, false);
    return service.getSharedObject(scope, name);
  }
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.