public List<ArchivaProjectModel> getUsedBy( final String principal, final List<String> observableRepositoryIds,
final String groupId, final String artifactId, final String version )
throws ArchivaDatabaseException
{
ProjectsByArtifactUsageConstraint constraint =
new ProjectsByArtifactUsageConstraint( groupId, artifactId, version );
List<ArchivaProjectModel> results = dao.getProjectModelDAO().queryProjectModels( constraint );
if ( results == null )
{
// defensive. to honor contract as specified. never null.
return Collections.emptyList();