Coverage Report - org.apache.archiva.web.xmlrpc.api.beans.ManagedRepository
 
Classes in this File Line Coverage Branch Coverage Complexity
ManagedRepository
0%
0/41
0%
0/14
0
 
 1  
 package org.apache.archiva.web.xmlrpc.api.beans;
 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 java.io.Serializable;
 23  
 
 24  
 import com.atlassian.xmlrpc.ServiceBean;
 25  
 import com.atlassian.xmlrpc.ServiceBeanField;
 26  
 
 27  
 @ServiceBean
 28  
 public class ManagedRepository
 29  
     implements Serializable
 30  
 {    
 31  
     private String id;
 32  
    
 33  
     private String name;
 34  
    
 35  
     private String url;
 36  
 
 37  
     private String layout;
 38  
 
 39  0
     private boolean snapshots = false;
 40  
 
 41  0
     private boolean releases = false;
 42  
    
 43  
     public ManagedRepository()
 44  0
     {
 45  
         
 46  0
     }
 47  
     
 48  
     public ManagedRepository( String id, String name, String url, String layout, boolean snapshots, boolean releases )
 49  0
     {
 50  0
         this.id = id;
 51  0
         this.name = name;
 52  0
         this.url = url;
 53  0
         this.layout = layout;
 54  0
         this.snapshots = snapshots;
 55  0
         this.releases = releases;
 56  0
     }
 57  
     
 58  
     public boolean equals(Object other)
 59  
     {
 60  0
         if ( this == other)
 61  
         {
 62  0
             return true;
 63  
         }
 64  
         
 65  0
         if ( !(other instanceof ManagedRepository) )
 66  
         {
 67  0
             return false;
 68  
         }
 69  
         
 70  0
         ManagedRepository that = (ManagedRepository) other;
 71  0
         boolean result = true;
 72  0
         result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
 73  0
         return result;
 74  
     } 
 75  
     
 76  
     public String getId()
 77  
     {
 78  0
         return this.id;
 79  
     } 
 80  
 
 81  
     public String getLayout()
 82  
     {
 83  0
         return this.layout;
 84  
     } 
 85  
 
 86  
     public String getName()
 87  
     {
 88  0
         return this.name;
 89  
     }
 90  
     
 91  
     public String getUrl()
 92  
     {
 93  0
         return this.url;
 94  
     } 
 95  
     
 96  
     public int hashCode()
 97  
     {
 98  0
         int result = 17;
 99  0
         result = 37 * result + ( id != null ? id.hashCode() : 0 );
 100  0
         return result;
 101  
     } 
 102  
 
 103  
     public boolean isReleases()
 104  
     {
 105  0
         return this.releases;
 106  
     } 
 107  
 
 108  
     /**
 109  
      * Get null
 110  
      */
 111  
     public boolean isSnapshots()
 112  
     {
 113  0
         return this.snapshots;
 114  
     } 
 115  
     
 116  
     @ServiceBeanField( "id" )
 117  
     public void setId(String id)
 118  
     {
 119  0
         this.id = id;
 120  0
     } 
 121  
     
 122  
     @ServiceBeanField( "layout" )
 123  
     public void setLayout(String layout)
 124  
     {
 125  0
         this.layout = layout;
 126  0
     } 
 127  
 
 128  
     @ServiceBeanField( "name" )
 129  
     public void setName(String name)
 130  
     {
 131  0
         this.name = name;
 132  0
     } 
 133  
     
 134  
     @ServiceBeanField( "releases" )
 135  
     public void setReleases(boolean releases)
 136  
     {
 137  0
         this.releases = releases;
 138  0
     } 
 139  
 
 140  
     @ServiceBeanField( "snapshots" )
 141  
     public void setSnapshots(boolean snapshots)
 142  
     {
 143  0
         this.snapshots = snapshots;
 144  0
     } 
 145  
 
 146  
     @ServiceBeanField( "url" )
 147  
     public void setUrl(String url)
 148  
     {
 149  0
         this.url = url;
 150  0
     }
 151  
 }