public void setComponentLead(String componentLead) { if (TextUtils.stringSet(componentLead)) { this.componentLead = componentLead; } else { this.componentLead = null; } }
public void setGroupName(String groupName) { if (TextUtils.stringSet(groupName)) { this.groupName = groupName; } else { this.groupName = null; } }
/** * Set description to give value. If the value is an empty string, it will be set to null * @param description description to set it to */ public void setDescription(String description) { this.description = TextUtils.stringSet(description) ? description : null; }
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) { return TextUtils.stringSet((String) transientVars.get("assignee")); } }
private boolean isRootCount(String count) { if (TextUtils.stringSet(count)) return count.indexOf(SEPARATOR) < 0; else return true; }
public boolean doValidation(String key, Map parameters) { Object value = parameters.get(key); return (value != null && TextUtils.stringSet((String)value)); } }
public void setLastRun(String lastRun) { if (TextUtils.stringSet(lastRun)) { this.lastRun = new Timestamp(Long.parseLong(lastRun)); } }
public void setNextRun(String nextRun) { if (TextUtils.stringSet(nextRun)) { this.nextRun = new Timestamp(Long.parseLong(nextRun)); } }
protected Object getRelevantParams(Map<String, String[]> params) { String[] value = params.get(getId()); if (value != null && value.length > 0 && TextUtils.stringSet(value[0])) { return value[0]; } else { return null; } }
public boolean doValidation(String key, Map parameters) { final Object value = parameters.get(key); if (value instanceof String) { final String displayValue = (String)value; return TextUtils.stringSet(displayValue) && getArgumentValue(displayValue) != null; } return false; }
private String getDefaultQuery(String searchString) { if (TextUtils.stringSet(searchString)) { return "&text=" + encode(searchString); } else { return ""; } }
public String getParameter(String key) { String param = (String) getParameters().get(key); if (key.equals("user")) { // Map the username to a userkey param = userKeyService.getKeyForUsername(param); } return TextUtils.stringSet(param) ? param : null; }
public void setIntroduction(String introduction) { if (TextUtils.stringSet(TextUtils.noNull(introduction).trim())) { this.introduction = TextUtils.closeTags(introduction); } else { this.introduction = null; } }
public IssueType getValueFromParams(Map params) { String issueTypeId = (String) params.get(getId()); if (TextUtils.stringSet(issueTypeId)) { return constantsManager.getIssueType(issueTypeId); } else { return null; } }
protected String getRedirectUrl() { if (TextUtils.stringSet(currentConditionCount)) return super.getRedirectUrl() + "¤tCount=workflow-condition" + currentConditionCount; else return super.getRedirectUrl(); }
public IssueConstant getValueFromLuceneField(final String documentValue) { if (TextUtils.stringSet(documentValue)) { return constantsManager.getConstantObject(getConstantType(), documentValue); } return null; }
public Link createContentLink(RenderContext context, GenericLinkParser parser) throws ParseException { if (TextUtils.stringSet(parser.getAnchor())) { return new AnchorLink(parser); } else { return null; } } }
public void setIssueConstantTranslation(IssueConstant issueConstant, String issueConstantPrefix, Locale locale, String translatedName, String translatedDesc) { PropertySet ps = ((IssueConstantImpl) issueConstant).getPropertySet(); String issueConstantLocaleKey = issueConstantPrefix + issueConstant.getId() + "." + locale; // Set property if (TextUtils.stringSet(translatedName) && TextUtils.stringSet(translatedDesc)) ps.setString(issueConstantLocaleKey, translatedName + "\n" + translatedDesc); // Can't inject this due to circular dependency ComponentAccessor.getConstantsManager().invalidate(issueConstant); }
protected void doValidation() { if (!TextUtils.stringSet(name)) { addError("name", getText("admin.errors.please.specify.a.name")); return; } if (!projectManager.isProjectCategoryUnique(name)) { addError("name", getText("admin.errors.project.category.already.exists", "'" + name + "'")); } }
private String getTranslationFromDatabase(IssueConstant issueConstant, String locale, boolean name) { PropertySet ps = ((IssueConstantImpl) issueConstant).getPropertySet(); String translationPrefix = getTranslationPrefix(issueConstant); String translationString = ps.getString(translationPrefix + issueConstant.getId() + "." + locale); if (TextUtils.stringSet(translationString)) { return name ? getTranslatedNameFromString(translationString) : getTranslatedDescriptionFromString(translationString); } return null; }