|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ContextService
Provides access to context objects stored by GreenHopper.
Nested Class Summary | |
---|---|
static interface |
ContextService.Locator
|
Field Summary | |
---|---|
static java.lang.String |
SERVICE
Service identifier to be used for dependency injection. |
Method Summary | |
---|---|
java.util.Set<ContextInfo> |
getAllContexts(com.opensymphony.user.User user,
ProjectConfiguration projectConfiguration)
Get all contexts a given user has access to. |
Context2 |
getById(com.opensymphony.user.User user,
XProject xproject,
java.lang.String id,
boolean fallbackToDefault)
Get a context by name. |
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 selected context for a given view. |
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 a context as the selected context for a given view. |
void |
updateShareAndUserLists(ProjectConfiguration projectConfiguration,
Context context)
Updates the user and shared state of a context. |
Field Detail |
---|
static final java.lang.String SERVICE
Method Detail |
---|
Context2 getById(com.opensymphony.user.User user, XProject xproject, java.lang.String id, boolean fallbackToDefault)
fallbackToDefault
- if true then the default context is returned if a context with that id could not be located.
Context2 getSelectedContext(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, UserBoardSettings settings)
user
- the user to get the context for
void setSelectedContext(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, Context2 context, UserBoardSettings settings)
java.util.Set<ContextInfo> getAllContexts(com.opensymphony.user.User user, ProjectConfiguration projectConfiguration)
ContextInfo getInfoForContext(Context2 context)
void updateShareAndUserLists(ProjectConfiguration projectConfiguration, Context context)
void removeContext(ProjectConfiguration projectConfiguration, Context context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |