• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java GenericValue类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.ofbiz.core.entity.GenericValue的典型用法代码示例。如果您正苦于以下问题:Java GenericValue类的具体用法?Java GenericValue怎么用?Java GenericValue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



GenericValue类属于org.ofbiz.core.entity包,在下文中一共展示了GenericValue类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getIssueTypes

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private Collection<IssueType> getIssueTypes(final boolean bdIssueTypesAlreadyAdded) {
    final Collection<IssueType> issueTypes = new ArrayList<>();
    final IssueTypeMock issueType = new IssueTypeMock();
    issueType.setName("Task");
    issueType.setId("Task");
    issueType.setValue(Mockito.mock(GenericValue.class));
    issueTypes.add(issueType);
    if (bdIssueTypesAlreadyAdded) {
        final IssueTypeMock policyViolationIssue = new IssueTypeMock();
        policyViolationIssue.setName(HubJiraConstants.HUB_POLICY_VIOLATION_ISSUE);
        policyViolationIssue.setId(HubJiraConstants.HUB_POLICY_VIOLATION_ISSUE);
        policyViolationIssue.setValue(Mockito.mock(GenericValue.class));
        issueTypes.add(policyViolationIssue);
        final IssueTypeMock securityIssue = new IssueTypeMock();
        securityIssue.setName(HubJiraConstants.HUB_VULNERABILITY_ISSUE);
        securityIssue.setId(HubJiraConstants.HUB_VULNERABILITY_ISSUE);
        securityIssue.setValue(Mockito.mock(GenericValue.class));
        issueTypes.add(securityIssue);
    }
    return issueTypes;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:22,代码来源:JiraTaskSetupTest.java


示例2: buildIssueTypeScreenSchemeEntity

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private IssueTypeScreenSchemeEntity buildIssueTypeScreenSchemeEntity(
        final IssueType issueType, final FieldScreenScheme fieldScreenScheme) {
    final FieldScreenSchemeManager fieldScreenSchemeManager = jiraServices.getFieldScreenSchemeManager();
    final IssueTypeScreenSchemeEntity issueTypeScreenSchemeEntity = new IssueTypeScreenSchemeEntityImpl(
            jiraServices.getIssueTypeScreenSchemeManager(), (GenericValue) null, fieldScreenSchemeManager,
            jiraServices.getConstantsManager());
    issueTypeScreenSchemeEntity.setIssueTypeId(issueType.getId());
    issueTypeScreenSchemeEntity
            .setFieldScreenScheme(fieldScreenSchemeManager
                    .getFieldScreenScheme(fieldScreenScheme.getId()));
    return issueTypeScreenSchemeEntity;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:13,代码来源:HubIssueTypeSetup.java


示例3: generateMockIssueType

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private IssueType generateMockIssueType(final String name, final String description) {
    final IssueTypeMock newIssueType = new IssueTypeMock();
    newIssueType.setName(name);
    newIssueType.setDescription(description);
    newIssueType.setId("mockIssueTypeId" + issueTypeIndex);
    newIssueType.setValue(Mockito.mock(GenericValue.class));
    issueTypeIndex++;
    return newIssueType;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:10,代码来源:ConstantsManagerMock.java


示例4: addVulnIssueType

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private void addVulnIssueType(final List<IssueType> issueTypes) {
    final IssueTypeMock securityIssueType = new IssueTypeMock();
    securityIssueType.setName(HubJiraConstants.HUB_VULNERABILITY_ISSUE);
    securityIssueType.setId(HubJiraConstants.HUB_VULNERABILITY_ISSUE);
    securityIssueType.setValue(Mockito.mock(GenericValue.class));
    issueTypes.add(securityIssueType);
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:8,代码来源:HubFieldScreenSchemeSetupTest.java


示例5: addPolicyIssueType

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private void addPolicyIssueType(final List<IssueType> issueTypes) {
    final IssueTypeMock policyIssueType = new IssueTypeMock();
    policyIssueType.setName(HubJiraConstants.HUB_POLICY_VIOLATION_ISSUE);
    policyIssueType.setId(HubJiraConstants.HUB_POLICY_VIOLATION_ISSUE);
    policyIssueType.setValue(Mockito.mock(GenericValue.class));
    issueTypes.add(policyIssueType);
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:8,代码来源:HubFieldScreenSchemeSetupTest.java


示例6: initProjectOrFilter

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private void initProjectOrFilter() {
    String type;
    if (projectOrFilter.contains("-")) {
        type = projectOrFilter.split("-")[0];
        id = projectOrFilter.split("-")[1];
    } else {
        return;
    }

    List<GenericValue> result = null;
    Map<String, Object> mapWithIdToFindProjectOrFilterName = new HashMap<String, Object>();
    mapWithIdToFindProjectOrFilterName.put("id", id);

    if (FILTER.equals(type)) {
        query = getQueryFilter(id);
        result = ofBizDelegator.findByAnd("SearchRequest", mapWithIdToFindProjectOrFilterName);
        isFilter = true;
    }
    if (PROJECT.equals(type)) {
        query = getQueryProject(id);
        result = ofBizDelegator.findByAnd("Project", mapWithIdToFindProjectOrFilterName);
        isProject = true;
    }

    if (result != null && !result.isEmpty()) {
        name = result.get(0).getString("name");
    } else {
        name = "";
    }

    this.valid = true;
}
 
开发者ID:adamkrol93,项目名称:JRMP,代码行数:33,代码来源:ProjectOrFilter.java


示例7: setDefaultSecurityLevel

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
private void setDefaultSecurityLevel(MutableIssue issue) throws Exception {
        GenericValue project = issue.getProject();
        if (
//        		isEnterprise() && 
        		project != null) {
            IssueSecurityLevelManager issueSecurityLevelManager = ManagerFactory.getIssueSecurityLevelManager();
            final Long levelId = issueSecurityLevelManager.getSchemeDefaultSecurityLevel(project);
            if (levelId != null) {
                issue.setSecurityLevel(issueSecurityLevelManager.getIssueSecurity(levelId));
            }
        }
    }
 
开发者ID:bcopy,项目名称:JMH,代码行数:13,代码来源:AdvancedCreateIssueHandler.java


示例8: getGenericValue

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public GenericValue getGenericValue() {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:ProjectMock.java


示例9: getGenericValue

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public GenericValue getGenericValue() {
    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:5,代码来源:FieldLayoutSchemeMock.java


示例10: getProjects

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public Collection<GenericValue> getProjects() {
    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:5,代码来源:FieldLayoutSchemeMock.java


示例11: setGenericValue

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public void setGenericValue(final GenericValue arg0) {
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:4,代码来源:FieldLayoutSchemeMock.java


示例12: getCustomFieldInstance

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public CustomField getCustomFieldInstance(final GenericValue arg0) {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:CustomFieldManagerMock.java


示例13: getCustomFieldObjects

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public List<CustomField> getCustomFieldObjects(final GenericValue arg0) {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:CustomFieldManagerMock.java


示例14: getFieldLayout

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public FieldLayout getFieldLayout(final GenericValue arg0) {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:FieldLayoutManagerMock.java


示例15: getProjects

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public Collection<GenericValue> getProjects(final FieldConfigurationScheme arg0) {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:FieldLayoutManagerMock.java


示例16: getRelatedProjects

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public Collection<GenericValue> getRelatedProjects(final FieldLayout arg0) {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:FieldLayoutManagerMock.java


示例17: createIssue

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public GenericValue createIssue(final String arg0, final Map<String, Object> arg1) throws WorkflowException {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:WorkflowManagerMock.java


示例18: getWorkflow

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public JiraWorkflow getWorkflow(final GenericValue arg0) throws WorkflowException {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:WorkflowManagerMock.java


示例19: getWorkflowFromScheme

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public JiraWorkflow getWorkflowFromScheme(final GenericValue arg0, final String arg1) throws WorkflowException {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:WorkflowManagerMock.java


示例20: getWorkflowsFromScheme

import org.ofbiz.core.entity.GenericValue; //导入依赖的package包/类
@Override
public Collection<JiraWorkflow> getWorkflowsFromScheme(final GenericValue arg0) throws WorkflowException {

    return null;
}
 
开发者ID:blackducksoftware,项目名称:hub-jira,代码行数:6,代码来源:WorkflowManagerMock.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java HttpHeader类代码示例发布时间:2022-05-22
下一篇:
Java ConversionExecutor类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap