本文整理汇总了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;未经允许,请勿转载。 |
请发表评论