org.gcube.application.framework.contentmanagement.model
Class CollectionInfo
java.lang.Object
org.gcube.application.framework.contentmanagement.model.CollectionInfo
- All Implemented Interfaces:
- java.io.Serializable
public class CollectionInfo
- extends java.lang.Object
- implements java.io.Serializable
Collection's information
- Author:
- valia, giotak, UoA
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionInfo
public CollectionInfo()
- Constructor of the class
getDescription
public java.lang.String getDescription()
- Returns:
- collection's description
setDescription
public void setDescription(java.lang.String description)
- Parameters:
description
- collection's description
getId
public java.lang.String getId()
- Returns:
- collection's ID
setId
public void setId(java.lang.String id)
- Parameters:
id
- collection's ID
getName
public java.lang.String getName()
- Returns:
- collection's name
getQueryTemplate
public java.lang.String getQueryTemplate()
setQueryTemplate
public void setQueryTemplate(java.lang.String qt)
setName
public void setName(java.lang.String name)
- Parameters:
name
- collection's name
isCollectionGroup
public boolean isCollectionGroup()
setCollectionGroup
public void setCollectionGroup(boolean isGroup)
getForwardVector
public java.util.Vector<java.util.HashMap<java.lang.String,java.util.List<org.apache.axis.message.addressing.EndpointReferenceType>>> getForwardVector()
addForward
public void addForward(java.util.HashMap<java.lang.String,java.util.List<org.apache.axis.message.addressing.EndpointReferenceType>> newforward)
getForward
public java.util.HashMap<java.lang.String,java.util.List<org.apache.axis.message.addressing.EndpointReferenceType>> getForward(int i)
getSchema
public java.lang.String getSchema(int i)
- Parameters:
i
- the position of the metadata schema
- Returns:
- the schema in the specified position.
getMetadataID
public java.lang.String getMetadataID(int i)
- Parameters:
i
- the position of the metadata schema
- Returns:
- metadata's ID
getLanguage
public java.lang.String getLanguage(int i)
- Parameters:
i
- the position of the metadata schema
- Returns:
- the language for this schema
setMetadataCollection
public void setMetadataCollection(java.lang.String schema,
java.lang.String metaID,
java.lang.String language)
- Parameters:
schema
- collection's schema name (e.g. dc, tei)metaID
- the ID of the metadata collectionlanguage
- metadata collection's languageindex
- the indices that collection has
getCreationDate
public java.lang.String getCreationDate()
setCreationDate
public void setCreationDate(java.lang.String date)
getRecno
public java.lang.String getRecno()
setRecno
public void setRecno(java.lang.String recnum)
getReference
public java.lang.String getReference()
- Returns:
- the reference to this collection (usually a url)
setReference
public void setReference(java.lang.String reference)
- Parameters:
reference
- the reference to this collection (usually a url)
hasSchema
public boolean hasSchema(java.lang.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(java.lang.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 java.util.HashMap<java.lang.String,java.util.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.