当前位置: 首页>>代码示例>>Java>>正文


Java Msg.get方法代码示例

本文整理汇总了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);
    }

}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:25,代码来源:DataSyndicationServiceImpl.java

示例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);
    }
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:24,代码来源:DataSyndicationServiceImpl.java

示例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;

}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:15,代码来源:RequirementStatusListView.java

示例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;
}
 
开发者ID:theAgileFactory,项目名称:app-framework,代码行数:31,代码来源:DecimalCustomAttributeValue.java

示例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);
}
 
开发者ID:theAgileFactory,项目名称:app-framework,代码行数:12,代码来源:SingleItemCustomAttributeValue.java

示例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)));
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-app,代码行数:16,代码来源:PluginManagerController.java

示例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);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:7,代码来源:Requirement.java

示例9: getDescription

import framework.utils.Msg; //导入方法依赖的package包/类
/**
 * Get the description.
 */
public String getDescription() {
    return Msg.get(this.description);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:7,代码来源:TimesheetActivity.java

示例10: getLabel

import framework.utils.Msg; //导入方法依赖的package包/类
public String getLabel() {
    return Msg.get("custom_attribute.type." + name() + ".label");
}
 
开发者ID:theAgileFactory,项目名称:app-framework,代码行数:4,代码来源:ICustomAttributeValue.java

示例11: getName

import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public String getName() {
    return Msg.get(this.name);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:5,代码来源:PortfolioEntryPlanningPackageType.java

示例12: toString

import framework.utils.Msg; //导入方法依赖的package包/类
@Override
public String toString() {
    return Msg.get(this.name);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:5,代码来源:PortfolioEntryDependencyType.java

示例13: getDescription

import framework.utils.Msg; //导入方法依赖的package包/类
@Override
@JsonProperty(value = "description")
public String getDescription() {
    return Msg.get(description);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:6,代码来源:PortfolioType.java

示例14: getName

import framework.utils.Msg; //导入方法依赖的package包/类
/**
 * Get the translated name.
 */
public String getName() {
    return Msg.get(this.name);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:7,代码来源:RequirementPriority.java

示例15: getName

import framework.utils.Msg; //导入方法依赖的package包/类
/**
 * Get the name.
 */
public String getName() {
    return Msg.get(name);
}
 
开发者ID:theAgileFactory,项目名称:maf-desktop-datamodel,代码行数:7,代码来源:LifeCyclePhase.java


注:本文中的framework.utils.Msg.get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。