001package org.apache.archiva.redback.rest.api.model.v2; 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 io.swagger.v3.oas.annotations.media.Schema; 022 023import javax.xml.bind.annotation.XmlRootElement; 024import java.io.Serializable; 025 026/** 027 * @author Olivier Lamy 028 */ 029@XmlRootElement( name = "application" ) 030@Schema(name="Application", description = "A single application that is used for defining roles") 031public class Application 032 implements Serializable 033{ 034 private static final long serialVersionUID = -4738856943947960583L; 035 036 private String version; 037 private String id; 038 private String description; 039 private String longDescription; 040 041 public Application() 042 { 043 // no op 044 } 045 046 @Schema(description = "The application version. Used to separate different sets of roles.") 047 public String getVersion() 048 { 049 return version; 050 } 051 052 public void setVersion( String version ) 053 { 054 this.version = version; 055 } 056 057 @Schema(description = "The identifier of the application") 058 public String getId() 059 { 060 return id; 061 } 062 063 public void setId( String id ) 064 { 065 this.id = id; 066 } 067 068 @Schema(description = "A short description.") 069 public String getDescription() 070 { 071 return description; 072 } 073 074 public void setDescription( String description ) 075 { 076 this.description = description; 077 } 078 079 @Schema(name="long_description", description = "May be a longer explanation, of the application purpose and its defined roles.") 080 public String getLongDescription() 081 { 082 return longDescription; 083 } 084 085 public void setLongDescription( String longDescription ) 086 { 087 this.longDescription = longDescription; 088 } 089}