Class AdminAuthorizationRolesResolver
- java.lang.Object
-
- org.cyclos.impl.users.productresolvers.BaseBooleanPropertiesResolver<AuthorizationRole,AdminProductAuthorizationRole>
-
- org.cyclos.impl.users.productresolvers.AdminAuthorizationRolesResolver
-
- All Implemented Interfaces:
BooleanPropertiesResolver<AuthorizationRole>,ProductsResolver<BooleanPropertiesHolder<AuthorizationRole>,Void>
public class AdminAuthorizationRolesResolver extends BaseBooleanPropertiesResolver<AuthorizationRole,AdminProductAuthorizationRole>
Property resolver for authorization roles
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.users.productresolvers.BaseBooleanPropertiesResolver
applicationContext, conversionHandler, rawEntityManagerHandler
-
-
Constructor Summary
Constructors Constructor Description AdminAuthorizationRolesResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthorizationRolegetKey(AdminProductAuthorizationRole relationship)Must be implemented in order to return the key from the given relationship.protected com.querydsl.core.types.Path<AuthorizationRole>getKeyPath()Returns the path that resolves to the key.protected Collection<AdminProductAuthorizationRole>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.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
-
getKey
protected AuthorizationRole getKey(AdminProductAuthorizationRole relationship)
Description copied from class:BaseBooleanPropertiesResolverMust 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 classBaseBooleanPropertiesResolver<AuthorizationRole,AdminProductAuthorizationRole>
-
getKeyPath
protected com.querydsl.core.types.Path<AuthorizationRole> getKeyPath()
Description copied from class:BaseBooleanPropertiesResolverReturns the path that resolves to the key. For using custom key property names, subclasses should return null in this method and overrideBaseBooleanPropertiesResolver.getKeyPropertyName().- Specified by:
getKeyPathin classBaseBooleanPropertiesResolver<AuthorizationRole,AdminProductAuthorizationRole>
-
getRelationships
protected Collection<AdminProductAuthorizationRole> 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<AuthorizationRole,AdminProductAuthorizationRole>
-
initPaths
protected void initPaths(Set<com.querydsl.core.types.dsl.BooleanPath> paths)
- Specified by:
initPathsin classBaseBooleanPropertiesResolver<AuthorizationRole,AdminProductAuthorizationRole>
-
-