Package org.cyclos.impl.users
Class BasePermissionHandlerImpl<DTOT,ADT,DTO extends ProductDTO,AD extends ActiveProductsData>
- java.lang.Object
-
- org.cyclos.impl.users.PermissionHandlerImpl<DTO,AD>
-
- org.cyclos.impl.users.BasePermissionHandlerImpl<DTOT,ADT,DTO,AD>
-
- Type Parameters:
DTOT- the type of the DTO propertyADT- the type of the data (AD) propertyDTO- the DTO typeAD- the data (AD) type
- Direct Known Subclasses:
CollectionPermissionHandlerImpl,OperationPermissionHandlerImpl,SinglePermissionHandlerImpl
public abstract class BasePermissionHandlerImpl<DTOT,ADT,DTO extends ProductDTO,AD extends ActiveProductsData> extends PermissionHandlerImpl<DTO,AD>
-
-
Field Summary
Fields Modifier and Type Field Description protected Property<ADT,? super AD>dataPropertyprotected Property<DTOT,? super DTO>dtoPropertyprotected MessageKeykey
-
Constructor Summary
Constructors Constructor Description BasePermissionHandlerImpl(Property<DTOT,? super DTO> dtoProperty, Property<ADT,? super AD> dataProperty, MessageKey key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property<?,? super DTO>getDTOProperty()MessageKeygetKey()Returns the message key associated to the DTO property-
Methods inherited from class org.cyclos.impl.users.PermissionHandlerImpl
getPermissions, readPermissions, readPermissions, writePermissions
-
-
-
-
Field Detail
-
dtoProperty
protected final Property<DTOT,? super DTO extends ProductDTO> dtoProperty
-
dataProperty
protected final Property<ADT,? super AD extends ActiveProductsData> dataProperty
-
key
protected final MessageKey key
-
-
Method Detail
-
getDTOProperty
public Property<?,? super DTO> getDTOProperty()
- Specified by:
getDTOPropertyin classPermissionHandlerImpl<DTO extends ProductDTO,AD extends ActiveProductsData>- Returns:
- the property of the DTO used to grant/revoke the managed permissions
- See Also:
PermissionHandlerImpl.getPermissions()
-
getKey
public MessageKey getKey()
Description copied from class:PermissionHandlerImplReturns the message key associated to the DTO property- Specified by:
getKeyin classPermissionHandlerImpl<DTO extends ProductDTO,AD extends ActiveProductsData>
-
-