本文整理汇总了Java中framework.utils.Msg.get方法的典型用法代码示例。如果您正苦于以下问题:Java Msg.get方法的具体用法?Java Msg.get怎么用?Java Msg.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类framework.utils.Msg
的用法示例。
在下文中一共展示了Msg.get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: rejectAgreementLink
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public void rejectAgreementLink(DataSyndicationAgreementLink agreementLink) throws EchannelException {
echannelService.rejectAgreementLink(agreementLink.id);
try {
String actionLink = null;
if (agreementLink.dataType.equals(PortfolioEntry.class.getName())) {
actionLink = agreementLink.agreement.masterPartner.baseUrl + controllers.core.routes.PortfolioEntryDataSyndicationController
.viewAgreementLink(agreementLink.masterObjectId, agreementLink.id).url();
}
String title = Msg.get(this.lang, "data_syndication.reject_agreement_link.notification.title");
String message = Msg.get(this.lang, "data_syndication.reject_agreement_link.notification.message", actionLink);
echannelService.createNotificationEvent(agreementLink.agreement.masterPartner.domain,
getRecipientsDescriptorAsPrincipal(agreementLink.masterPrincipalUid), title, message, actionLink);
} catch (Exception e) {
Logger.error("Error when creating notification event for rejectAgreementLink action", e);
}
}
示例2: deleteAgreementLink
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public void deleteAgreementLink(DataSyndicationAgreementLink agreementLink) throws EchannelException {
echannelService.deleteAgreementLink(agreementLink.id);
try {
String title = Msg.get(this.lang, "data_syndication.delete_agreement_link.notification.title");
String message = Msg.get(this.lang, "data_syndication.delete_agreement_link.notification.message", agreementLink.agreement.name);
String masterActionLink = agreementLink.agreement.masterPartner.baseUrl
+ controllers.admin.routes.DataSyndicationController.viewMasterAgreements().url();
echannelService.createNotificationEvent(agreementLink.agreement.masterPartner.domain, getRecipientsDescriptorAsPartnerAdmin(), title, message,
masterActionLink);
String slaveActionLink = agreementLink.agreement.slavePartner.baseUrl
+ controllers.admin.routes.DataSyndicationController.viewMasterAgreements().url();
echannelService.createNotificationEvent(agreementLink.agreement.slavePartner.domain, getRecipientsDescriptorAsPartnerAdmin(), title, message,
slaveActionLink);
} catch (Exception e) {
Logger.error("Error when creating notification event for deleteAgreementLink action", e);
}
}
示例3: RequirementStatusListView
import framework.utils.Msg; //导入方法依赖的package包/类
/**
* Construct a list view with a DB entry.
*
* @param requirementStatus
* the requirement status in the DB
*/
public RequirementStatusListView(RequirementStatus requirementStatus) {
this.id = requirementStatus.id;
this.type = Msg.get("object.requirement_status.type." + requirementStatus.type.name() + ".label");
this.name = requirementStatus.name;
this.description = requirementStatus.description;
}
示例4: parse
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public boolean parse(II18nMessagesPlugin i18nMessagesPlugin, String text) {
if (StringUtils.isBlank(text)) {
this.value = null;
if (customAttributeDefinition.isRequired()) {
this.hasError = true;
this.errorMessage = Msg.get(customAttributeDefinition.getRequiredMessage());
return false;
}
} else {
try {
this.value = new BigDecimal(text);
} catch (NumberFormatException e) {
this.hasError = true;
this.errorMessage = Msg.get(GENERIC_INVALID_ERROR_MESSAGE);
return false;
}
if (this.value.longValue() > customAttributeDefinition.maxBoundary()) {
this.hasError = true;
this.errorMessage = Msg.get(customAttributeDefinition.getMaxBoundaryMessage(), customAttributeDefinition.maxBoundary());
return false;
}
if (this.value.longValue() < customAttributeDefinition.minBoundary()) {
this.hasError = true;
this.errorMessage = Msg.get(customAttributeDefinition.getMinBoundaryMessage(), customAttributeDefinition.minBoundary());
return false;
}
}
return true;
}
示例5: renderFormField
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public Html renderFormField(II18nMessagesPlugin i18nMessagesPlugin, IUserSessionManagerPlugin userSessionManagerPlugin,
IImplementationDefinedObjectService implementationDefinedObjectService, Field field, boolean displayDescription) {
String description = "";
if (displayDescription) {
description = Msg.get(customAttributeDefinition.description);
}
return views.html.framework_views.parts.dropdownlist.render(field, Msg.get(customAttributeDefinition.name),
CustomAttributeItemOption.getSelectableValuesForDefinitionId(customAttributeDefinition.id), description, true,
customAttributeDefinition.isRequired(), false, false);
}
示例6: displayRegistrationForm
import framework.utils.Msg; //导入方法依赖的package包/类
@Restrict({ @Group(IMafConstants.ADMIN_PLUGIN_MANAGER_PERMISSION) })
public Result displayRegistrationForm(String pluginDefinitionIdentifier) {
PluginRegistrationFormObject pluginRegistrationFormObject = new PluginRegistrationFormObject();
IPluginDescriptor pluginRunnerDescriptor = getPluginManagerService().getAvailablePluginDescriptor(pluginDefinitionIdentifier);
if (pluginRunnerDescriptor == null || (!pluginRunnerDescriptor.multiInstanceAllowed()
&& getAlreadyRegisteredPlugins(getPluginManagerService()).contains(pluginDefinitionIdentifier))) {
return badRequest();
}
String definitionName = Msg.get(pluginRunnerDescriptor.getName());
pluginRegistrationFormObject.definitionName = definitionName;
pluginRegistrationFormObject.identifier = pluginDefinitionIdentifier;
pluginRegistrationFormObject.name = definitionName + " " + String.format("%1$td/%1$tm/%1$tY", new Date());
return ok(views.html.admin.plugin.pluginmanager_registration_form.render(registrationFormTemplate.fill(pluginRegistrationFormObject)));
}
示例7: getDescription
import framework.utils.Msg; //导入方法依赖的package包/类
/**
* Get the description.
*/
@JsonProperty(value = "description")
public String getDescription() {
return Msg.get(this.description);
}
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:8,代码来源:PortfolioEntryPlanningPackageGroup.java
示例8: getName
import framework.utils.Msg; //导入方法依赖的package包/类
/**
* Get the name.
*/
public String getName() {
return Msg.get(this.name);
}
示例9: getDescription
import framework.utils.Msg; //导入方法依赖的package包/类
/**
* Get the description.
*/
public String getDescription() {
return Msg.get(this.description);
}
示例10: getLabel
import framework.utils.Msg; //导入方法依赖的package包/类
public String getLabel() {
return Msg.get("custom_attribute.type." + name() + ".label");
}
示例11: getName
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public String getName() {
return Msg.get(this.name);
}
示例12: toString
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public String toString() {
return Msg.get(this.name);
}
示例13: getDescription
import framework.utils.Msg; //导入方法依赖的package包/类
@Override
@JsonProperty(value = "description")
public String getDescription() {
return Msg.get(description);
}
示例14: getName
import framework.utils.Msg; //导入方法依赖的package包/类
/**
* Get the translated name.
*/
public String getName() {
return Msg.get(this.name);
}
示例15: getName
import framework.utils.Msg; //导入方法依赖的package包/类
/**
* Get the name.
*/
public String getName() {
return Msg.get(name);
}