.createRangeSlicesQuery( keyspace, StringSerializer.get(), StringSerializer.get(),
StringSerializer.get() ) //
.setColumnFamily( cassandraArchivaManager.getRepositoryFamilyName() ) //
- .setColumnNames( "repositoryName" ) //
+ .setColumnNames( "repositoryName" ) //
.addEqualsExpression( "repositoryName", repositoryId ) //
.execute();
}
- return new Repository( result.get().getList().get( 0 ).getColumnSlice().getColumnByName( "repositoryName" ).getValue() );
+ return new Repository(
+ result.get().getList().get( 0 ).getColumnSlice().getColumnByName( "repositoryName" ).getValue() );
}
throws MetadataRepositoryException
{
+ String key = new Project.KeyBuilder() //
+ .withProjectId( projectId ) //
+ .withNamespace( new Namespace( namespaceId, new Repository( repositoryId ) ) ) //
+ .build();
+
+ HFactory.createMutator( cassandraArchivaManager.getKeyspace(), new StringSerializer() ) //
+ .addDeletion( key, cassandraArchivaManager.getProjectFamilyName() ) //
+ .execute();
+
+ // TODO finish linked data to delete
+
/* // cleanup ArtifactMetadataModel
final List<ArtifactMetadataModel> artifactMetadataModels = new ArrayList<ArtifactMetadataModel>();
Assertions.assertThat( cmr.getProjects( "release", "org" ) ).isNotEmpty().hasSize( 1 ).containsExactly(
"theproject" );
+ cmr.removeProject( "release", "org", "theproject" );
+
+ Assertions.assertThat( cmr.getProjects( "release", "org" ) ).isEmpty();
+
cmr.removeRepository( "release" );
r = cmr.getRepository( "release" );