Class HasPermissionResolver
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.HasPermissionResolver
-
- All Implemented Interfaces:
ProductsResolver<Boolean,Permission>
public class HasPermissionResolver extends Object implements ProductsResolver<Boolean,Permission>
Returns whether any of the products contains the given permission
-
-
Constructor Summary
Constructors Constructor Description HasPermissionResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancacheResult()Should the result from this resolver be cached? In some cases it might be more harm than good to cache the results...Booleanresolve(Collection<Product> products, String name, Permission permission)Resolves the value from the collection of products
-
-
-
Method Detail
-
cacheResult
public boolean cacheResult()
Description copied from interface:ProductsResolverShould the result from this resolver be cached? In some cases it might be more harm than good to cache the results...- Specified by:
cacheResultin interfaceProductsResolver<Boolean,Permission>
-
resolve
public Boolean resolve(Collection<Product> products, String name, Permission permission)
Description copied from interface:ProductsResolverResolves the value from the collection of products- Specified by:
resolvein interfaceProductsResolver<Boolean,Permission>
-
-