org.gcube.portlets.admin.fulltextindexportlet.gwt.shared
Class CollectionBean

java.lang.Object
  extended by org.gcube.portlets.admin.fulltextindexportlet.gwt.shared.CollectionBean
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Comparable<CollectionBean>

public class CollectionBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable, Comparable<CollectionBean>

A class used to transport collection information between the client and the service


Constructor Summary
CollectionBean()
          Empty constructor
 
Method Summary
 void addIndex(IndexBean index)
          Adds one index to the list of indices to be connected with this collection
 int compareTo(CollectionBean arg0)
          
 String getId()
          A method to get the Collection ID
 ArrayList<IndexBean> getIndices()
          A method used to get a list of all the indices valid for this collection
 boolean getIsReal()
          A method indicating whether this collection actually exists
 String getLanguage()
          A method to get the Collection language
 String getName()
          A method to get the Collection Name
 String getSchema()
          A method to get the Collection schema
 void setId(String id)
          Assigns an ID to the collection
 void setIndices(ArrayList<IndexBean> indices)
          Sets which indices should be connected to the collection
 void setIsReal(boolean isReal)
          Marks the collection as existing or non-existing
 void setLanguage(String language)
          Assigns a language to the collection
 void setName(String name)
          Assigns a name to the collection
 void setSchema(String schema)
          Assigns a schema to the collection
 void sort()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionBean

public CollectionBean()
Empty constructor

Method Detail

getId

public String getId()
A method to get the Collection ID

Returns:
the ID of the collection

getName

public String getName()
A method to get the Collection Name

Returns:
the name of the collection

getSchema

public String getSchema()
A method to get the Collection schema

Returns:
the schema of the collection

getLanguage

public String getLanguage()
A method to get the Collection language

Returns:
the language of the collection

getIsReal

public boolean getIsReal()
A method indicating whether this collection actually exists

Returns:
true if the Collection actually exists

getIndices

public ArrayList<IndexBean> getIndices()
A method used to get a list of all the indices valid for this collection

Returns:
a list of the indices connected with this collection

setId

public void setId(String id)
Assigns an ID to the collection

Parameters:
id - - the ID to assign to this collection

setName

public void setName(String name)
Assigns a name to the collection

Parameters:
name - - the name to assign to this collection

setSchema

public void setSchema(String schema)
Assigns a schema to the collection

Parameters:
schema - - the schema to assign to this collection

setLanguage

public void setLanguage(String language)
Assigns a language to the collection

Parameters:
language - - the language to assign to this collection

setIsReal

public void setIsReal(boolean isReal)
Marks the collection as existing or non-existing

Parameters:
isReal - - an indicator of whether the collection exists or not

setIndices

public void setIndices(ArrayList<IndexBean> indices)
Sets which indices should be connected to the collection

Parameters:
indices - - the list of indices to be connected with this collection

addIndex

public void addIndex(IndexBean index)
Adds one index to the list of indices to be connected with this collection

Parameters:
index - - the index to be added to the list of indices connected with this collection

sort

public void sort()

compareTo

public int compareTo(CollectionBean arg0)

Specified by:
compareTo in interface Comparable<CollectionBean>


Copyright © 2013. All Rights Reserved.