This commit is contained in:
Lucio Lelii 2018-05-23 13:31:42 +00:00
parent f09b6f0ba6
commit 50b0eb2164
4 changed files with 49 additions and 7 deletions

View File

@ -0,0 +1,19 @@
package org.gcube.common.storagehub.model.acls;
public enum AccessType {
WRITE_ALL("hl:writeAll"),
ADMINISTRATOR("jcr:all"),
READ_ONLY("jcr:read"),
WRITE_OWNER("jcr:write");
private String value;
private AccessType(String value){
this.value = value;
}
public String getValue() {
return value;
}
}

View File

@ -0,0 +1,21 @@
package org.gcube.common.storagehub.model.items;
import org.gcube.common.storagehub.model.annotations.NodeAttribute;
import org.gcube.common.storagehub.model.annotations.RootNode;
import org.gcube.common.storagehub.model.items.nodes.Content;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@RootNode("nthl:externalUrl")
public class ExternalURL extends AbstractFileItem{
@NodeAttribute(value ="jcr:content")
Content content;
}

View File

@ -1,17 +1,14 @@
package org.gcube.common.storagehub.model.items;
import org.gcube.common.storagehub.model.annotations.NodeAttribute;
import org.gcube.common.storagehub.model.annotations.RootNode;
import org.gcube.common.storagehub.model.items.nodes.Content;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.Collections;
import java.util.List;
import org.gcube.common.storagehub.model.annotations.NodeAttribute;
import org.gcube.common.storagehub.model.annotations.RootNode;
import org.gcube.common.storagehub.model.items.nodes.Content;
@NoArgsConstructor
@AllArgsConstructor
@Getter

View File

@ -4,8 +4,12 @@ import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.util.HashMap;
import java.util.Map;
import org.gcube.common.storagehub.model.annotations.Attribute;
import org.gcube.common.storagehub.model.annotations.AttributeRootNode;
import org.gcube.common.storagehub.model.annotations.MapAttribute;
@Getter
@Setter
@ -28,4 +32,5 @@ public class Content {
@Attribute("hl:storageId")
String storageId;
}