001package org.apache.archiva.redback.rest.api.model.v2;/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 * Unless required by applicable law or agreed to in writing,
012 * software distributed under the License is distributed on an
013 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
014 * KIND, either express or implied.  See the License for the
015 * specific language governing permissions and limitations
016 * under the License.
017 */
018
019import io.swagger.v3.oas.annotations.media.Schema;
020
021import java.io.Serializable;
022
023/**
024 * Information about a group.
025 *
026 * @since 3.0
027 * @author Martin Stockhammer <martin_s@apache.org>
028 */
029@Schema( name = "Group", description = "Group information" )
030public class BaseGroupInfo implements Serializable
031{
032    private static final long serialVersionUID = 2945927911204165322L;
033    private String id;
034    private String groupName;
035    private String description = "";
036
037    public BaseGroupInfo( )
038    {
039
040    }
041
042    public BaseGroupInfo( String id, String groupName )
043    {
044        this.id = id;
045        this.groupName = groupName;
046    }
047
048    @Schema(name="group_name", description = "The name of the group")
049    public String getGroupName( )
050    {
051        return groupName;
052    }
053
054    public void setGroupName( String groupName )
055    {
056        this.groupName = groupName;
057    }
058
059    @Schema( description = "The unique identifier of the group" )
060    public String getId( )
061    {
062        return id;
063    }
064
065    public void setId( String id )
066    {
067        this.id = id;
068    }
069
070    @Schema( description = "A description of the group" )
071    public String getDescription( )
072    {
073        return description;
074    }
075
076    public void setDescription( String description )
077    {
078        this.description = description;
079    }
080}