Class AbstractSecurityPolicy

    • Constructor Detail

      • AbstractSecurityPolicy

        public AbstractSecurityPolicy()
    • Method Detail

      • isRestrictingPermission

        public boolean isRestrictingPermission​(String permission)
        Description copied from interface: SecurityPolicy
        Checks if this policy is restricting the given permission.

        Queries check the BROWSE permission.

        Specified by:
        isRestrictingPermission in interface SecurityPolicy
        Parameters:
        permission - the permission to check for
        Returns:
        true if the policy restricts the permission
      • isExpressibleInQuery

        public boolean isExpressibleInQuery​(String repositoryName)
        Description copied from interface: SecurityPolicy
        Checks if this policy can be expressed in a query for given repository.

        If not, then any query made will have to be post-filtered.

        Specified by:
        isExpressibleInQuery in interface SecurityPolicy
        Parameters:
        repositoryName - the target repository name.
        Returns:
        true if the policy can be expressed in a query
      • isExpressibleInQuery

        public boolean isExpressibleInQuery​(String repositoryName,
                                            String queryLanguage)
        Description copied from interface: SecurityPolicy
        Checks if this policy can be expressed in a string-based query for given repository.

        If not, then any query made will have to be post-filtered, if possible, otherwise denied.

        Specified by:
        isExpressibleInQuery in interface SecurityPolicy
        Parameters:
        repositoryName - the target repository name.
        Returns:
        true if the policy can be expressed in a string-based query