public class UserPropertyHelper extends Object implements EntityWithKeyPropertyHelper<ApplicationUser>
EntityPropertyHelper.CheckPermissionFunction<E extends WithId>
Modifier and Type | Field and Description |
---|---|
protected GlobalPermissionManager |
permissionManager |
Constructor and Description |
---|
UserPropertyHelper(UserManager userManager,
GlobalPermissionManager permissionManager,
I18nHelper i18n) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canAdministerOtherUser(ApplicationUser currentUser,
ApplicationUser accessedUser) |
com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertyDeletedEvent> |
createDeletePropertyEventFunction() |
com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertySetEvent> |
createSetPropertyEventFunction() |
com.google.common.base.Function<Long,com.atlassian.fugue.Option<ApplicationUser>> |
getEntityByIdFunction() |
com.google.common.base.Function<String,com.atlassian.fugue.Option<ApplicationUser>> |
getEntityByKeyFunction() |
EntityPropertyType |
getEntityPropertyType() |
EntityPropertyHelper.CheckPermissionFunction<ApplicationUser> |
hasEditPermissionFunction() |
EntityPropertyHelper.CheckPermissionFunction<ApplicationUser> |
hasReadPermissionFunction() |
protected boolean |
isTheSameUser(ApplicationUser user1,
ApplicationUser user2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDeletePropertyEventBiFunction, createSetPropertyEventBiFunction
protected final GlobalPermissionManager permissionManager
public UserPropertyHelper(UserManager userManager, GlobalPermissionManager permissionManager, I18nHelper i18n)
public EntityPropertyHelper.CheckPermissionFunction<ApplicationUser> hasReadPermissionFunction()
hasReadPermissionFunction
in interface EntityPropertyHelper<ApplicationUser>
public EntityPropertyHelper.CheckPermissionFunction<ApplicationUser> hasEditPermissionFunction()
hasEditPermissionFunction
in interface EntityPropertyHelper<ApplicationUser>
public com.google.common.base.Function<Long,com.atlassian.fugue.Option<ApplicationUser>> getEntityByIdFunction()
getEntityByIdFunction
in interface EntityPropertyHelper<ApplicationUser>
public com.google.common.base.Function<String,com.atlassian.fugue.Option<ApplicationUser>> getEntityByKeyFunction()
getEntityByKeyFunction
in interface EntityWithKeyPropertyHelper<ApplicationUser>
public com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertySetEvent> createSetPropertyEventFunction()
createSetPropertyEventFunction
in interface EntityPropertyHelper<ApplicationUser>
EntityPropertySetEvent
for the proper entity type.public com.atlassian.fugue.Function2<ApplicationUser,EntityProperty,? extends EntityPropertyDeletedEvent> createDeletePropertyEventFunction()
createDeletePropertyEventFunction
in interface EntityPropertyHelper<ApplicationUser>
EntityPropertyDeletedEvent
for the proper entity type.public EntityPropertyType getEntityPropertyType()
getEntityPropertyType
in interface EntityPropertyHelper<ApplicationUser>
protected final boolean canAdministerOtherUser(ApplicationUser currentUser, ApplicationUser accessedUser)
protected final boolean isTheSameUser(ApplicationUser user1, ApplicationUser user2)
Copyright © 2002-2017 Atlassian. All Rights Reserved.