45 lines
1.3 KiB
Java
45 lines
1.3 KiB
Java
package org.gcube.common.storagehub.model.items.nodes;
|
|
|
|
|
|
import static org.gcube.common.storagehub.model.NodeConstants.CONTENTDATA;
|
|
import static org.gcube.common.storagehub.model.NodeConstants.CONTENTFILETYPE;
|
|
import static org.gcube.common.storagehub.model.NodeConstants.CONTENTID;
|
|
import static org.gcube.common.storagehub.model.NodeConstants.CONTENTMYMETYPE;
|
|
import static org.gcube.common.storagehub.model.NodeConstants.CONTENTREMOTEPATH;
|
|
import static org.gcube.common.storagehub.model.NodeConstants.CONTENTSIZE;
|
|
import static org.gcube.common.storagehub.model.NodeConstants.STORAGENAME;
|
|
|
|
import org.gcube.common.storagehub.model.Constants;
|
|
import org.gcube.common.storagehub.model.annotations.Attribute;
|
|
import org.gcube.common.storagehub.model.annotations.AttributeRootNode;
|
|
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Getter;
|
|
import lombok.NoArgsConstructor;
|
|
import lombok.Setter;
|
|
@Getter
|
|
@Setter
|
|
@NoArgsConstructor
|
|
@AllArgsConstructor
|
|
@AttributeRootNode(CONTENTFILETYPE)
|
|
public class Content {
|
|
|
|
@Attribute(CONTENTSIZE)
|
|
Long size;
|
|
|
|
@Attribute(CONTENTDATA)
|
|
String data;
|
|
|
|
@Attribute(CONTENTREMOTEPATH)
|
|
String remotePath;
|
|
|
|
@Attribute(CONTENTMYMETYPE)
|
|
String mimeType;
|
|
|
|
@Attribute(CONTENTID)
|
|
String storageId;
|
|
|
|
@Attribute(value= STORAGENAME, defaultValue = Constants.mongoStorageConstant)
|
|
String managedBy;
|
|
}
|