public static interface

PermissionManager.Criterion

com.atlassian.confluence.security.PermissionManager.Criterion

Class Overview

A criterion for whether an entity should be permitted or not

Summary

Public Methods
boolean test(List<?> alreadyChosenEntities, Object entity)
Determine whether a particular entity should be permitted or not.

Public Methods

public boolean test (List<?> alreadyChosenEntities, Object entity)

Determine whether a particular entity should be permitted or not. Criteria are used by getPermittedEntities(com.atlassian.user.User, Permission, java.util.Iterator, int, java.util.Collection) to further filter the list of results beyond the simple permissions check.

Parameters
alreadyChosenEntities the list of entities that have already been permitted
entity the entity to test
Returns
  • true if that entity should also be permitted, false otherwise