|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteRepositoryContent
RemoteRepositoryContent interface for interacting with a remote repository in an abstract way, without the need for processing based on URLs, or working with the database.
Method Summary | |
---|---|
String |
getId()
Convenience method to get the repository id. |
RemoteRepository |
getRepository()
Get the repository configuration associated with this repository content. |
RepositoryURL |
getURL()
Convenience method to get the repository url. |
void |
setRepository(RemoteRepository repo)
Set the repository configuration to associate with this repository content. |
ArtifactReference |
toArtifactReference(String path)
Given a repository relative path to a filename, return the VersionedReference object suitable for the path. |
String |
toPath(ArtifactReference reference)
Given an ArtifactReference, return the relative path to the artifact. |
RepositoryURL |
toURL(ArtifactReference reference)
Given an ArtifactReference, return the url to the artifact. |
Method Detail |
---|
String getId()
Convenience method to get the repository id.
Equivalent to calling .getRepository().getId()
RemoteRepository getRepository()
RepositoryURL getURL()
Convenience method to get the repository url.
Equivalent to calling new RepositoryURL( this.getRepository().getUrl() )
void setRepository(RemoteRepository repo)
repo
- the repository to associate with this repository content.ArtifactReference toArtifactReference(String path) throws LayoutException
VersionedReference
object suitable for the path.
path
- the path relative to the repository base dir for the artifact.
ArtifactReference
representing the path. (or null if path cannot be converted to
a ArtifactReference
)
LayoutException
- if there was a problem converting the path to an artifact.String toPath(ArtifactReference reference)
reference
- the artifact reference to use.
RepositoryURL toURL(ArtifactReference reference)
reference
- the artifact reference to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |