|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.greenhopper.service.context.ContextServiceImpl
@Service(value="gh-contextService") public class ContextServiceImpl
ContextService implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.greenhopper.service.context.ContextService |
---|
ContextService.Locator |
Field Summary |
---|
Fields inherited from interface com.atlassian.greenhopper.service.context.ContextService |
---|
SERVICE |
Constructor Summary | |
---|---|
ContextServiceImpl()
|
Method Summary | |
---|---|
java.util.Set<ContextInfo> |
getAllContexts(com.opensymphony.user.User user,
ProjectConfiguration projectConfiguration)
This method returns context info objects for whatever has been stored against user/shared contexts No attempt is taken at verifying that the context is still available. |
Context2 |
getById(com.opensymphony.user.User user,
XProject xproject,
java.lang.String id,
boolean fallbackToDefault)
Get a Context by id |
ContextInfo |
getInfoForContext(Context2 context)
Get the info object for a given context. |
Context2 |
getSelectedContext(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
UserBoardSettings settings)
Get the last selected context for a given project / board type |
void |
removeContext(ProjectConfiguration projectConfiguration,
Context context)
Removes a context object. |
void |
setSelectedContext(com.opensymphony.user.User user,
XProject xproject,
ViewDefinition view,
Context2 context,
UserBoardSettings settings)
Set the last selected context for a given project / board type |
void |
updateShareAndUserLists(ProjectConfiguration projectConfiguration,
Context context)
Updates the shared state of a context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContextServiceImpl()
Method Detail |
---|
public Context2 getById(com.opensymphony.user.User user, XProject xproject, java.lang.String id, boolean fallbackToDefault)
getById
in interface ContextService
fallbackToDefault
- if true then the default context is returned if a context with that id could not be located.
public Context2 getSelectedContext(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, UserBoardSettings settings)
getSelectedContext
in interface ContextService
user
- the user to get the context for
public void setSelectedContext(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, Context2 context, UserBoardSettings settings)
setSelectedContext
in interface ContextService
public java.util.Set<ContextInfo> getAllContexts(com.opensymphony.user.User user, ProjectConfiguration projectConfiguration)
getAllContexts
in interface ContextService
public ContextInfo getInfoForContext(Context2 context)
getInfoForContext
in interface ContextService
public void updateShareAndUserLists(ProjectConfiguration projectConfiguration, Context context)
updateShareAndUserLists
in interface ContextService
public void removeContext(ProjectConfiguration projectConfiguration, Context context)
removeContext
in interface ContextService
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |