mirror of
https://github.com/DependencyTrack/dependency-track.git
synced 2025-10-19 16:03:19 +00:00
Remove deprecated getAllProjects
methods
Signed-off-by: nscuro <nscuro@protonmail.com>
This commit is contained in:
parent
0ebbc5a325
commit
4a0df1beef
3 changed files with 5 additions and 43 deletions
|
@ -176,33 +176,6 @@ final class ProjectQueryManager extends QueryManager implements IQueryManager {
|
|||
return getProjects(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all projects.
|
||||
* This method if designed NOT to provide paginated results.
|
||||
* @return a List of Projects
|
||||
*/
|
||||
@Override
|
||||
@Deprecated(forRemoval = true, since = "4.12.4")
|
||||
public List<Project> getAllProjects() {
|
||||
return getAllProjects(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of all projects.
|
||||
* This method if designed NOT to provide paginated results.
|
||||
* @return a List of Projects
|
||||
*/
|
||||
@Override
|
||||
@Deprecated(forRemoval = true, since = "4.12.4")
|
||||
public List<Project> getAllProjects(boolean excludeInactive) {
|
||||
final Query<Project> query = pm.newQuery(Project.class);
|
||||
if (excludeInactive) {
|
||||
query.setFilter("active");
|
||||
}
|
||||
query.setOrdering("id asc");
|
||||
return query.executeList();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of projects by their name.
|
||||
* @param name the name of the Projects (required)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue