Examples of deleteVersion()


Examples of com.dotmarketing.portlets.contentlet.business.ContentletAPI.deleteVersion()

    conAPI = APILocator.getContentletAPI();
    ActionResponseImpl resImpl = (ActionResponseImpl) res;
    // calls the Contentlet API delete the container version
    try{
      //conAPI.delete(webAsset, user, false, false);
      conAPI.deleteVersion(webAsset,user,false);


    }catch(Exception e){
      resImpl.getHttpServletResponse().getWriter().println("FAILURE:" + LanguageUtil.get(user, "message.contentlet.delete.live_or_working"));
    }
View Full Code Here

Examples of io.fabric8.api.ProfileManager.deleteVersion()

        profileManager.getRequiredVersion("1.0").getRequiredProfile("prfA");
        profileManager.getRequiredVersion("1.1").getRequiredProfile("prfA");
       
        // Delete the profile/version that were added
        profileManager.deleteProfile(prfA10.getVersion(), prfA10.getId(), true);
        profileManager.deleteVersion(v11.getId());
    }
}
View Full Code Here

Examples of io.fabric8.api.ProfileService.deleteVersion()

    @Override
    public void deleteVersion(String versionId) {
        Permit<ProfileService> permit = permitManager.get().aquirePermit(ProfileService.PERMIT, false);
        try {
            ProfileService service = permit.getInstance();
            service.deleteVersion(versionId);
        } finally {
            permit.release();
        }
    }
View Full Code Here

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

                    artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion() );
            }

            // 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, artifact );
View Full Code Here

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

            ref.setGroupId( groupId );
            ref.setArtifactId( artifactId );
            ref.setVersion( version );

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

            MetadataRepository metadataRepository = repositorySession.getRepository();
            Collection<ArtifactMetadata> artifacts =
                metadataRepository.getArtifacts( repoId, groupId, artifactId, version );
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()

            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()

            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
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.