Package org.red5.annotations

Examples of org.red5.annotations.DeclareProtected.permission()


        log.debug("Method {} is declared private.", method);
        throw new NotAllowedException("Access denied, method is private");
      }
      final DeclareProtected annotation = method.getAnnotation(DeclareProtected.class);
      if (annotation != null) {
        if (!conn.getClient().hasPermission(conn, annotation.permission())) {
          // client doesn't have required permission
          log.debug("Client {} doesn't have required permission {} to call {}", new Object[] { conn.getClient(), annotation.permission(), method });
          throw new NotAllowedException("Access denied, method is protected");
        }
      }
View Full Code Here


      }
      final DeclareProtected annotation = method.getAnnotation(DeclareProtected.class);
      if (annotation != null) {
        if (!conn.getClient().hasPermission(conn, annotation.permission())) {
          // client doesn't have required permission
          log.debug("Client {} doesn't have required permission {} to call {}", new Object[] { conn.getClient(), annotation.permission(), method });
          throw new NotAllowedException("Access denied, method is protected");
        }
      }
      log.debug("Invoking method: {}", method.toString());
      if (method.getReturnType().equals(Void.TYPE)) {
View Full Code Here

        throw new NotAllowedException("you are not allowed to execute this method");
      }
     
      final DeclareProtected annotation = method.getAnnotation(DeclareProtected.class);
      if (annotation != null) {
        if (!conn.getClient().hasPermission(conn, annotation.permission())) {
          // Client doesn't have required permission
          if (log.isDebugEnabled()) {
            log.debug("Client " + conn.getClient() +
                " doesn't have required permission " + annotation.permission() +
                " to call " + method);
View Full Code Here

      if (annotation != null) {
        if (!conn.getClient().hasPermission(conn, annotation.permission())) {
          // Client doesn't have required permission
          if (log.isDebugEnabled()) {
            log.debug("Client " + conn.getClient() +
                " doesn't have required permission " + annotation.permission() +
                " to call " + method);
          }
          throw new NotAllowedException("you are not allowed to execute this method");
        }
      }
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.