|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleLinkManager
A manager that looks after generating lists of SimpleLink
and
SimpleLinkSection
.
This should be used in preference over the JiraWebInterfaceManager
as this
is more powerful due to being able produce links via SimpleLinkFactory
. Though the links produced
are more limited than what is available through interacting with JiraWebInterfaceManager directly.
Method Summary | |
---|---|
java.util.List<SimpleLink> |
getLinksForSection(java.lang.String section,
com.opensymphony.user.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLink for the given section. |
java.util.List<SimpleLink> |
getLinksForSectionIgnoreConditions(java.lang.String section,
com.opensymphony.user.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLink for the given section, without
filtering links using the conditions specified for the links. |
java.util.List<SimpleLinkSection> |
getSectionsForLocation(java.lang.String location,
com.opensymphony.user.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLinkSection for the given location. |
boolean |
shouldLocationBeLazy(java.lang.String location,
com.opensymphony.user.User remoteUser,
JiraHelper jiraHelper)
This determines whether a location should be loaded lazily if possible. |
boolean |
shouldSectionBeLazy(java.lang.String section)
This determines whether an individual section should be loaded lazily if possible. |
Method Detail |
---|
boolean shouldLocationBeLazy(java.lang.String location, com.opensymphony.user.User remoteUser, JiraHelper jiraHelper)
location
- The location to check forremoteUser
- The user that we are generating the list forjiraHelper
- The context under which the list is being generated
boolean shouldSectionBeLazy(java.lang.String section)
section
- The section to check for
@NotNull java.util.List<SimpleLink> getLinksForSection(@NotNull java.lang.String section, com.opensymphony.user.User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLink
for the given section.
section
- The section to generate the list forremoteUser
- The user that we are generating the list forjiraHelper
- The context under which the list is being generated
@NotNull java.util.List<SimpleLink> getLinksForSectionIgnoreConditions(@NotNull java.lang.String section, com.opensymphony.user.User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLink
for the given section, without
filtering links using the conditions specified for the links. This will effectively return a list of links
without running any security checks.
section
- The section to generate the list forremoteUser
- The user that we are generating the list forjiraHelper
- The context under which the list is being generated
@NotNull java.util.List<SimpleLinkSection> getSectionsForLocation(@NotNull java.lang.String location, com.opensymphony.user.User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkSection
for the given location.
location
- The location to generate the list forremoteUser
- The user that we are generating the list forjiraHelper
- The context under which the list is being generated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |