org.gcube.application.framework.contentmanagement.model
Class CollectionInfo

java.lang.Object
  extended by org.gcube.application.framework.contentmanagement.model.CollectionInfo
All Implemented Interfaces:
Serializable

public class CollectionInfo
extends Object
implements Serializable

Collection's information

Author:
valia, giotak, UoA
See Also:
Serialized Form

Field Summary
protected  String creationDate
           
protected  String description
           
protected  HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> forward
           
protected  Vector<HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>>> forwardVector
           
protected  String id
           
protected  boolean isCollectionGroup
           
protected  Vector<String> languages
           
protected  Vector<String> metadataIDs
           
protected  String name
           
protected  String queryTemplate
           
protected  String recno
           
protected  String reference
           
protected  Vector<String> schemata
           
 
Constructor Summary
CollectionInfo()
          Constructor of the class
 
Method Summary
 void addForward(HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> newforward)
           
 String getCreationDate()
           
 String getDescription()
           
 HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> getForward()
           
 HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> getForward(int i)
           
 Vector<HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>>> getForwardVector()
           
 String getId()
           
 int getIndexOfSchema(String schema)
           
 String getLanguage(int i)
           
 String getMetadataID(int i)
           
 int getMetadataSize()
           
 String getName()
           
 String getQueryTemplate()
           
 String getRecno()
           
 String getReference()
           
 String getSchema(int i)
           
 boolean hasSchema(String schema)
           
 boolean isCollectionGroup()
           
 void setCollectionGroup(boolean isGroup)
           
 void setCreationDate(String date)
           
 void setDescription(String description)
           
 void setId(String id)
           
 void setMetadataCollection(String schema, String metaID, String language)
           
 void setName(String name)
           
 void setQueryTemplate(String qt)
           
 void setRecno(String recnum)
           
 void setReference(String reference)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

name

protected String name

description

protected String description

reference

protected String reference

schemata

protected Vector<String> schemata

metadataIDs

protected Vector<String> metadataIDs

languages

protected Vector<String> languages

forward

protected HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> forward

creationDate

protected String creationDate

recno

protected String recno

isCollectionGroup

protected boolean isCollectionGroup

queryTemplate

protected String queryTemplate

forwardVector

protected Vector<HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>>> forwardVector
Constructor Detail

CollectionInfo

public CollectionInfo()
Constructor of the class

Method Detail

getDescription

public String getDescription()
Returns:
collection's description

setDescription

public void setDescription(String description)
Parameters:
description - collection's description

getId

public String getId()
Returns:
collection's ID

setId

public void setId(String id)
Parameters:
id - collection's ID

getName

public String getName()
Returns:
collection's name

getQueryTemplate

public String getQueryTemplate()

setQueryTemplate

public void setQueryTemplate(String qt)

setName

public void setName(String name)
Parameters:
name - collection's name

isCollectionGroup

public boolean isCollectionGroup()

setCollectionGroup

public void setCollectionGroup(boolean isGroup)

getForwardVector

public Vector<HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>>> getForwardVector()

addForward

public void addForward(HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> newforward)

getForward

public HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> getForward(int i)

getSchema

public String getSchema(int i)
Parameters:
i - the position of the metadata schema
Returns:
the schema in the specified position.

getMetadataID

public String getMetadataID(int i)
Parameters:
i - the position of the metadata schema
Returns:
metadata's ID

getLanguage

public String getLanguage(int i)
Parameters:
i - the position of the metadata schema
Returns:
the language for this schema

setMetadataCollection

public void setMetadataCollection(String schema,
                                  String metaID,
                                  String language)
Parameters:
schema - collection's schema name (e.g. dc, tei)
metaID - the ID of the metadata collection
language - metadata collection's language
index - the indices that collection has

getCreationDate

public String getCreationDate()

setCreationDate

public void setCreationDate(String date)

getRecno

public String getRecno()

setRecno

public void setRecno(String recnum)

getReference

public String getReference()
Returns:
the reference to this collection (usually a url)

setReference

public void setReference(String reference)
Parameters:
reference - the reference to this collection (usually a url)

hasSchema

public boolean hasSchema(String schema)
Parameters:
schema - metadata collection's schema
Returns:
true if this collection has a corresponding metadata collection with this schema, otherwise false.

getIndexOfSchema

public int getIndexOfSchema(String schema)
Parameters:
schema - metadata collection's schema
Returns:
true if this collection has a corresponding metadata collection with this schema, otherwise false.

getMetadataSize

public int getMetadataSize()
Returns:
the number of corrsponding metadata collections

getForward

public HashMap<String,List<org.apache.axis.message.addressing.EndpointReferenceType>> getForward()
Returns:
the forward indices stored in a hasmap. The key to the hasmap is collection together with the field, and the value is an EPR to the index.


Copyright © 2013. All Rights Reserved.