private Map<String, List<ArtifactDownloadInfo>> artifacts;
private boolean dependencyTree = false;
-
+
private String deleteItem;
private Map<String, String> genericMetadata;
genericMetadata = projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ).toProperties();
model = projectMetadata;
-
+
propertyName = "";
propertyValue = "";
{
ProjectVersionMetadata projectMetadata = getProjectVersionMetadata();
String errorMsg = null;
-
+
if ( projectMetadata == null )
{
addActionError( errorMsg != null ? errorMsg : "Artifact not found" );
}
if ( projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ) != null )
- {
+ {
genericMetadata = projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ).toProperties();
-
+
if ( !StringUtils.isEmpty( deleteItem ) )
{
genericMetadata.remove( deleteItem );
-
+
updateProjectMetadata( projectMetadata );
-
+
projectMetadata = getProjectVersionMetadata();
genericMetadata = projectMetadata.getFacet( GenericMetadataFacet.FACET_ID ).toProperties();
model = projectMetadata;
- addActionMessage( "Property successfully deleted." );
+ addActionMessage( "Property successfully deleted." );
}
-
- deleteItem = "";
+
+ deleteItem = "";
}
else
{
{
GenericMetadataFacet genericMetadataFacet = new GenericMetadataFacet();
genericMetadataFacet.fromProperties( genericMetadata );
-
+
projectMetadata.addFacet( genericMetadataFacet );
-
- metadataRepository.updateProjectVersion( repositoryId, groupId, artifactId, projectMetadata );
+
+ metadataRepository.updateProjectVersion( repositoryId, groupId, artifactId, projectMetadata );
}
@Override
{
return artifacts.keySet();
}
-
+
public boolean isDependencyTree()
{
return dependencyTree;
{
this.propertyValue = propertyValue;
}
-
+
public void setRepositoryFactory( RepositoryContentFactory repositoryFactory )
{
this.repositoryFactory = repositoryFactory;