1 | |
package org.apache.maven.archiva.database.browsing; |
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
|
17 | |
|
18 | |
|
19 | |
|
20 | |
|
21 | |
|
22 | |
import org.apache.commons.collections.CollectionUtils; |
23 | |
|
24 | |
import java.util.List; |
25 | |
|
26 | |
|
27 | |
|
28 | |
|
29 | |
|
30 | |
|
31 | |
public class BrowsingResults |
32 | |
{ |
33 | |
private String selectedGroupId; |
34 | |
|
35 | |
private String selectedArtifactId; |
36 | |
|
37 | 0 | private List<String> selectedRepositoryIds = null; |
38 | |
|
39 | 0 | private List<String> groupIds = null; |
40 | |
|
41 | 0 | private List<String> artifacts = null; |
42 | |
|
43 | 0 | private List<String> versions = null; |
44 | |
|
45 | |
public BrowsingResults() |
46 | 0 | { |
47 | |
|
48 | 0 | } |
49 | |
|
50 | |
public BrowsingResults( String groupId ) |
51 | 0 | { |
52 | 0 | this.selectedGroupId = groupId; |
53 | 0 | } |
54 | |
|
55 | |
public BrowsingResults( String groupId, String artifactId ) |
56 | 0 | { |
57 | 0 | this.selectedGroupId = groupId; |
58 | 0 | this.selectedArtifactId = artifactId; |
59 | 0 | } |
60 | |
|
61 | |
public List<String> getArtifacts() |
62 | |
{ |
63 | 0 | return artifacts; |
64 | |
} |
65 | |
|
66 | |
public List<String> getGroupIds() |
67 | |
{ |
68 | 0 | return groupIds; |
69 | |
} |
70 | |
|
71 | |
public String getSelectedArtifactId() |
72 | |
{ |
73 | 0 | return selectedArtifactId; |
74 | |
} |
75 | |
|
76 | |
public String getSelectedGroupId() |
77 | |
{ |
78 | 0 | return selectedGroupId; |
79 | |
} |
80 | |
|
81 | |
public List<String> getVersions() |
82 | |
{ |
83 | 0 | return versions; |
84 | |
} |
85 | |
|
86 | |
public boolean hasArtifacts() |
87 | |
{ |
88 | 0 | return CollectionUtils.isNotEmpty( artifacts ); |
89 | |
} |
90 | |
|
91 | |
public boolean hasGroupIds() |
92 | |
{ |
93 | 0 | return CollectionUtils.isNotEmpty( groupIds ); |
94 | |
} |
95 | |
|
96 | |
public boolean hasVersions() |
97 | |
{ |
98 | 0 | return CollectionUtils.isNotEmpty( versions ); |
99 | |
} |
100 | |
|
101 | |
public void setArtifacts( List<String> artifacts ) |
102 | |
{ |
103 | 0 | this.artifacts = artifacts; |
104 | 0 | } |
105 | |
|
106 | |
public void setGroupIds( List<String> groupIds ) |
107 | |
{ |
108 | 0 | this.groupIds = groupIds; |
109 | 0 | } |
110 | |
|
111 | |
public void setVersions( List<String> versions ) |
112 | |
{ |
113 | 0 | this.versions = versions; |
114 | 0 | } |
115 | |
|
116 | |
public List<String> getSelectedRepositoryIds() |
117 | |
{ |
118 | 0 | return selectedRepositoryIds; |
119 | |
} |
120 | |
|
121 | |
public void setSelectedRepositoryIds( List<String> selectedRepositoryIds ) |
122 | |
{ |
123 | 0 | this.selectedRepositoryIds = selectedRepositoryIds; |
124 | 0 | } |
125 | |
} |