org.gcube.portlets.user.collectionexplorer.client.model
Class Client_DigiObjectInfo
java.lang.Object
org.gcube.portlets.user.collectionexplorer.client.model.Client_DigiObjectInfo
- All Implemented Interfaces:
- com.google.gwt.user.client.rpc.IsSerializable
public class Client_DigiObjectInfo
- extends Object
- implements com.google.gwt.user.client.rpc.IsSerializable
- Author:
- massi
Constructor Summary |
Client_DigiObjectInfo()
|
Client_DigiObjectInfo(String oid,
String name,
long length,
String mimetype,
String collectionID,
List<Client_StorageReference> availableMetadata,
List<Client_StorageReference> alternativeReprs,
List<Client_StorageReference> parts,
List<Client_StorageReference> annotations)
|
Client_DigiObjectInfo(String oid,
String belongsToOid,
String name,
String collectionID,
long length,
String mimetype)
used to create simple DigiObjectInfo requested on demand |
Client_DigiObjectInfo
public Client_DigiObjectInfo()
Client_DigiObjectInfo
public Client_DigiObjectInfo(String oid,
String name,
long length,
String mimetype,
String collectionID,
List<Client_StorageReference> availableMetadata,
List<Client_StorageReference> alternativeReprs,
List<Client_StorageReference> parts,
List<Client_StorageReference> annotations)
- Parameters:
oid
- object idbelongsToOid
- The oid of the oid to which this Digital Object belongs to,
if is a main object is its collectionID
if is an alternative representation, a metadata and so on it is it's sourcename
- object's name, titlelength
- object's length (in bytes)mimetype
- its mymetipecollectionID
- colidrank
- its rankannotationsNo
- amount of available annotationsavailableMetadata
- available metadata
Client_DigiObjectInfo
public Client_DigiObjectInfo(String oid,
String belongsToOid,
String name,
String collectionID,
long length,
String mimetype)
- used to create simple DigiObjectInfo requested on demand
- Parameters:
oid
- name
- length
- mimetype
-
getOid
public String getOid()
setOid
public void setOid(String oid)
getCollectionID
public String getCollectionID()
setCollectionID
public void setCollectionID(String collectionID)
getAnnotations
public List<Client_StorageReference> getAnnotations()
setAnnotations
public void setAnnotations(List<Client_StorageReference> annotations)
getAvailableMetadata
public List<Client_StorageReference> getAvailableMetadata()
setAvailableMetadata
public void setAvailableMetadata(List<Client_StorageReference> availableMetadata)
getLenght
public long getLenght()
setLenght
public void setLenght(long length)
getMimetype
public String getMimetype()
setMimetype
public void setMimetype(String mimetype)
getName
public String getName()
setName
public void setName(String name)
getLength
public long getLength()
setLength
public void setLength(long length)
toString
public String toString()
- printable versione of Digital Object
- Overrides:
toString
in class Object
getAlternativeReprs
public List<Client_StorageReference> getAlternativeReprs()
setAlternativeReprs
public void setAlternativeReprs(List<Client_StorageReference> alternativeReprs)
getParts
public List<Client_StorageReference> getParts()
setParts
public void setParts(List<Client_StorageReference> parts)
hasMetadata
public boolean hasMetadata()
- Returns:
hasAnnotation
public boolean hasAnnotation()
hasAlternative
public boolean hasAlternative()
hasParts
public boolean hasParts()
Copyright © 2014. All Rights Reserved.