This project has retired. For details please refer to its Attic page.
DefaultRepositoryBrowsing

org.apache.maven.archiva.database.browsing
Class DefaultRepositoryBrowsing

Package class diagram package DefaultRepositoryBrowsing
java.lang.Object
  extended by org.apache.maven.archiva.database.browsing.DefaultRepositoryBrowsing
All Implemented Interfaces:
RepositoryBrowsing

public class DefaultRepositoryBrowsing
extends java.lang.Object
implements RepositoryBrowsing

DefaultRepositoryBrowsing


Constructor Summary
DefaultRepositoryBrowsing()
           
 
Method Summary
 java.util.List<java.lang.String> getOtherSnapshotVersions(java.util.List<java.lang.String> observableRepositoryIds, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
          Get the other versions of the given SNAPSHOT version.
 java.lang.String getRepositoryId(java.lang.String principal, java.util.List<java.lang.String> observableRepositoryIds, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
 BrowsingResults getRoot(java.lang.String principal, java.util.List<java.lang.String> observableRepositoryIds)
          Get the BrowsingResults for the root of the repository.
 java.util.List<org.apache.maven.archiva.model.ArchivaProjectModel> getUsedBy(java.lang.String principal, java.util.List<java.lang.String> observableRepositoryIds, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
          Get the List of ArchivaProjectModel that are used by the provided groupId, artifactId, and version specified.
 BrowsingResults selectArtifactId(java.lang.String principal, java.util.List<java.lang.String> observableRepositoryIds, java.lang.String groupId, java.lang.String artifactId)
          Get the BrowsingResults for the selected groupId & artifactId.
 BrowsingResults selectGroupId(java.lang.String principal, java.util.List<java.lang.String> observableRepositoryIds, java.lang.String groupId)
          Get the BrowsingResults for the selected groupId.
 org.apache.maven.archiva.model.ArchivaProjectModel selectVersion(java.lang.String principal, java.util.List<java.lang.String> observableRepositoryIds, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
          Get the ArchivaProjectModel for the selected groupId / artifactId / version combo.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepositoryBrowsing

public DefaultRepositoryBrowsing()
Method Detail

getRoot

public BrowsingResults getRoot(java.lang.String principal,
                               java.util.List<java.lang.String> observableRepositoryIds)
Description copied from interface: RepositoryBrowsing
Get the BrowsingResults for the root of the repository.

Specified by:
getRoot in interface RepositoryBrowsing
Returns:
the root browsing results.
See Also:
RepositoryBrowsing.getRoot(String, List)

selectArtifactId

public BrowsingResults selectArtifactId(java.lang.String principal,
                                        java.util.List<java.lang.String> observableRepositoryIds,
                                        java.lang.String groupId,
                                        java.lang.String artifactId)
Description copied from interface: RepositoryBrowsing
Get the BrowsingResults for the selected groupId & artifactId.

Specified by:
selectArtifactId in interface RepositoryBrowsing
groupId - the groupId selected
artifactId - the artifactId selected
Returns:
the BrowsingResults for the specified groupId / artifactId combo.
See Also:
RepositoryBrowsing.selectArtifactId(String, List, String, String)

selectGroupId

public BrowsingResults selectGroupId(java.lang.String principal,
                                     java.util.List<java.lang.String> observableRepositoryIds,
                                     java.lang.String groupId)
Description copied from interface: RepositoryBrowsing
Get the BrowsingResults for the selected groupId.

Specified by:
selectGroupId in interface RepositoryBrowsing
groupId - the groupId to select.
Returns:
the BrowsingResults for the specified groupId.
See Also:
RepositoryBrowsing.selectGroupId(String, List, String)

selectVersion

public org.apache.maven.archiva.model.ArchivaProjectModel selectVersion(java.lang.String principal,
                                                                        java.util.List<java.lang.String> observableRepositoryIds,
                                                                        java.lang.String groupId,
                                                                        java.lang.String artifactId,
                                                                        java.lang.String version)
                                                                 throws ObjectNotFoundException,
                                                                        ArchivaDatabaseException
Description copied from interface: RepositoryBrowsing
Get the ArchivaProjectModel for the selected groupId / artifactId / version combo.

Specified by:
selectVersion in interface RepositoryBrowsing
groupId - the groupId selected
artifactId - the artifactId selected
version - the version selected
Returns:
the ArchivaProjectModel for the selected groupId / artifactId / version combo.
Throws:
ObjectNotFoundException - if the artifact object or project object isn't found in the database.
ArchivaDatabaseException - if there is a fundamental database error.
See Also:
RepositoryBrowsing.selectVersion(String, List, String, String, String)

getRepositoryId

public java.lang.String getRepositoryId(java.lang.String principal,
                                        java.util.List<java.lang.String> observableRepositoryIds,
                                        java.lang.String groupId,
                                        java.lang.String artifactId,
                                        java.lang.String version)
                                 throws ObjectNotFoundException,
                                        ArchivaDatabaseException
Specified by:
getRepositoryId in interface RepositoryBrowsing
Throws:
ObjectNotFoundException
ArchivaDatabaseException

getOtherSnapshotVersions

public java.util.List<java.lang.String> getOtherSnapshotVersions(java.util.List<java.lang.String> observableRepositoryIds,
                                                                 java.lang.String groupId,
                                                                 java.lang.String artifactId,
                                                                 java.lang.String version)
                                                          throws ObjectNotFoundException,
                                                                 ArchivaDatabaseException
Description copied from interface: RepositoryBrowsing
Get the other versions of the given SNAPSHOT version.

Specified by:
getOtherSnapshotVersions in interface RepositoryBrowsing
Returns:
Throws:
ObjectNotFoundException
ArchivaDatabaseException
See Also:
RepositoryBrowsing.getOtherSnapshotVersions(List, String, String, String)

getUsedBy

public java.util.List<org.apache.maven.archiva.model.ArchivaProjectModel> getUsedBy(java.lang.String principal,
                                                                                    java.util.List<java.lang.String> observableRepositoryIds,
                                                                                    java.lang.String groupId,
                                                                                    java.lang.String artifactId,
                                                                                    java.lang.String version)
                                                                             throws ArchivaDatabaseException
Description copied from interface: RepositoryBrowsing
Get the List of ArchivaProjectModel that are used by the provided groupId, artifactId, and version specified.

Specified by:
getUsedBy in interface RepositoryBrowsing
groupId - the groupId selected
artifactId - the artifactId selected
version - the version selected
Returns:
the List of ArchivaProjectModel objects. (never null, but can be empty)
Throws:
ArchivaDatabaseException - if there is a fundamental database error.