Interface EntityPropertyHelper<E extends WithId>
- Type Parameters:
E- - entity type which extendsWithIdinterface.
- All Known Subinterfaces:
EntityWithKeyPropertyHelper<E>
- All Known Implementing Classes:
ChangeHistoryPropertyHelper,CommentPropertyHelper,DashboardItemPropertyHelper,IssuePropertyHelper,IssueTypePropertyHelper,ProjectPropertyHelper,UserPropertyHelper
The implementations of this interface are defining permission checking, persistence layer and events for entities
EntityPropertyHelper
which are identifiable by id. These implementations can be used with
are required to provide functions specializing EntityPropertyService.- Since:
- v6.2
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe base function for checking of permissions on chosen entities. -
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
hasEditPermissionFunction
EntityPropertyHelper.CheckPermissionFunction<E> hasEditPermissionFunction()- Returns:
- the function which will check if the provided user has permissions to edit the entity.
-
hasReadPermissionFunction
EntityPropertyHelper.CheckPermissionFunction<E> hasReadPermissionFunction()- Returns:
- the function which will check if the provided user has permissions to view the entity.
-
getEntityByIdFunction
- Returns:
- the function which will get the entity for the provided id.
-
createSetPropertyEventBiFunction
BiFunction<ApplicationUser,EntityProperty, createSetPropertyEventBiFunction()? extends EntityPropertySetEvent> - Returns:
- the function which will create an instance of
EntityPropertySetEventfor the proper entity type. - Since:
- 7.0.0
-
createDeletePropertyEventBiFunction
BiFunction<ApplicationUser,EntityProperty, createDeletePropertyEventBiFunction()? extends EntityPropertyDeletedEvent> - Returns:
- the function which will create an instance of
EntityPropertyDeletedEventfor the proper entity type. - Since:
- 7.0.0
-
getEntityPropertyType
EntityPropertyType getEntityPropertyType()- Returns:
- the type of the entity property.
-