git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/storagehub-model@173500 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
04e5606822
commit
97253ba328
|
@ -3,13 +3,13 @@ package org.gcube.common.storagehub.model;
|
|||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.gcube.common.storagehub.model.annotations.MapAttribute;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.Setter;
|
||||
|
||||
import org.gcube.common.storagehub.model.annotations.MapAttribute;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@NoArgsConstructor
|
||||
|
|
|
@ -10,5 +10,5 @@ import java.lang.annotation.Target;
|
|||
public @interface Attribute {
|
||||
|
||||
String value();
|
||||
boolean isReadOnly() default true;
|
||||
boolean isReadOnly() default false;
|
||||
}
|
||||
|
|
|
@ -32,6 +32,6 @@ public class GCubeItem extends Item{
|
|||
boolean shared;
|
||||
|
||||
@NodeAttribute(NodeConstants.PROPERTY_NAME)
|
||||
Metadata property;
|
||||
Metadata property = new Metadata();
|
||||
|
||||
}
|
||||
|
|
|
@ -68,12 +68,13 @@ public class Item {
|
|||
@NodeAttribute(value=ACCOUNTING_NAME, isReadOnly=true)
|
||||
Accounting accounting;
|
||||
|
||||
@NodeAttribute(value=METADATA_NAME, isReadOnly=false)
|
||||
Metadata propertyMap;
|
||||
@NodeAttribute(value=METADATA_NAME)
|
||||
Metadata propertyMap = new Metadata();
|
||||
|
||||
public String getOwner() {
|
||||
if (owner!=null) return owner;
|
||||
else return ownerNode.getUserName();
|
||||
else if (ownerNode!=null) ownerNode.getUserName();
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue