addInsertion( mutator, key, cf, "incomplete", Boolean.toString( versionMetadata.isIncomplete() ) );
addInsertion( mutator, key, cf, "url", versionMetadata.getUrl() );
{
CiManagement ci = versionMetadata.getCiManagement();
if ( ci != null )
{
addInsertion( mutator, key, cf, "ciManagement.system", ci.getSystem() );
addInsertion( mutator, key, cf, "ciManagement.url", ci.getUrl() );
}
}
{
IssueManagement issueManagement = versionMetadata.getIssueManagement();
if ( issueManagement != null )
{
addInsertion( mutator, key, cf, "issueManagement.system", issueManagement.getSystem() );
addInsertion( mutator, key, cf, "issueManagement.url", issueManagement.getUrl() );
}
}
{
Organization organization = versionMetadata.getOrganization();
if ( organization != null )
{
addInsertion( mutator, key, cf, "organization.name", organization.getName() );
addInsertion( mutator, key, cf, "organization.url", organization.getUrl() );
}
}
{
Scm scm = versionMetadata.getScm();
if ( scm != null )
{
addInsertion( mutator, key, cf, "scm.url", scm.getUrl() );
addInsertion( mutator, key, cf, "scm.connection", scm.getConnection() );
addInsertion( mutator, key, cf, "scm.developerConnection", scm.getDeveloperConnection() );
}
}
recordMailingList( key, versionMetadata.getMailingLists() );
recordLicenses( key, versionMetadata.getLicenses() );
recordDependencies( key, versionMetadata.getDependencies(), repositoryId );
MutationResult mutationResult = mutator.execute();
}
else
{
ColumnFamilyUpdater<String, String> updater = projectVersionMetadataTemplate.createUpdater( key );
addUpdateStringValue( updater, "projectId", projectId );
addUpdateStringValue( updater, "repositoryName", repositoryId );
addUpdateStringValue( updater, "namespaceId", namespaceId );
addUpdateStringValue( updater, "projectVersion", versionMetadata.getVersion() );
addUpdateStringValue( updater, "description", versionMetadata.getDescription() );
addUpdateStringValue( updater, "name", versionMetadata.getName() );
updater.setString( "incomplete", Boolean.toString( versionMetadata.isIncomplete() ) );
addUpdateStringValue( updater, "url", versionMetadata.getUrl() );
{
CiManagement ci = versionMetadata.getCiManagement();
if ( ci != null )
{
addUpdateStringValue( updater, "ciManagement.system", ci.getSystem() );
addUpdateStringValue( updater, "ciManagement.url", ci.getUrl() );
}
}
{
IssueManagement issueManagement = versionMetadata.getIssueManagement();
if ( issueManagement != null )