This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.rest.api.model;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *  http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import javax.xml.bind.annotation.XmlRootElement;
023import java.io.Serializable;
024
025/**
026 * AdminRepositoryConsumer
027 *
028 *
029 */
030@XmlRootElement( name = "adminRepositoryConsumer" )
031public class AdminRepositoryConsumer
032    implements Serializable
033{
034    private boolean enabled = false;
035
036    private String id;
037
038    private String description;
039
040    public AdminRepositoryConsumer()
041    {
042        // no op
043    }
044
045    public AdminRepositoryConsumer( boolean enabled, String id, String description )
046    {
047        this.enabled = enabled;
048        this.id = id;
049        this.description = description;
050    }
051
052    public String getDescription()
053    {
054        return description;
055    }
056
057    public String getId()
058    {
059        return id;
060    }
061
062    public boolean isEnabled()
063    {
064        return enabled;
065    }
066
067    public void setDescription( String description )
068    {
069        this.description = description;
070    }
071
072    public void setEnabled( boolean enabled )
073    {
074        this.enabled = enabled;
075    }
076
077    public void setId( String id )
078    {
079        this.id = id;
080    }
081}