Package org.sonatype.nexus.index

Examples of org.sonatype.nexus.index.ArtifactInfo


    private void removeDocuments( ArtifactContext ac )
        throws IOException
    {
        IndexWriter w = context.getIndexWriter();

        ArtifactInfo ai = ac.getArtifactInfo();
        String uinfo = AbstractIndexCreator.getGAV( ai.groupId, ai.artifactId, ai.version, ai.classifier, ai.packaging );

        Document doc = new Document();
        doc.add( new Field( ArtifactInfo.DELETED, uinfo, Field.Store.YES, Field.Index.NO ) );
        doc.add( new Field( ArtifactInfo.LAST_MODIFIED, Long.toString( System.currentTimeMillis() ), Field.Store.YES,
View Full Code Here


       
        if ( artifactContext != null )
        {
            try
            {               
                ArtifactInfo ai = artifactContext.getArtifactInfo();               
                String uinfo = AbstractIndexCreator.getGAV(
                    ai.groupId, ai.artifactId, ai.version, ai.classifier, ai.packaging );
               
                // already indexed so update!
                if ( uinfos.contains( uinfo ) )
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.index.ArtifactInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.