com.atlassian.confluence.security
Interface PermissionManager.Criterion

Enclosing interface:
PermissionManager

public static interface PermissionManager.Criterion

A criterion for whether an entity should be permitted or not


Method Summary
 boolean test(java.util.List<?> alreadyChosenEntities, java.lang.Object entity)
          Determine whether a particular entity should be permitted or not.
 

Method Detail

test

boolean test(java.util.List<?> alreadyChosenEntities,
             java.lang.Object entity)
Determine whether a particular entity should be permitted or not. Criteria are used by PermissionManager.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
See Also:
PermissionManager.getPermittedEntities(com.atlassian.user.User, Permission, java.util.Iterator, int, java.util.Collection)


Copyright © 2003-2011 Atlassian. All Rights Reserved.