@PublicSpi public interface RoleActorFactory
|Modifier and Type||Method and Description|
Create instance of the ProjectRoleActor representing a role actor stored in the database.
Find and return all role actors for the given user.
if RoleActors can be aggregated and queried in a more optimised way, then optimize the set to reduce its size so we reduce the number of iterations across the set.
ProjectRoleActor createRoleActor(Long id, Long projectRoleId, Long projectId, String type, String parameter) throws RoleActorDoesNotExistException
id- of the ProjectRoleActor
projectRoleId- of the ProjectRole associated with the actor.
projectId- of the Project associated with the actor.
type- of the actor which determines the implementation.
parameter- saying with which exact entity is actor associated ie. group name, user name.
Set<RoleActor> optimizeRoleActorSet(Set<RoleActor> roleActors)
roleActors- a Set of RoleActor instances
@Nonnull Set<ProjectRoleActor> getAllRoleActorsForUser(@Nullable ApplicationUser user)
user- for which actors will be obtained
Copyright © 2002-2022 Atlassian. All Rights Reserved.