001package org.apache.archiva.admin.model.beans; 002/* 003 * Licensed to the Apache Software Foundation (ASF) under one 004 * or more contributor license agreements. See the NOTICE file 005 * distributed with this work for additional information 006 * regarding copyright ownership. The ASF licenses this file 007 * to you under the Apache License, Version 2.0 (the 008 * "License"); you may not use this file except in compliance 009 * with the License. You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, 014 * software distributed under the License is distributed on an 015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 016 * KIND, either express or implied. See the License for the 017 * specific language governing permissions and limitations 018 * under the License. 019 */ 020 021import javax.xml.bind.annotation.XmlRootElement; 022 023/** 024 * @author Olivier Lamy 025 * @since 1.4-M1 026 */ 027@XmlRootElement( name = "organisationInformation" ) 028public class OrganisationInformation 029{ 030 /** 031 * name of the organisation. 032 */ 033 private String name; 034 035 /** 036 * name of the organisation. 037 */ 038 private String url; 039 040 /** 041 * name of the organisation. 042 */ 043 private String logoLocation; 044 045 public OrganisationInformation() 046 { 047 // no op 048 } 049 050 public OrganisationInformation( String name, String url, String logoLocation ) 051 { 052 this.name = name; 053 this.url = url; 054 this.logoLocation = logoLocation; 055 } 056 057 public String getName() 058 { 059 return name; 060 } 061 062 public void setName( String name ) 063 { 064 this.name = name; 065 } 066 067 public String getUrl() 068 { 069 return url; 070 } 071 072 public void setUrl( String url ) 073 { 074 this.url = url; 075 } 076 077 public String getLogoLocation() 078 { 079 return logoLocation; 080 } 081 082 public void setLogoLocation( String logoLocation ) 083 { 084 this.logoLocation = logoLocation; 085 } 086 087 @Override 088 public String toString() 089 { 090 final StringBuilder sb = new StringBuilder(); 091 sb.append( "OrganisationInformation" ); 092 sb.append( "{name='" ).append( name ).append( '\'' ); 093 sb.append( ", url='" ).append( url ).append( '\'' ); 094 sb.append( ", logoLocation='" ).append( logoLocation ).append( '\'' ); 095 sb.append( '}' ); 096 return sb.toString(); 097 } 098}