Package org.cyclos.impl.users
Class SingleOnePermissionPermissionHandlerImpl<T,P extends Product,DTO extends ProductDTO,AD extends ActiveProductsData>
- java.lang.Object
-
- org.cyclos.impl.users.PermissionHandlerImpl<DTO,AD>
-
- org.cyclos.impl.users.BasePermissionHandlerImpl<T,T,DTO,AD>
-
- org.cyclos.impl.users.SinglePermissionHandlerImpl<T,P,DTO,AD>
-
- org.cyclos.impl.users.SingleOnePermissionPermissionHandlerImpl<T,P,DTO,AD>
-
- Type Parameters:
T- the value typeP- the Product type to get the value fromDTO- the dto typeAD- the data type
- Direct Known Subclasses:
BooleanPermissionHandlerImpl,EnumPermissionHandlerImpl,IntegerPermissionHandlerImpl
public abstract class SingleOnePermissionPermissionHandlerImpl<T,P extends Product,DTO extends ProductDTO,AD extends ActiveProductsData> extends SinglePermissionHandlerImpl<T,P,DTO,AD>
Base handler class used when a single permission resolves to a single value in the product.
-
-
Field Summary
Fields Modifier and Type Field Description protected Permissionpermission-
Fields inherited from class org.cyclos.impl.users.BasePermissionHandlerImpl
dataProperty, dtoProperty, key
-
-
Constructor Summary
Constructors Constructor Description SingleOnePermissionPermissionHandlerImpl(Permission permission, Property<T,? super DTO> dtoProperty, Property<T,? super AD> dataProperty, MessageKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Permission>getPermissions()-
Methods inherited from class org.cyclos.impl.users.SinglePermissionHandlerImpl
getValue
-
Methods inherited from class org.cyclos.impl.users.BasePermissionHandlerImpl
getDTOProperty, getKey
-
Methods inherited from class org.cyclos.impl.users.PermissionHandlerImpl
readPermissions, readPermissions, writePermissions
-
-
-
-
Field Detail
-
permission
protected final Permission permission
-
-
Constructor Detail
-
SingleOnePermissionPermissionHandlerImpl
public SingleOnePermissionPermissionHandlerImpl(Permission permission, Property<T,? super DTO> dtoProperty, Property<T,? super AD> dataProperty, MessageKey key)
-
-
Method Detail
-
getPermissions
public List<Permission> getPermissions()
- Specified by:
getPermissionsin classPermissionHandlerImpl<DTO extends ProductDTO,AD extends ActiveProductsData>- Returns:
- the list of permissions managed by this handler
-
-