|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager
public class DefaultSimpleLinkManager
Default implementation of the SimpleLinkManager This actually uses combines SimpleLinkFactory lists with WebItemModuleDescriptor
links and WebSectionModuleDescriptor
sections, respecting weights.
Constructor Summary | |
---|---|
DefaultSimpleLinkManager(JiraWebInterfaceManager webInterfaceManager,
SimpleLinkFactoryModuleDescriptors simpleLinkFactoryModuleDescriptors,
JiraAuthenticationContext authenticationContext,
VelocityRequestContextFactory velocityRequestContextFactory)
|
Method Summary | |
---|---|
List<SimpleLink> |
getLinksForSection(String section,
com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLink for the given section. |
List<SimpleLink> |
getLinksForSection(String section,
User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLink for the given section. |
List<SimpleLink> |
getLinksForSectionIgnoreConditions(String section,
com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLink for the given section, without
filtering links using the conditions specified for the links. |
List<SimpleLink> |
getLinksForSectionIgnoreConditions(String section,
User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLink for the given section, without
filtering links using the conditions specified for the links. |
List<SimpleLinkSection> |
getNotEmptySectionsForLocation(String location,
com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLinkSection for the given location, that have either web-items or
other web-sections within them. |
List<SimpleLinkSection> |
getNotEmptySectionsForLocation(String location,
User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLinkSection for the given location, that have either web-items or
other web-sections within them. |
SimpleLinkSection |
getSectionForURL(String topLevelSection,
String URL,
com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper)
Recursively search through our sections within sections within sections within ... |
List<SimpleLinkSection> |
getSectionsForLocation(String location,
com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLinkSection for the given location. |
List<SimpleLinkSection> |
getSectionsForLocation(String location,
User remoteUser,
JiraHelper jiraHelper)
Gets a list of SimpleLinkSection for the given location. |
boolean |
shouldLocationBeLazy(String location,
com.atlassian.crowd.embedded.api.User remoteUser,
JiraHelper jiraHelper)
This determines whether a location should be loaded lazily if possible. |
boolean |
shouldLocationBeLazy(String location,
User remoteUser,
JiraHelper jiraHelper)
This determines whether a location should be loaded lazily if possible. |
boolean |
shouldSectionBeLazy(String section)
This determines whether a section should be loaded lazily if possible. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultSimpleLinkManager(JiraWebInterfaceManager webInterfaceManager, SimpleLinkFactoryModuleDescriptors simpleLinkFactoryModuleDescriptors, JiraAuthenticationContext authenticationContext, VelocityRequestContextFactory velocityRequestContextFactory)
Method Detail |
---|
public boolean shouldLocationBeLazy(@NotNull String location, com.atlassian.crowd.embedded.api.User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkFactoryModuleDescriptor
for those sections and sees whether any of the factories say they should be lazy. If any say true, return true.
shouldLocationBeLazy
in interface SimpleLinkManager
location
- The location to check forremoteUser
- The user that we are generating the list forjiraHelper
- The context under which the list is being generated
public boolean shouldLocationBeLazy(String location, User remoteUser, JiraHelper jiraHelper)
SimpleLinkManager
shouldLocationBeLazy
in interface SimpleLinkManager
location
- The location to check forremoteUser
- The user that we are generating the list forjiraHelper
- The context under which the list is being generated
public boolean shouldSectionBeLazy(String section)
shouldSectionBeLazy
in interface SimpleLinkManager
section
- The section to check for
public List<SimpleLink> getLinksForSection(String section, com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
SimpleLinkManager
SimpleLink
for the given section.
getLinksForSection
in interface SimpleLinkManager
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
public List<SimpleLink> getLinksForSection(@NotNull String section, User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkManager
SimpleLink
for the given section.
getLinksForSection
in interface SimpleLinkManager
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
public List<SimpleLink> getLinksForSectionIgnoreConditions(@NotNull String section, com.atlassian.crowd.embedded.api.User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkManager
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.
getLinksForSectionIgnoreConditions
in interface SimpleLinkManager
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
public List<SimpleLink> getLinksForSectionIgnoreConditions(@NotNull String section, User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkManager
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.
getLinksForSectionIgnoreConditions
in interface SimpleLinkManager
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
public List<SimpleLinkSection> getSectionsForLocation(String location, com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
SimpleLinkManager
SimpleLinkSection
for the given location.
getSectionsForLocation
in interface SimpleLinkManager
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
public List<SimpleLinkSection> getSectionsForLocation(@NotNull String location, User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkManager
SimpleLinkSection
for the given location.
getSectionsForLocation
in interface SimpleLinkManager
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
public List<SimpleLinkSection> getNotEmptySectionsForLocation(@NotNull String location, com.atlassian.crowd.embedded.api.User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkManager
SimpleLinkSection
for the given location, that have either web-items or
other web-sections within them.
getNotEmptySectionsForLocation
in interface SimpleLinkManager
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
public List<SimpleLinkSection> getNotEmptySectionsForLocation(@NotNull String location, User remoteUser, @NotNull JiraHelper jiraHelper)
SimpleLinkManager
SimpleLinkSection
for the given location, that have either web-items or
other web-sections within them.
getNotEmptySectionsForLocation
in interface SimpleLinkManager
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
public SimpleLinkSection getSectionForURL(@NotNull String topLevelSection, @NotNull String URL, com.atlassian.crowd.embedded.api.User remoteUser, JiraHelper jiraHelper)
SimpleLinkManager
getSectionForURL
in interface SimpleLinkManager
topLevelSection
- The top level section from where to start searching!URL
- The URL for the action e.g. https://jdog.atlassian.com/secure/project/ViewProjects.jspa. We check if this URL contains a web-item's path which is usually something shorter like /secure/project/ViewProjects.jsparemoteUser
- 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 All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |