diff options
author | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-11-09 17:32:45 +0100 |
---|---|---|
committer | Martin Stockhammer <martin.stockhammer@ars.de> | 2017-11-09 17:32:45 +0100 |
commit | e4af2d6c41cdf814bd5b3b6e8f33140d099d6f89 (patch) | |
tree | 39b5f7f008721e61c4f5ae1bc2f5e5a32ddf4aad /archiva-modules/archiva-base/archiva-repository-api | |
parent | e2cdbc2b7229b4c141a61c8f9aa118304bee2632 (diff) | |
download | archiva-e4af2d6c41cdf814bd5b3b6e8f33140d099d6f89.tar.gz archiva-e4af2d6c41cdf814bd5b3b6e8f33140d099d6f89.zip |
Moving some interfaces to the repository-api module
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-api')
2 files changed, 88 insertions, 0 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/connector/RepositoryConnector.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/connector/RepositoryConnector.java new file mode 100644 index 000000000..6f653e279 --- /dev/null +++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/connector/RepositoryConnector.java @@ -0,0 +1,45 @@ +package org.apache.archiva.repository.connector; + +/* + * 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.repository.ManagedRepositoryContent; +import org.apache.archiva.repository.RemoteRepositoryContent; + +import java.util.List; + +/** + * RepositoryConnector + * + * + */ +public interface RepositoryConnector +{ + ManagedRepositoryContent getSourceRepository(); + + RemoteRepositoryContent getTargetRepository(); + + List<String> getBlacklist(); + + List<String> getWhitelist(); + + boolean isDisabled(); + + void setDisabled(boolean disabled); +} diff --git a/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/PathParser.java b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/PathParser.java new file mode 100644 index 000000000..ddbcb6d59 --- /dev/null +++ b/archiva-modules/archiva-base/archiva-repository-api/src/main/java/org/apache/archiva/repository/content/PathParser.java @@ -0,0 +1,43 @@ +package org.apache.archiva.repository.content; + +/* + * 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.model.ArtifactReference; +import org.apache.archiva.repository.LayoutException; + +/** + * PathParser interface. + * + * + */ +public interface PathParser +{ + + /** + * Take a path and get the ArtifactReference associated with it. + * + * @param path the relative path to parse. + * @return the ArtifactReference for the provided path. (never null) + * @throws LayoutException if there was a problem parsing the path. + */ + ArtifactReference toArtifactReference( String path ) + throws LayoutException; + +} |