diff options
author | Olivier Lamy <olamy@apache.org> | 2012-10-23 13:29:38 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-10-23 13:29:38 +0000 |
commit | 0835fd6be48d57592fdca491f5c1a0fdb956dd9a (patch) | |
tree | d1a7f00690f889ca3c4024cc991ccd8f2e8f9cc0 /archiva-modules/metadata | |
parent | ef66c2d19fdb5e17eb23a1bc2a669211c67f270e (diff) | |
download | archiva-0835fd6be48d57592fdca491f5c1a0fdb956dd9a.tar.gz archiva-0835fd6be48d57592fdca491f5c1a0fdb956dd9a.zip |
use a new bean rather than a lot of params to ease futur enhancements better with adding the class
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1401290 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata')
-rw-r--r-- | archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/ReadMetadataRequest.java | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/ReadMetadataRequest.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/ReadMetadataRequest.java new file mode 100644 index 000000000..c16e83232 --- /dev/null +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/storage/ReadMetadataRequest.java @@ -0,0 +1,138 @@ +package org.apache.archiva.metadata.repository.storage; +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +import org.apache.archiva.metadata.repository.filter.Filter; + +/** + * @author Olivier Lamy + * @since 1.4-M4 + */ +public class ReadMetadataRequest +{ + private String repoId; + + private String namespace; + + private String projectId; + + private String projectVersion; + + private Filter<String> filter; + + public ReadMetadataRequest() + { + // no op + } + + public ReadMetadataRequest( String repoId, String namespace, String projectId, String projectVersion ) + { + this.repoId = repoId; + this.namespace = namespace; + this.projectId = projectId; + this.projectVersion = projectVersion; + } + + public ReadMetadataRequest( String repoId, String namespace, String projectId, String projectVersion, + Filter<String> filter ) + { + this( repoId, namespace, projectId, projectVersion ); + this.filter = filter; + } + + public String getRepoId() + { + return repoId; + } + + public void setRepoId( String repoId ) + { + this.repoId = repoId; + } + + public ReadMetadataRequest repoId( String repoId ) + { + this.repoId = repoId; + return this; + } + + public String getNamespace() + { + return namespace; + } + + public void setNamespace( String namespace ) + { + this.namespace = namespace; + } + + public ReadMetadataRequest namespace( String namespace ) + { + this.namespace = namespace; + return this; + } + + public String getProjectId() + { + return projectId; + } + + public void setProjectId( String projectId ) + { + this.projectId = projectId; + } + + public ReadMetadataRequest projectId( String projectId ) + { + this.projectId = projectId; + return this; + } + + public String getProjectVersion() + { + return projectVersion; + } + + public void setProjectVersion( String projectVersion ) + { + this.projectVersion = projectVersion; + } + + public ReadMetadataRequest projectVersion( String projectVersion ) + { + this.projectVersion = projectVersion; + return this; + } + + public Filter<String> getFilter() + { + return filter; + } + + public void setFilter( Filter<String> filter ) + { + this.filter = filter; + } + + public ReadMetadataRequest filter( Filter<String> filter ) + { + this.filter = filter; + return this; + } +} |