@Override public void deleteFromIndex( String repositoryId, String groupId, String artifactId, String version, String extension, String classifier ) throws IOException { final RepositoryIndexer indexer = repositoryIndexManager.getRepositoryIndex( repositoryId ); if ( indexer != null ) { indexer.delete( Arrays.asList( new ArtifactInfo( repositoryId, groupId, artifactId, version, classifier, extension ) ) ); } }
public static ArtifactInfo constructArtifactInfo( Document doc, IndexingContext context ) { // if no UINFO can't create, must be a different type of record if ( doc.get( ArtifactInfo.UINFO ) == null ) { return null; } boolean res = false; ArtifactInfo artifactInfo = new ArtifactInfo(); for ( IndexCreator ic : context.getIndexCreators() ) { res |= ic.updateArtifactInfo( doc, artifactInfo ); } return res ? artifactInfo : null; }
public void addArtifactToIndex( String repository, File artifactFile, String groupId, String artifactId, String version, String extension, String classifier ) throws IOException { ArtifactInfo artifactInfo = new ArtifactInfo( repository, groupId, artifactId, version, classifier, extension ); if ( extension != null ) { artifactInfo.setFieldValue( MAVEN.EXTENSION, extension ); } LOGGER.debug( "Adding artifact: {}; repo: {}; type: {}", new String[]{ artifactInfo.getUinfo(), repository, extension } ); getIndexer().addArtifactsToIndex( asList( new ArtifactContext( null, artifactFile, null, artifactInfo, artifactInfo.calculateGav() ) ), indexingContext ); }
ArtifactInfo artifactInfo = new ArtifactInfo();
ArtifactInfo artifactInfo = new ArtifactInfo();
final ArtifactInfo ai = new ArtifactInfo(); ai.repository = context.getRepositoryId(); ai.groupId = ra[0];
new ArtifactInfo( context.getRepositoryId(), groupId, artifactId, version, classifier, gav.getExtension() );
new ArtifactInfo( context.getRepositoryId(), groupId, artifactId, version, classifier, gav.getExtension() );
ArtifactInfo ai = new ArtifactInfo( context.getRepositoryId(), groupId, artifactId, version, classifier, gav.getExtension() );
ArtifactInfo ai = new ArtifactInfo();
ArtifactInfo ai = new ArtifactInfo();
ArtifactInfo ai = new ArtifactInfo();
new ArtifactInfo(context.getRepositoryId(), gav.getGroupId(), gav.getArtifactId(), gav.getBaseVersion(), gav.getClassifier());