Package org.cyclos.impl.users
Class UserNotificationsPropertyResolver
- java.lang.Object
-
- org.cyclos.impl.users.BasePropertyResolver<UserNotificationType,UserProductNotification>
-
- org.cyclos.impl.users.UserNotificationsPropertyResolver
-
- All Implemented Interfaces:
PropertyResolver<UserNotificationType>
public class UserNotificationsPropertyResolver extends BasePropertyResolver<UserNotificationType,UserProductNotification>
Property resolver to get all notifications settings (enabled and disabled)
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.users.BasePropertyResolver
applicationContext, conversionHandler, rawEntityManagerHandler
-
-
Constructor Summary
Constructors Constructor Description UserNotificationsPropertyResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Comparator<UserNotificationType>getComparator()protected UserNotificationTypegetKey(UserProductNotification relationship)Must be implemented in order to return the key from the given relationship.protected com.querydsl.core.types.Path<UserNotificationType>getKeyPath()Returns the path that resolves to the key.protected Collection<UserProductNotification>getRelationships(Product product)Must be implemented to resolve the related entities to the given product.protected voidinitPaths(Set<com.querydsl.core.types.dsl.BooleanPath> paths)-
Methods inherited from class org.cyclos.impl.users.BasePropertyResolver
find, getKeyPropertyName, getPaths, resolve
-
-
-
-
Method Detail
-
getComparator
protected Comparator<UserNotificationType> getComparator()
- Overrides:
getComparatorin classBasePropertyResolver<UserNotificationType,UserProductNotification>
-
getKey
protected UserNotificationType getKey(UserProductNotification relationship)
Description copied from class:BasePropertyResolverMust be implemented in order to return the key from the given relationship. Returning null means this relationship shouldn't be taken into account- Specified by:
getKeyin classBasePropertyResolver<UserNotificationType,UserProductNotification>
-
getKeyPath
protected com.querydsl.core.types.Path<UserNotificationType> getKeyPath()
Description copied from class:BasePropertyResolverReturns the path that resolves to the key. For using custom key property names, subclasses should return null in this method and overrideBasePropertyResolver.getKeyPropertyName().- Specified by:
getKeyPathin classBasePropertyResolver<UserNotificationType,UserProductNotification>
-
getRelationships
protected Collection<UserProductNotification> getRelationships(Product product)
Description copied from class:BasePropertyResolverMust 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 classBasePropertyResolver<UserNotificationType,UserProductNotification>
-
initPaths
protected void initPaths(Set<com.querydsl.core.types.dsl.BooleanPath> paths)
- Specified by:
initPathsin classBasePropertyResolver<UserNotificationType,UserProductNotification>
-
-