/** * @see org.alfresco.service.cmr.rule.RuleType#getDisplayLabel() */ public String getDisplayLabel() { return I18NUtil.getMessage(this.name + "." + "display-label"); }
/** * Format date to ISO 8601 formatted string * * @param date Date * @return String */ public String toISO8601(Date date) { return ISO8601DateFormat.format(date); }
/** * Parse date from ISO formatted string * * @param isoDateString String * @return Date */ public Date fromISO8601(String isoDateString) { return ISO8601DateFormat.parse(isoDateString); }
/** * Construct * * @param storeRef StoreRef */ public Location(StoreRef storeRef) { ParameterCheck.mandatory("Store Ref", storeRef); this.storeRef = storeRef; }
@Override public String toString() { return content.toString(); }
/** * Add a newline to the buffer. * * @throws IOException * Signals that an I/O exception has occurred. */ public void newLine() throws IOException { write(lineSeparator); }
@Override public void addHeader(String name, String value) { doAddHeader(name, value); }
public final void setResponse(HttpServletResponse response) { this.response = response; this.fakeResponse = new FakeHttpServletResponse(response); }
/** * @see org.alfresco.service.cmr.action.ParameterizedItemDefinition#getTitle() */ public String getTitle() { return I18NUtil.getMessage(this.titleKey); }
public Association(ServiceRegistry services, AssociationRef assocRef, Scriptable scope) { ParameterCheck.mandatory("Service registry", services); ParameterCheck.mandatory("Association reference", assocRef); this.services = services; this.assocRef = assocRef; if (scope != null) { this.scope = scope; } }
@Override public String toString() { return content.toString(); }
/** * Add a newline to the buffer. * * @throws IOException * Signals that an I/O exception has occurred. */ public void newLine() throws IOException { write(lineSeparator); }
/** * Gets the description of the status code * * @return status code description */ public String getCodeDescription() { String codeDescription = I18NUtil.getMessage("webscript.code." + code + ".description"); return codeDescription == null ? "" : codeDescription; }
public void setFlashVersion(String flashVersion) { ParameterCheck.mandatory("flashVersion", flashVersion); this.flashVersion = flashVersion; }
private String getLocalisedMessage(String msgId, Object... params) { String localisedMsg = I18NUtil.getMessage(msgId, params); if (localisedMsg == null) { localisedMsg = msgId; } return localisedMsg; } }
/** * Gets the parameter definition display label from the properties file. * * @param paramName the name of the parameter * @return the diaplay label of the parameter */ protected String getParamDisplayLabel(String paramName) { return I18NUtil.getMessage(this.name + "." + paramName + "." + DISPLAY_LABEL); }
public DuplicateChildNodeNameException(NodeRef parentNodeRef, QName assocTypeQName, String name, Throwable e) { super(I18NUtil.getMessage(ERR_DUPLICATE_NAME, name), e); this.parentNodeRef = parentNodeRef; this.assocTypeQName = assocTypeQName; this.name = name; }