/** * @see org.alfresco.service.cmr.rule.RuleType#getDisplayLabel() */ public String getDisplayLabel() { return I18NUtil.getMessage(this.name + "." + "display-label"); }
/** * @see org.alfresco.service.cmr.action.ParameterizedItemDefinition#getTitle() */ public String getTitle() { return I18NUtil.getMessage(this.titleKey); }
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; }
/** * Gets the short name of the status code * * @return status code name */ public String getCodeName() { String codeName = I18NUtil.getMessage("webscript.code." + code + ".name"); return codeName == null ? "" : codeName; }
/** * 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; }
/** * 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; }
/** * Get the working copy label. * * @return the working copy label */ public static String getWorkingCopyLabel() { return I18NUtil.getMessage(MSG_WORKING_COPY_LABEL); }
@Override protected String applyInternal() throws Exception { return I18NUtil.getMessage(MSG_RESULT); } }
/** * Gets the short name of the status code * * @return status code name */ public String getCodeName() { String codeName = I18NUtil.getMessage("webscript.code." + code + ".name"); return codeName == null ? "" : codeName; }
/** * 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; }
/** * Log an I18Nized message to ERROR. * * @param logger the logger to use * @param messageKey the message key * @param args the required message arguments */ public static final void error(Log logger, String messageKey, Object ... args) { logger.error(I18NUtil.getMessage(messageKey, args)); }
/** * Log an I18Nized message to WARN. * * @param logger the logger to use * @param messageKey the message key * @param args the required message arguments */ public static final void warn(Log logger, String messageKey, Object ... args) { logger.warn(I18NUtil.getMessage(messageKey, args)); }
/** * @see org.alfresco.repo.admin.patch.AbstractPatch#applyInternal() */ @Override protected String applyInternal() throws Exception { updateTemplates(); return I18NUtil.getMessage("patch.updateFollowingEmailTemplatesPatch.result"); } }
/** * @see org.alfresco.repo.admin.patch.AbstractPatch#applyInternal() */ @Override protected String applyInternal() throws Exception { updateTemplates(); return I18NUtil.getMessage("patch.updateWorkflowNotificationTemplates.result"); } }
@Override protected FieldDefinition makeTransientFieldDefinition() { PropertyFieldDefinition fieldDef = new PropertyFieldDefinition(KEY, DATA_TYPE); fieldDef.setRepeating(false); fieldDef.setProtectedField(true); fieldDef.setLabel(I18NUtil.getMessage(MSG_LABEL)); fieldDef.setDescription(I18NUtil.getMessage(MSG_DESCRIPTION)); fieldDef.setDataKeyName(PROP_DATA_PREFIX + KEY); return fieldDef; }
@Override protected FieldDefinition makeTransientFieldDefinition() { PropertyFieldDefinition fieldDef = new PropertyFieldDefinition(KEY, DATA_TYPE); fieldDef.setRepeating(false); fieldDef.setProtectedField(true); fieldDef.setLabel(I18NUtil.getMessage(MSG_LABEL)); fieldDef.setDescription(I18NUtil.getMessage(MSG_DESCRIPTION)); fieldDef.setDataKeyName(PROP_DATA_PREFIX + KEY); return fieldDef; }
@Override protected FieldDefinition makeTransientFieldDefinition() { String dataKeyName = PROP_DATA_PREFIX + KEY; PropertyFieldDefinition sizeField = new PropertyFieldDefinition(KEY, DataTypeDefinition.LONG.getLocalName()); sizeField.setLabel(I18NUtil.getMessage(MSG_SIZE_LABEL)); sizeField.setDescription(I18NUtil.getMessage(MSG_SIZE_DESC)); sizeField.setDataKeyName(dataKeyName); sizeField.setProtectedField(true); return sizeField; }
@Override public String describe() { return I18NUtil.getMessage( "system.schema_comp.validation", getDbProperty().getDbObject().getTypeName(), getDbProperty().getPath(), getValue(), message); }