Examples of ISharedObjectSecurityService


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

   * Return security handlers for this shared object or <code>null</code> if none are found.
   *
   * @return set of security handlers
   */
  private Set<ISharedObjectSecurity> getSecurityHandlers() {
    ISharedObjectSecurityService security = (ISharedObjectSecurityService) ScopeUtils.getScopeService(getParent(), ISharedObjectSecurityService.class);
    if (security == null) {
      return null;
    }
    return security.getSharedObjectSecurity();
  }
View Full Code Here

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

      boolean persistent = message.isPersistent();
      // shared object service
      ISharedObjectService sharedObjectService = (ISharedObjectService) ScopeUtils.getScopeService(scope, ISharedObjectService.class, SharedObjectService.class, false);
      if (!sharedObjectService.hasSharedObject(scope, name)) {
        log.debug("Shared object service doesnt have requested object, creation will be attempted");
        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)) {
              log.debug("Shared object create failed, creation is not allowed");
              sendSOCreationFailed(conn, message);
              return;
            }
View Full Code Here

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

    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;
          }
View Full Code Here

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

     * Return security handlers for this shared object or <code>null</code> if none are found.
     *
     * @return
     */
    private Set<ISharedObjectSecurity> getSecurityHandlers() {
      ISharedObjectSecurityService security = (ISharedObjectSecurityService) ScopeUtils.getScopeService(getParent(), ISharedObjectSecurityService.class);
      if (security == null)
        return null;
     
      return security.getSharedObjectSecurity();
    }
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.