java.lang.Object | |
↳ | com.atlassian.jira.security.roles.actor.UserRoleActorFactory |
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Responsible for construction of UserRoleActor instances. Also optimises the lookup where we have many users in a particular role for a project by doing a map lookup based on the username.
Access to the actual User instance is via a UserFactory so we can unit-test. The production dependency is set in the default ctor.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
|
[Expand]
Inherited Methods | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||
![]()
|
Create instance of the ProjectRoleActor representing a role actor stored in the database. In order to add a new role actor please pass a null id.
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. |
Find and return all role actors for the given user.
user | for which actors will be obtained |
---|
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.
roleActors | a Set of RoleActor instances |
---|