@ExperimentalApi public interface

EntityPropertyHelper

com.atlassian.jira.entity.property.EntityPropertyHelper<E extends com.atlassian.jira.entity.WithId>
Known Indirect Subclasses

@ExperimentalApi

This interface is considered usable by external developers but its contracts have not stabilized.

Experimental APIs may be changed at any time before being marked @Internal or @PublicApi.

Class Overview

The implementations of this interface are defining permission checking, persistence layer and events for entities E which are identifiable by id. These implementations can be used with are required to provide functions specializing EntityPropertyService.

Public Methods

public Function2<ApplicationUserEntityProperty, ? extends EntityPropertyDeletedEvent> createDeletePropertyEventFunction ()

Returns

public Function2<ApplicationUserEntityProperty, ? extends EntityPropertySetEvent> createSetPropertyEventFunction ()

Returns

public Function<Long, Option<E>> getEntityByIdFunction ()

Returns
  • the function which will get the entity for the provided id.

public EntityPropertyType getEntityPropertyType ()

Returns
  • the type of the entity property.

public CheckPermissionFunction<E> hasEditPermissionFunction ()

Returns
  • the function which will check if the provided user has permissions to edit the entity.

public CheckPermissionFunction<E> hasReadPermissionFunction ()

Returns
  • the function which will check if the provided user has permissions to view the entity.