@Override public ApplicationLink getPrimaryApplicationLink(Class<? extends ApplicationType> type) { return applicationLinkService.getPrimaryApplicationLink(type); }
@SuppressWarnings("unchecked") private ApplicationLink getPrimaryAppLinkByType(String type) throws ClassNotFoundException { Class<? extends ApplicationType> clazz = APPLINKS_TYPE_ALIASES.get(type.toLowerCase(Locale.US)); if (clazz == null) { clazz = (Class<? extends ApplicationType>) getClass().getClassLoader().loadClass(type); } return appLinkService.getPrimaryApplicationLink(clazz); }
public FishEyeInstance getDefaultFishEyeInstance() { final ApplicationLink primaryApplicationLink = applicationLinkService.getPrimaryApplicationLink(FishEyeCrucibleApplicationType.class); if (primaryApplicationLink != null) { return getFishEyeInstance(primaryApplicationLink); } //because there may not be a primary application link configured, even tho there are application link(s), we return one of them //the code base should no longer be storing "global" properties against an application link, and hence this should be acceptable final Iterator<ApplicationLink> otherApplicationLinks = getAllFisheyeApplicationLinks().iterator(); if (otherApplicationLinks.hasNext()) { return getFishEyeInstance(otherApplicationLinks.next()); } else { return null; } }
ApplicationLink appLink = applicationLinkService.getPrimaryApplicationLink(applicationType);
public ApplicationLink resolve(JiraIssuesMacro.Type requestType, String requestData, Map<String, String> typeSafeParams) throws MacroExecutionException ApplicationLink primaryAppLink = appLinkService.getPrimaryApplicationLink(JiraApplicationType.class); if (primaryAppLink == null)