|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.greenhopper.service.backlog.BacklogServiceImpl
@Service(value="gh-backlogService") public class BacklogServiceImpl
Service for handling all Backlog
-related functionality
Field Summary |
---|
Fields inherited from interface com.atlassian.greenhopper.service.backlog.BacklogService |
---|
SERVICE |
Constructor Summary | |
---|---|
BacklogServiceImpl()
|
Method Summary | |
---|---|
ErrorCollection |
archiveBacklog(com.opensymphony.user.User user,
Backlog backlog)
Marks the given Backlog as "archived". |
ErrorCollection |
completeBacklog(com.opensymphony.user.User user,
Backlog backlog)
Marks the given Backlog as "completed". |
ErrorCollection |
create(com.opensymphony.user.User user,
Backlog backlog)
Creates the given top level backlog object. |
ErrorCollection |
create(com.opensymphony.user.User user,
Backlog backlog,
java.lang.Long parentId)
Creates the given backlog object as a child of the given parent Backlog. |
void |
createUnscheduled(XProject xproject)
Creates the unscheduled backlog for given xproject. |
ErrorCollection |
delete(com.opensymphony.user.User user,
java.lang.Long id)
Delete a backlog. |
Backlog |
get(com.opensymphony.user.User user,
java.lang.Long id)
Get a backlog given its id taking user permissions into account |
java.util.SortedSet<Backlog> |
getAll(com.opensymphony.user.User user)
Returns all backlogs a user has access to. |
java.util.SortedSet<Backlog> |
getBacklogs(com.opensymphony.user.User user,
XProject xproject,
Backlog.Status... statuses)
Get all backlogs for a XProject. |
java.util.List<Backlog> |
getSortedBacklogs(com.opensymphony.user.User user,
XProject xproject,
Backlog.Status... statuses)
Get all backlogs for a XProject, sorted respecting the hierarchy order. |
java.util.List<Backlog> |
getSortedOpenBacklogs(com.opensymphony.user.User user,
XProject xproject)
Get all backlogs for a XProject, sorted respecting the hierarchy order. |
Backlog |
getUnscheduled(com.opensymphony.user.User user,
XProject xproject)
Gets the "Unscheduled" default backlog for a XProject. |
boolean |
isAdmin(com.opensymphony.user.User user,
Backlog backlog)
For convenience so we don't always need to have the XProjectService around when dealing with backlogs (like in JIRA-internals, JQL, ...) |
boolean |
isBrowsable(com.opensymphony.user.User user,
Backlog backlog)
For convenience so we don't always need to have the XProjectService around when dealing with backlogs (like in JIRA-internals, JQL, ...) |
ErrorCollection |
reopenBacklog(com.opensymphony.user.User user,
Backlog backlog)
Reopens the given, completed or archived Backlog. |
ErrorCollection |
save(com.opensymphony.user.User user,
Backlog backlog)
Updates the given backlog object. |
ErrorCollection |
save(com.opensymphony.user.User user,
Backlog backlog,
java.lang.Long parentId)
Updates the given backlog object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BacklogServiceImpl()
Method Detail |
---|
public Backlog get(com.opensymphony.user.User user, java.lang.Long id)
BacklogService
get
in interface BacklogService
user
- the user requesting the backlog
Backlog
for the given ID, or null if there is nonepublic java.util.SortedSet<Backlog> getBacklogs(com.opensymphony.user.User user, XProject xproject, Backlog.Status... statuses)
BacklogService
getBacklogs
in interface BacklogService
statuses
- : the statuses the result is limited to. If none are given, an empty set is returned.
Backlog
s for the project, an empty set if the user does not have accesspublic java.util.List<Backlog> getSortedOpenBacklogs(com.opensymphony.user.User user, XProject xproject)
BacklogService
getSortedOpenBacklogs
in interface BacklogService
user
- the user requesting the backlogs
Backlog
s for the project, an empty set if the user does not have accesspublic java.util.List<Backlog> getSortedBacklogs(com.opensymphony.user.User user, XProject xproject, Backlog.Status... statuses)
BacklogService
getSortedBacklogs
in interface BacklogService
user
- the user requesting the backlogsstatuses
- : the statuses the result is limited to. If none are given, an empty set is returned.
Backlog
s for the project, an empty set if the user does not have accesspublic java.util.SortedSet<Backlog> getAll(com.opensymphony.user.User user)
BacklogService
getAll
in interface BacklogService
public Backlog getUnscheduled(com.opensymphony.user.User user, XProject xproject)
BacklogService
getUnscheduled
in interface BacklogService
user
- the user requesting the backlog
Backlog
or null if the user does not have accesspublic ErrorCollection create(com.opensymphony.user.User user, Backlog backlog)
BacklogService
create
in interface BacklogService
ErrorCollection
with error messages, if there were anypublic ErrorCollection create(com.opensymphony.user.User user, Backlog backlog, java.lang.Long parentId)
BacklogService
create
in interface BacklogService
ErrorCollection
with error messages, if there were anypublic void createUnscheduled(XProject xproject)
BacklogService
createUnscheduled
in interface BacklogService
public ErrorCollection save(com.opensymphony.user.User user, Backlog backlog)
BacklogService
save
in interface BacklogService
ErrorCollection
with error messages, if there were anypublic ErrorCollection save(com.opensymphony.user.User user, Backlog backlog, java.lang.Long parentId)
BacklogService
save
in interface BacklogService
ErrorCollection
with error messages, if there were anypublic ErrorCollection delete(com.opensymphony.user.User user, java.lang.Long id)
delete
in interface BacklogService
ErrorCollection
with error messages, if there were anypublic boolean isBrowsable(com.opensymphony.user.User user, Backlog backlog)
isBrowsable
in interface BacklogService
public boolean isAdmin(com.opensymphony.user.User user, Backlog backlog)
isAdmin
in interface BacklogService
public ErrorCollection completeBacklog(com.opensymphony.user.User user, Backlog backlog)
BacklogService
completeBacklog
in interface BacklogService
public ErrorCollection archiveBacklog(com.opensymphony.user.User user, Backlog backlog)
BacklogService
archiveBacklog
in interface BacklogService
public ErrorCollection reopenBacklog(com.opensymphony.user.User user, Backlog backlog)
BacklogService
reopenBacklog
in interface BacklogService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |