|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.global.AbstractLoggable com.atlassian.greenhopper.service.rapid.view.RapidViewServiceImpl
@Service public class RapidViewServiceImpl
Field Summary |
---|
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable |
---|
logger |
Constructor Summary | |
---|---|
RapidViewServiceImpl()
|
Method Summary | |
---|---|
ServiceOutcome<RapidView> |
copy(com.atlassian.crowd.embedded.api.User user,
RapidView sourceRapidView)
Create a new copy of the specified RapidView entity and store it in the database. |
ServiceOutcome<RapidView> |
create(com.atlassian.crowd.embedded.api.User user,
java.lang.String name,
java.lang.Long savedFilterId,
RapidViewPreset preset)
Create a new RapidView entity and store it in the database. |
ServiceOutcome<java.lang.Void> |
delete(com.atlassian.crowd.embedded.api.User user,
java.lang.Long id)
Delete a rapid view given its ID |
ServiceOutcome<java.util.List<RapidView>> |
findRapidViewsByName(com.atlassian.crowd.embedded.api.User user,
java.lang.String nameQuery)
Returns all views whose name matches the nameQuery in any part of the name. |
void |
flushCache()
Invoked when all caches in the plugin need to be cleared. |
ServiceOutcome<RapidView> |
getFirstVisibleRapidView(com.atlassian.crowd.embedded.api.User user)
Get the first visible rapid view for a given user |
ServiceOutcome<RapidView> |
getRapidView(com.atlassian.crowd.embedded.api.User user,
java.lang.Long id)
|
java.util.List<RapidView> |
getRapidViews(com.atlassian.crowd.embedded.api.User user,
ErrorCollection errors)
|
ServiceOutcome<java.util.List<RapidView>> |
getRapidViewsWithOutcome(com.atlassian.crowd.embedded.api.User user)
|
ServiceOutcome<com.atlassian.jira.issue.fields.CustomField> |
getSortedByRankField(com.atlassian.crowd.embedded.api.User user,
RapidView view)
|
boolean |
isSortedByRankField(com.atlassian.crowd.embedded.api.User user,
RapidView rapidView)
|
ServiceOutcome<java.lang.Void> |
update(com.atlassian.crowd.embedded.api.User user,
RapidView view)
Save a RapidView entity's state to the database. |
ServiceOutcome<java.lang.Void> |
updateWithOutcome(com.atlassian.crowd.embedded.api.User user,
RapidView view)
|
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable |
---|
logDebug, logError, logException, logInfo, logTrace, logWarn, setInfoLogLevel |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RapidViewServiceImpl()
Method Detail |
---|
@NotNull public ServiceOutcome<RapidView> create(com.atlassian.crowd.embedded.api.User user, java.lang.String name, java.lang.Long savedFilterId, RapidViewPreset preset)
RapidViewService
RapidView
entity and store it in the database.
create
in interface RapidViewService
savedFilterId
- : The ID of JIRA's SearchRequest that is to be associated with the new viewpublic ServiceOutcome<RapidView> copy(com.atlassian.crowd.embedded.api.User user, RapidView sourceRapidView)
RapidViewService
RapidView
entity and store it in the database.
copy
in interface RapidViewService
user
- the user who requested to copy the rapid viewsourceRapidView
- the view to copy
RapidView
public ServiceOutcome<java.lang.Void> updateWithOutcome(com.atlassian.crowd.embedded.api.User user, RapidView view)
updateWithOutcome
in interface RapidViewService
public ServiceOutcome<java.lang.Void> update(com.atlassian.crowd.embedded.api.User user, RapidView view)
RapidViewService
RapidView
entity's state to the database. The ID must be set.
update
in interface RapidViewService
public ServiceOutcome<java.lang.Void> delete(com.atlassian.crowd.embedded.api.User user, java.lang.Long id)
RapidViewService
delete
in interface RapidViewService
public java.util.List<RapidView> getRapidViews(com.atlassian.crowd.embedded.api.User user, ErrorCollection errors)
getRapidViews
in interface RapidViewService
public ServiceOutcome<RapidView> getFirstVisibleRapidView(com.atlassian.crowd.embedded.api.User user)
RapidViewService
getFirstVisibleRapidView
in interface RapidViewService
user
- the user in play
public ServiceOutcome<java.util.List<RapidView>> getRapidViewsWithOutcome(com.atlassian.crowd.embedded.api.User user)
getRapidViewsWithOutcome
in interface RapidViewService
public ServiceOutcome<java.util.List<RapidView>> findRapidViewsByName(com.atlassian.crowd.embedded.api.User user, java.lang.String nameQuery)
RapidViewService
"green"
will
match views named "green team"
and "blue and green"
alike.
Views will be filtered down to those which the user can see.
findRapidViewsByName
in interface RapidViewService
user
- the user performing the searchnameQuery
- a part of a view name to match e.g. "green"
@NotNull public ServiceOutcome<RapidView> getRapidView(com.atlassian.crowd.embedded.api.User user, java.lang.Long id)
getRapidView
in interface RapidViewService
public boolean isSortedByRankField(com.atlassian.crowd.embedded.api.User user, RapidView rapidView)
isSortedByRankField
in interface RapidViewService
@NotNull public ServiceOutcome<com.atlassian.jira.issue.fields.CustomField> getSortedByRankField(com.atlassian.crowd.embedded.api.User user, RapidView view)
getSortedByRankField
in interface RapidViewService
public void flushCache()
GreenHopperCache
flushCache
in interface GreenHopperCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |