org.gcube.application.framework.contentmanagement.model
Class CollectionInfo
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CollectionInfo
public CollectionInfo()
- Constructor of the class
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 collectionlanguage - metadata collection's languageindex - 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.