Coverage Report - org.apache.maven.archiva.database.browsing.BrowsingResults
 
Classes in this File Line Coverage Branch Coverage Complexity
BrowsingResults
0%
0/30
N/A
0
 
 1  
 package org.apache.maven.archiva.database.browsing;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *  http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import org.apache.commons.collections.CollectionUtils;
 23  
 
 24  
 import java.util.List;
 25  
 
 26  
 /**
 27  
  * BrowsingResults 
 28  
  *
 29  
  * @version $Id: BrowsingResults.java 718864 2008-11-19 06:33:35Z brett $
 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  
         /* do nothing, this is the results of the root */
 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  
 }