updates for folder plugin

This commit is contained in:
lucio 2024-08-16 13:03:14 +02:00
parent 043f712f7b
commit bc32b677d4
5 changed files with 9 additions and 7 deletions

View File

@ -34,7 +34,7 @@
</dependencyManagement>
<properties>
<jackson.version>2.8.11</jackson.version>
<jackson.version>2.15.3</jackson.version>
</properties>
<dependencies>

View File

@ -16,8 +16,6 @@ import lombok.Setter;
@Setter
@RootNode(GENERICFILETYPE)
public class GenericFileItem extends AbstractFileItem{
@NodeAttribute(value =CONTENT_NAME)
Content content;

View File

@ -1,6 +1,7 @@
package org.gcube.common.storagehub.model.items;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
@ -15,6 +16,7 @@ public abstract class RootItem {
//for service internal use
@JsonIgnore
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
transient Object relatedNode;
String id;

View File

@ -12,8 +12,6 @@ import org.gcube.common.storagehub.model.annotations.Attribute;
import org.gcube.common.storagehub.model.annotations.AttributeRootNode;
import org.gcube.common.storagehub.model.annotations.NodeAttribute;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@ -29,7 +27,6 @@ public class PayloadBackend {
@Attribute(value= STORAGENAME)
private String storageName;
@JsonIgnore
@NodeAttribute(value=PARAMETERS)
private Metadata parameters = new Metadata();
@ -37,7 +34,6 @@ public class PayloadBackend {
return storageName;
}
@JsonIgnore
public Map<String, Object> getParameters(){
if (parameters ==null || parameters.getMap() == null )
return Collections.emptyMap();

View File

@ -15,5 +15,11 @@ public class PluginParameters {
public void add(String name, String value) {
this.parameters.put(name, value);
}
@Override
public String toString() {
return "PluginParameters [parameters=" + parameters + "]";
}
}