Class VouchersResolver
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.BaseBooleanPropertiesResolver<VoucherConfiguration,ProductVoucher>
-
- org.cyclos.impl.users.productresolvers.BaseVouchersResolver
-
- org.cyclos.impl.users.productresolvers.VouchersResolver
-
- All Implemented Interfaces:
BooleanPropertiesResolver<VoucherConfiguration>,ProductsResolver<BooleanPropertiesHolder<VoucherConfiguration>,Void>
public final class VouchersResolver extends BaseVouchersResolver
Resolves the relationship between a member/admin product and vouchers We must use the same resolver for admins and members because the property is the same: "vouchers" for both accessors. If we use different resolvers but do not rename the property then the incorrect resolver could be used (e.g the admin resolver could be used to resolve the voucher configurations for member products), this is due to the product accessor implementation actually implements all *ProductAccessor interfaces.
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.users.productresolvers.BaseBooleanPropertiesResolver
applicationContext, conversionHandler, rawEntityManagerHandler
-
-
Constructor Summary
Constructors Constructor Description VouchersResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<ProductVoucher>getRelationships(Product product)Must be implemented to resolve the related entities to the given product.-
Methods inherited from class org.cyclos.impl.users.productresolvers.BaseVouchersResolver
getKey, getKeyPath, initPaths
-
Methods inherited from class org.cyclos.impl.users.productresolvers.BaseBooleanPropertiesResolver
find, getComparator, getKeyPropertyName, getPaths, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.users.productresolvers.ProductsResolver
cacheResult
-
-
-
-
Method Detail
-
getRelationships
protected Collection<ProductVoucher> getRelationships(Product product)
Description copied from class:BaseBooleanPropertiesResolverMust be implemented to resolve the related entities to the given product. Returning null means if doesn't apply to this product type- Specified by:
getRelationshipsin classBaseBooleanPropertiesResolver<VoucherConfiguration,ProductVoucher>
-
-