|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bc.user.search.DefaultAssigneeService
public class DefaultAssigneeService
The main implementation of AssigneeService
.
Constructor Summary | |
---|---|
DefaultAssigneeService(PermissionContextFactory permissionContextFactory,
PermissionSchemeManager permissionSchemeManager,
UserManager userManager,
UserHistoryManager userHistoryManager,
FeatureManager featureManager,
JiraAuthenticationContext authenticationContext)
|
Method Summary | |
---|---|
Collection<com.atlassian.crowd.embedded.api.User> |
findAssignableUsers(String query,
Issue issue,
com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
Get assignable Users based on a query string and issue. |
List<com.atlassian.crowd.embedded.api.User> |
getAssignableUsers(Issue issue,
com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
Get all User s that may have an Issue assigned to them, for a given workflow state. |
Set<String> |
getRecentAssigneeNamesForIssue(Issue issue)
Gets ids of this issue's recent assignees, including the current assignee. |
Set<String> |
getRecentAssigneeNamesForUser(com.atlassian.crowd.embedded.api.User remoteUser)
Returns the names of User s that have recently been assigned to issues by the specified User. |
List<com.atlassian.crowd.embedded.api.User> |
getSuggestedAssignees(Issue issue,
com.atlassian.crowd.embedded.api.User loggedInUser,
List<com.atlassian.crowd.embedded.api.User> assignableUsers)
Returns a list of suggested Assignee User s for a given Issue and logged-in User. |
List<com.atlassian.crowd.embedded.api.User> |
getSuggestedAssignees(Set<String> suggestedAssigneeNames,
List<com.atlassian.crowd.embedded.api.User> assignableUsers)
Given a set of suggested names and an ordered list of assignable users, returns an order list of suggested users. |
Map<String,Boolean> |
makeUniqueFullNamesMap(Collection<com.atlassian.crowd.embedded.api.User> users)
Converts a collection of Users to a Map where the key is the User full name and the value is true or false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultAssigneeService(PermissionContextFactory permissionContextFactory, PermissionSchemeManager permissionSchemeManager, UserManager userManager, UserHistoryManager userHistoryManager, FeatureManager featureManager, JiraAuthenticationContext authenticationContext)
Method Detail |
---|
public List<com.atlassian.crowd.embedded.api.User> getSuggestedAssignees(Issue issue, com.atlassian.crowd.embedded.api.User loggedInUser, List<com.atlassian.crowd.embedded.api.User> assignableUsers)
AssigneeService
User
s for a given Issue and logged-in User.
This version accepts a pre-populated list of assignable Users to filter.
getSuggestedAssignees
in interface AssigneeService
issue
- Issue to get suggested Assignees forloggedInUser
- the user getting the suggestions, whose Assignee history may be queriedassignableUsers
- a list of User
s to filter
User
objects deemed relevant to the given Issue and User.public Collection<com.atlassian.crowd.embedded.api.User> findAssignableUsers(String query, Issue issue, @Nullable com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
AssigneeService
Matches on the start of username, Each word in Full Name & email.
Results are sorted according to the UserBestNameComparator
.
findAssignableUsers
in interface AssigneeService
query
- String to search for.issue
- Issue to check Assignee permissions againstactionDescriptor
- an ActionDescriptor
describing the context in which the Assignee is being searched
User
objects that match criteria.public List<com.atlassian.crowd.embedded.api.User> getSuggestedAssignees(Set<String> suggestedAssigneeNames, List<com.atlassian.crowd.embedded.api.User> assignableUsers)
getSuggestedAssignees
in interface AssigneeService
suggestedAssigneeNames
- the names of the users to returnassignableUsers
- a list of Users to filter by the suggested assignee names
public List<com.atlassian.crowd.embedded.api.User> getAssignableUsers(Issue issue, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
AssigneeService
User
s that may have an Issue
assigned to them, for a given workflow state.
The ActionDescriptor
may be used to check for workflow states that only allow a subset of
normally-assignable users.
getAssignableUsers
in interface AssigneeService
issue
- the Issue to find assignable users foractionDescriptor
- workflow action descriptor to filter users on
public Set<String> getRecentAssigneeNamesForIssue(Issue issue)
getRecentAssigneeNamesForIssue
in interface AssigneeService
issue
- and issue to get the change history of
public Map<String,Boolean> makeUniqueFullNamesMap(Collection<com.atlassian.crowd.embedded.api.User> users)
AssigneeService
The value will be true if no other user with that exact full name exists. The value will be false if at least one other user with that exact full name exists.
makeUniqueFullNamesMap
in interface AssigneeService
users
- a collection of Users that may contain multiple users with the same full name
public Set<String> getRecentAssigneeNamesForUser(com.atlassian.crowd.embedded.api.User remoteUser)
AssigneeService
User
s that have recently been assigned to issues by the specified User.
getRecentAssigneeNamesForUser
in interface AssigneeService
remoteUser
- User to check for assignees in history manager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |