Class UserPropertyHelper
java.lang.Object
com.atlassian.jira.bc.user.property.UserPropertyHelper
- All Implemented Interfaces:
EntityPropertyHelper<ApplicationUser>,EntityWithKeyPropertyHelper<ApplicationUser>
public class UserPropertyHelper
extends Object
implements EntityWithKeyPropertyHelper<ApplicationUser>
- Since:
- v6.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.entity.property.EntityPropertyHelper
EntityPropertyHelper.CheckPermissionFunction<E extends WithId> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserPropertyHelper(UserManager userManager, GlobalPermissionManager permissionManager, I18nHelper i18n) -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleancanAdministerOtherUser(ApplicationUser currentUser, ApplicationUser accessedUser) Function<Long,io.atlassian.fugue.Option<ApplicationUser>> Function<String,io.atlassian.fugue.Option<ApplicationUser>> protected final booleanisTheSameUser(ApplicationUser user1, ApplicationUser user2)
-
Field Details
-
permissionManager
-
-
Constructor Details
-
UserPropertyHelper
public UserPropertyHelper(UserManager userManager, GlobalPermissionManager permissionManager, I18nHelper i18n)
-
-
Method Details
-
hasReadPermissionFunction
- Specified by:
hasReadPermissionFunctionin interfaceEntityPropertyHelper<ApplicationUser>- Returns:
- the function which will check if the provided user has permissions to view the entity.
-
hasEditPermissionFunction
- Specified by:
hasEditPermissionFunctionin interfaceEntityPropertyHelper<ApplicationUser>- Returns:
- the function which will check if the provided user has permissions to edit the entity.
-
getEntityByIdFunction
- Specified by:
getEntityByIdFunctionin interfaceEntityPropertyHelper<ApplicationUser>- Returns:
- the function which will get the entity for the provided id.
-
getEntityByKeyFunction
- Specified by:
getEntityByKeyFunctionin interfaceEntityWithKeyPropertyHelper<ApplicationUser>- Returns:
- the function which will get the entity for the provided key.
-
createSetPropertyEventBiFunction
public BiFunction<ApplicationUser,EntityProperty, createSetPropertyEventBiFunction()? extends EntityPropertySetEvent> - Specified by:
createSetPropertyEventBiFunctionin interfaceEntityPropertyHelper<ApplicationUser>- Returns:
- the function which will create an instance of
EntityPropertySetEventfor the proper entity type.
-
createDeletePropertyEventBiFunction
public BiFunction<ApplicationUser,EntityProperty, createDeletePropertyEventBiFunction()? extends EntityPropertyDeletedEvent> - Specified by:
createDeletePropertyEventBiFunctionin interfaceEntityPropertyHelper<ApplicationUser>- Returns:
- the function which will create an instance of
EntityPropertyDeletedEventfor the proper entity type.
-
getEntityPropertyType
- Specified by:
getEntityPropertyTypein interfaceEntityPropertyHelper<ApplicationUser>- Returns:
- the type of the entity property.
-
canAdministerOtherUser
protected final boolean canAdministerOtherUser(ApplicationUser currentUser, ApplicationUser accessedUser) -
isTheSameUser
-