mirror of https://github.com/apache/archiva.git
Updating content item interfaces
This commit is contained in:
parent
f75938cf85
commit
e978e2bf21
|
@ -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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class ArchivaVersion extends ArchivaContentItem implements Version
|
||||||
|
|
||||||
public ArchivaVersion build() {
|
public ArchivaVersion build() {
|
||||||
if (this.version.asset == null) {
|
if (this.version.asset == null) {
|
||||||
this.version.project.getRepository( ).getRepository( ).getAsset( "" );
|
this.version.project.getRepository( ).getRepository().getAsset( "" );
|
||||||
}
|
}
|
||||||
return this.version;
|
return this.version;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue