git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/storagehub-model@167699 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f09b6f0ba6
commit
50b0eb2164
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
}
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue