Updating content item interfaces

This commit is contained in:
Martin Stockhammer 2020-02-12 21:12:09 +01:00
parent f75938cf85
commit e978e2bf21
2 changed files with 13 additions and 7 deletions

View File

@ -19,11 +19,8 @@ package org.apache.archiva.repository.content;
* under the License. * under the License.
*/ */
import org.apache.archiva.repository.RepositoryContent; import org.apache.archiva.repository.ManagedRepositoryContent;
import org.apache.archiva.repository.UnsupportedConversionException; import org.apache.archiva.repository.storage.StorageAsset;
import org.apache.archiva.repository.UnsupportedRepositoryTypeException;
import java.util.Map;
/** /**
* *
@ -60,6 +57,15 @@ public interface Project extends ContentItem
* The repository this project is part of. * The repository this project is part of.
* @return the repository content * @return the repository content
*/ */
RepositoryContent getRepository(); ManagedRepositoryContent getRepository();
/**
* Returns the asset that corresponds to this project.
* It depends of the implementation, if the asset provides additional information about the
* project or not.
*
* @return the repository asset that represents this project
*/
StorageAsset getAsset();
} }