org.gcube.portlets.user.collectionexplorer.client.model
Class Client_DigiObjectInfo

java.lang.Object
  extended by 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
 
Method Summary
 List<Client_StorageReference> getAlternativeReprs()
           
 List<Client_StorageReference> getAnnotations()
           
 List<Client_StorageReference> getAvailableMetadata()
           
 String getCollectionID()
           
 long getLenght()
           
 long getLength()
           
 String getMimetype()
           
 String getName()
           
 String getOid()
           
 List<Client_StorageReference> getParts()
           
 boolean hasAlternative()
           
 boolean hasAnnotation()
           
 boolean hasMetadata()
           
 boolean hasParts()
           
 void setAlternativeReprs(List<Client_StorageReference> alternativeReprs)
           
 void setAnnotations(List<Client_StorageReference> annotations)
           
 void setAvailableMetadata(List<Client_StorageReference> availableMetadata)
           
 void setCollectionID(String collectionID)
           
 void setLenght(long length)
           
 void setLength(long length)
           
 void setMimetype(String mimetype)
           
 void setName(String name)
           
 void setOid(String oid)
           
 void setParts(List<Client_StorageReference> parts)
           
 String toString()
          printable versione of Digital Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 id
belongsToOid - 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 source
name - object's name, title
length - object's length (in bytes)
mimetype - its mymetipe
collectionID - colid
rank - its rank
annotationsNo - amount of available annotations
availableMetadata - 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 -
Method Detail

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.