if ( ai.getClassifier() != null ) sb.append( "-" ).append( ai.getClassifier() );
if ( ai.getClassifier() != null ) sb.append( "-" ).append( ai.getClassifier() );
if ( ai.getClassifier() != null ) sb.append( "-" ).append( ai.getClassifier() );
public TreeNode createArtifactNode( IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path ) { StringBuilder sb = new StringBuilder( ai.getArtifactId() ).append( "-" ).append( ai.getVersion() ); if ( ai.getClassifier() != null ) { sb.append( "-" ).append( ai.getClassifier() ); } sb.append( "." ).append( ai.getFileExtension() == null ? "jar" : ai.getFileExtension() ); TreeNode result = createNode( tview, req, path, true, sb.toString(), Type.artifact ); result.setGroupId( ai.getGroupId() ); result.setArtifactId( ai.getArtifactId() ); result.setVersion( ai.getVersion() ); return decorateArtifactNode( tview, req, ai, path, result ); }
public TreeNode createArtifactNode( IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path ) { StringBuilder sb = new StringBuilder( ai.getArtifactId() ).append( "-" ).append( ai.getVersion() ); if ( ai.getClassifier() != null ) { sb.append( "-" ).append( ai.getClassifier() ); } sb.append( "." ).append( ai.getFileExtension() == null ? "jar" : ai.getFileExtension() ); TreeNode result = createNode( tview, req, path, true, sb.toString(), Type.artifact ); result.setGroupId( ai.getGroupId() ); result.setArtifactId( ai.getArtifactId() ); result.setVersion( ai.getVersion() ); return decorateArtifactNode( tview, req, ai, path, result ); }
public TreeNode createArtifactNode( IndexTreeView tview, TreeViewRequest req, ArtifactInfo ai, String path ) { StringBuilder sb = new StringBuilder( ai.getArtifactId() ).append( "-" ).append( ai.getVersion() ); if ( ai.getClassifier() != null ) { sb.append( "-" ).append( ai.getClassifier() ); } sb.append( "." ).append( ai.getFileExtension() == null ? "jar" : ai.getFileExtension() ); TreeNode result = createNode( tview, req, path, true, sb.toString(), Type.artifact ); result.setGroupId( ai.getGroupId() ); result.setArtifactId( ai.getArtifactId() ); result.setVersion( ai.getVersion() ); return decorateArtifactNode( tview, req, ai, path, result ); }
@Override protected String getGroupKey( ArtifactInfo artifactInfo ) { return artifactInfo.getGroupId() + ":" + artifactInfo.getArtifactId() + ":" + artifactInfo.getVersion() + ":" + artifactInfo.getClassifier(); }
@Override protected String getGroupKey( ArtifactInfo artifactInfo ) { return artifactInfo.getGroupId() + ":" + artifactInfo.getArtifactId() + ":" + artifactInfo.getVersion() + ":" + artifactInfo.getClassifier(); }
@Override protected String getGroupKey( ArtifactInfo artifactInfo ) { return artifactInfo.getGroupId() + ":" + artifactInfo.getArtifactId() + ":" + artifactInfo.getVersion() + ":" + artifactInfo.getClassifier(); }
sb.append( '/' ).append( artifactInfo.getArtifactId() ); sb.append( '-' ).append( artifactInfo.getVersion() ); if ( StringUtils.isNotBlank( artifactInfo.getClassifier() ) ) sb.append( '-' ).append( artifactInfo.getClassifier() );
public boolean accepts( IndexingContext ctx, ArtifactInfo ai ) { String key = ai.getGroupId() + ai.getArtifactId() + ai.getPackaging() + ai.getClassifier(); if ( !repositoriesIgnored ) { key = ai.getRepository() + key; } if ( gas.contains( key ) ) { return false; } else { gas.add( key ); postprocess( ctx, ai ); return true; } }
public boolean accepts( IndexingContext ctx, ArtifactInfo ai ) { String key = ai.getGroupId() + ai.getArtifactId() + ai.getPackaging() + ai.getClassifier(); if ( !repositoriesIgnored ) { key = ai.getRepository() + key; } if ( gas.contains( key ) ) { return false; } else { gas.add( key ); postprocess( ctx, ai ); return true; } }
@Override protected String getGroupKey( ArtifactInfo artifactInfo ) { return artifactInfo.getRepository() + ":" + artifactInfo.getGroupId() + ":" + artifactInfo.getArtifactId() + ":" + artifactInfo.getVersion() + ":" + artifactInfo.getClassifier(); }
public boolean accepts( IndexingContext ctx, ArtifactInfo ai ) { String key = ai.getGroupId() + ai.getArtifactId() + ai.getPackaging() + ai.getClassifier(); if ( !repositoriesIgnored ) { key = ai.getRepository() + key; } if ( gas.contains( key ) ) { return false; } else { gas.add( key ); postprocess( ctx, ai ); return true; } }
@Override protected String getGroupKey( ArtifactInfo artifactInfo ) { return artifactInfo.getRepository() + ":" + artifactInfo.getGroupId() + ":" + artifactInfo.getArtifactId() + ":" + artifactInfo.getVersion() + ":" + artifactInfo.getClassifier(); }
@Override protected String getGroupKey( ArtifactInfo artifactInfo ) { return artifactInfo.getRepository() + ":" + artifactInfo.getGroupId() + ":" + artifactInfo.getArtifactId() + ":" + artifactInfo.getVersion() + ":" + artifactInfo.getClassifier(); }
if ( ai.getClassifier() != null ) doc.add( FLD_CLASSIFIER.toField( ai.getClassifier() ) );
if ( ai.getClassifier() != null ) doc.add( FLD_CLASSIFIER.toField( ai.getClassifier() ) );
if ( ai.getClassifier() != null ) doc.add( FLD_CLASSIFIER.toField( ai.getClassifier() ) );
private boolean applyArtifactInfoFilters( ArtifactInfo artifactInfo, List<? extends ArtifactInfoFilter> artifactInfoFilters, Map<String, SearchResultHit> currentResult ) { if ( artifactInfoFilters == null || artifactInfoFilters.isEmpty() ) { return true; } ArchivaArtifactModel artifact = new ArchivaArtifactModel(); artifact.setArtifactId( artifactInfo.getArtifactId() ); artifact.setClassifier( artifactInfo.getClassifier() ); artifact.setGroupId( artifactInfo.getGroupId() ); artifact.setRepositoryId( artifactInfo.getRepository() ); artifact.setVersion( artifactInfo.getVersion() ); artifact.setChecksumMD5( artifactInfo.getMd5() ); artifact.setChecksumSHA1( artifactInfo.getSha1() ); for ( ArtifactInfoFilter filter : artifactInfoFilters ) { if ( !filter.addArtifactInResult( artifact, currentResult ) ) { return false; } } return true; }