1 package org.apache.archiva.rest.api.model;
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
22 import javax.xml.bind.annotation.XmlRootElement;
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.List;
28 * @author Olivier Lamy
30 @XmlRootElement( name = "repositoryScanning" )
31 public class RepositoryScanning
32 implements Serializable
37 private List<FileType> fileTypes;
40 * Field knownContentConsumers.
42 private List<String> knownContentConsumers;
45 * Field invalidContentConsumers.
47 private List<String> invalidContentConsumers;
49 public RepositoryScanning()
54 public RepositoryScanning( List<FileType> fileTypes, List<String> knownContentConsumers,
55 List<String> invalidContentConsumers )
57 this.fileTypes = fileTypes;
58 this.knownContentConsumers = knownContentConsumers;
59 this.invalidContentConsumers = invalidContentConsumers;
62 public List<FileType> getFileTypes()
64 if ( this.fileTypes == null )
66 this.fileTypes = new ArrayList<FileType>();
71 public void setFileTypes( List<FileType> fileTypes )
73 this.fileTypes = fileTypes;
76 public List<String> getKnownContentConsumers()
78 if ( this.knownContentConsumers == null )
80 this.knownContentConsumers = new ArrayList<String>();
82 return knownContentConsumers;
85 public void setKnownContentConsumers( List<String> knownContentConsumers )
87 this.knownContentConsumers = knownContentConsumers;
90 public List<String> getInvalidContentConsumers()
92 if ( this.invalidContentConsumers == null )
94 this.invalidContentConsumers = new ArrayList<String>();
96 return invalidContentConsumers;
99 public void setInvalidContentConsumers( List<String> invalidContentConsumers )
101 this.invalidContentConsumers = invalidContentConsumers;
105 public String toString()
107 final StringBuilder sb = new StringBuilder();
108 sb.append( "RepositoryScanning" );
109 sb.append( "{fileTypes=" ).append( fileTypes );
110 sb.append( ", knownContentConsumers=" ).append( knownContentConsumers );
111 sb.append( ", invalidContentConsumers=" ).append( invalidContentConsumers );
113 return sb.toString();