Package com.atlassian.jira.project
Class DefaultProjectFactory
java.lang.Object
com.atlassian.jira.project.DefaultProjectFactory
- All Implemented Interfaces:
ProjectFactory
Implementation that generates project objects.
Note that this class cannot use constructor injection because of cyclic dependencies.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProject(org.ofbiz.core.entity.GenericValue projectGV) Returns a project object that is backed by the given generic value.getProjects(Collection<org.ofbiz.core.entity.GenericValue> projectGVs) Returns the collection of Project objects that are backed by the GenericValue objects in the given collection.
-
Constructor Details
-
DefaultProjectFactory
public DefaultProjectFactory()
-
-
Method Details
-
getProject
Description copied from interface:ProjectFactoryReturns a project object that is backed by the given generic value.- Specified by:
getProjectin interfaceProjectFactory- Parameters:
projectGV- project generic value- Returns:
- existing project or null if project does not exist
-
getProjects
@Nonnull public List<Project> getProjects(@Nonnull Collection<org.ofbiz.core.entity.GenericValue> projectGVs) Description copied from interface:ProjectFactoryReturns the collection of Project objects that are backed by the GenericValue objects in the given collection.- Specified by:
getProjectsin interfaceProjectFactory- Parameters:
projectGVs- GenericValues of projects to return.- Returns:
- the Collection of existing projects, possibly empty, never null.
-