Examples of deleteVersion()


Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteVersion()

                // TODO: this should be in the storage mechanism so that it is all tied together
                // delete from file system
                if ( !snapshotVersion )
                {
                    repository.deleteVersion( ref );
                }
                else
                {
                    Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
                    log.debug( "related: {}", related );
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteVersion()

                throw new ContentNotFoundException( groupId + ":" + artifactId + ":" + version );
            }

            // TODO: this should be in the storage mechanism so that it is all tied together
            // delete from file system
            repository.deleteVersion( ref );

            File metadataFile = getMetadata( targetPath.getAbsolutePath() );
            ArchivaRepositoryMetadata metadata = getMetadata( metadataFile );

            updateMetadata( metadata, metadataFile, lastUpdatedTimestamp );
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteVersion()

            VersionedReference ref = new VersionedReference();
            ref.setArtifactId( projectId );
            ref.setGroupId( namespace );
            ref.setVersion( version );

            repository.deleteVersion( ref );

            /*
            ProjectReference projectReference = new ProjectReference();
            projectReference.setGroupId( namespace );
            projectReference.setArtifactId( projectId );
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteVersion()

                // TODO: this should be in the storage mechanism so that it is all tied together
                // delete from file system
                if ( !snapshotVersion )
                {
                    repository.deleteVersion( ref );
                }
                else
                {
                    Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
                    log.debug( "related: {}", related );
View Full Code Here

Examples of org.apache.archiva.repository.ManagedRepositoryContent.deleteVersion()

                // TODO: this should be in the storage mechanism so that it is all tied together
                // delete from file system
                if ( !snapshotVersion )
                {
                    repository.deleteVersion( ref );
                }
                else
                {
                    Set<ArtifactReference> related = repository.getRelatedArtifacts( artifactReference );
                    log.debug( "related: {}", related );
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.VersionedDocument.deleteVersion()

                for (DocumentVersion ver : allVers) {
                    fStoredObjectMap.remove(ver.getId());
                }
            } else {
                fStoredObjectMap.remove(objectId);
                otherVersionsExists = parentDoc.deleteVersion(vers);
            }
           
            if (!otherVersionsExists) {
                fStoredObjectMap.remove(parentDoc.getId());
            }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.VersionedDocument.deleteVersion()

                for (DocumentVersion ver : allVers) {
                    fStoredObjectMap.remove(ver.getId());
                }
            } else {
                fStoredObjectMap.remove(objectId);
                otherVersionsExists = parentDoc.deleteVersion(vers);
            }
           
            if (!otherVersionsExists) {
                fStoredObjectMap.remove(parentDoc.getId());
            }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.VersionedDocument.deleteVersion()

                for (DocumentVersion ver : allVers) {
                    fStoredObjectMap.remove(ver.getId());
                }
            } else {
                fStoredObjectMap.remove(objectId);
                otherVersionsExists = parentDoc.deleteVersion(vers);
            }
           
            if (!otherVersionsExists) {
                fStoredObjectMap.remove(parentDoc.getId());
            }
View Full Code Here

Examples of org.apache.maven.archiva.repository.ManagedRepositoryContent.deleteVersion()

            ref.setGroupId( groupId );
            ref.setArtifactId( artifactId );
            ref.setVersion( version );
           
            // delete from file system
            repoContent.deleteVersion( ref );
           
            ArtifactVersionsConstraint constraint = new ArtifactVersionsConstraint( repoId, groupId, artifactId, false );
            List<ArchivaArtifact> artifacts = null;
           
            try
View Full Code Here

Examples of org.apache.maven.archiva.repository.ManagedRepositoryContent.deleteVersion()

            {
                throw new ContentNotFoundException( groupId + ":" + artifactId + ":" + version );
            }

            // delete from file system
            repository.deleteVersion( ref );

            File metadataFile = getMetadata( targetPath.getAbsolutePath() );
            ArchivaRepositoryMetadata metadata = getMetadata( metadataFile );

            updateMetadata( metadata, metadataFile, lastUpdatedTimestamp );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.