Class HasRoleResolver
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.HasRoleResolver
-
- All Implemented Interfaces:
ProductsResolver<Boolean,Role>
public class HasRoleResolver extends Object implements ProductsResolver<Boolean,Role>
Returns whether any of the products has the given role
-
-
Constructor Summary
Constructors Constructor Description HasRoleResolver()
-
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, Role argument)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,Role>
-
resolve
public Boolean resolve(Collection<Product> products, String name, Role argument)
Description copied from interface:ProductsResolverResolves the value from the collection of products- Specified by:
resolvein interfaceProductsResolver<Boolean,Role>
-
-