@Override public Object getUtilFunctions(Context context) { return new StringUtils(); }
/** * Provide the template with some utility references * * @return Map Utils required for templates. */ public Map<String, Object> getUtilParams() { Map<String, Object> utilParams = new HashMap<String, Object>(); utilParams.put("stringUtils", new StringUtils()); // Text email formatting - used to leftPad strings in text emails. utilParams.put("padSize", PADSIZE); // Pass the "Time Spent" field id - used in changelog for worklogged utilParams.put("timeSpentFieldId", IssueFieldConstants.TIME_SPENT); return utilParams; }
public String getHtml() { final Map<String, Object> params = ImmutableMap.of( "string", new StringUtils(), "escape_util", new JiraFisheyeEscapeTools(), "results", commitSearchResults, "max_results", StashCommitServiceImpl.MAX_COMMITS ); return descriptor.getHtml("truncated", params); }
private void displayModeRecentReviews(Project project, int daysPreviousToSearch, Map<String, Object> params) throws IOException { ReviewList reviewList = reviewManager.getReviewsForProject(project, daysPreviousToSearch); if (reviewList.hasErrors()) { params.put("string", new StringUtils()); params.put("oAuthErrors", errorBeanUtils.extractOAuthErrors(reviewList.getErrors(), projectTabPanelURI(project.getKey()))); params.put("reperrors", errorBeanUtils.extractNonOAuthErrors(reviewList.getErrors())); params.put("erri18n", "crucible.issue.tab.rep.error.header"); params.put("i18nLoginKey", "fisheye.oauth.login.to.view.reviews"); } List<Review> reviews = reviewList.getReviews(); Collections.sort(reviews, ReviewIdComparator.REVERSE_COMPARATOR); params.put("reviews", reviews); }
public String getHtml() { Map<String,Object> params = EasyMap.build( "string", new StringUtils(), "oAuthErrors", oAuthErrors, "reperrors", errors, "erri18n", i18nErrorMessageKey, "i18nLoginKey", i18nLoginKey, "jfpTextutils", new JiraFisheyeEscapeTools() ); return descriptor.getHtml("viewreperrors", params); }
public String getHtml() { final Map<String, Object> params = EasyMap.build( "string", new StringUtils(), "jfpTextutils", new JiraFisheyeEscapeTools(), "ignoredServerCount", ignoredServerCount ); return descriptor.getHtml("ignoredapplinks", params); }
velocityParameters.put("stringUtils", new StringUtils()); velocityParameters.put("searchService", searchService); velocityParameters.put("labelUtils", new LabelUtils());
bodyParams.put("wordView", this); bodyParams.put("remoteUser", user); bodyParams.put("stringUtils", new StringUtils()); bodyParams.put("encoder", new JiraUrlCodec()); if (timeTrackingEnabled && subTasksEnabled && !issue.isSubTask())
params.put("req", request); params.put("build", buildUtilsInfo); params.put("string", new StringUtils()); params.put("isSysAdmin", permissionManager.hasPermission(SYSTEM_ADMIN, getAuthenticationContext().getUser())); params.put("showContactAdminForm", applicationProperties.getOption(JIRA_SHOW_CONTACT_ADMINISTRATORS_FORM));
contextParams.put("SRUtils", new SearchRequestUtils()); contextParams.put("subscription", sub); contextParams.put("StringUtils", new StringUtils()); contextParams.put("HTMLUtils", new HTMLUtils()); contextParams.put("build", ComponentAccessor.getComponent(BuildUtilsInfo.class));
params.put("string", new StringUtils()); params.put("oAuthErrors", errorBeanUtils.extractOAuthErrors(changesets.getErrors(), callback)); params.put("reperrors", errorBeanUtils.extractNonOAuthErrors(changesets.getErrors()));
params.put("stringUtils", new StringUtils());