Class ContextAccessController


  • public abstract class ContextAccessController
    extends Object
    • Constructor Detail

      • ContextAccessController

        public ContextAccessController()
    • Method Detail

      • isAccessAllowed

        public abstract boolean isAccessAllowed​(String key,
                                                AccessControlledMap.ContextAccessLevel type)
        Checks whether access of type type is allowed on key based on the user associated to the current thread.
        Parameters:
        key - the key to check access for
        type - the type of access required
        Returns:
        true if access is allowed, false otherwise
      • isEveryoneAllowedToRead

        public abstract boolean isEveryoneAllowedToRead​(String key)
        Parameters:
        key - The name of a context
        Returns:
        true if everyone can read the context named by key