updates for folder plugin
This commit is contained in:
parent
043f712f7b
commit
bc32b677d4
2
pom.xml
2
pom.xml
|
@ -34,7 +34,7 @@
|
|||
</dependencyManagement>
|
||||
|
||||
<properties>
|
||||
<jackson.version>2.8.11</jackson.version>
|
||||
<jackson.version>2.15.3</jackson.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -16,8 +16,6 @@ import lombok.Setter;
|
|||
@Setter
|
||||
@RootNode(GENERICFILETYPE)
|
||||
public class GenericFileItem extends AbstractFileItem{
|
||||
|
||||
|
||||
|
||||
@NodeAttribute(value =CONTENT_NAME)
|
||||
Content content;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue