org.activemath.webapp.dict
Class ItemView

java.lang.Object
  extended by org.activemath.webapp.dict.ItemView
All Implemented Interfaces:
Serializable, Cloneable

public class ItemView
extends Object
implements Cloneable, Serializable

Bean to describe the states of viewing an item. Covers such information as the id of the item viewed, the current language, the current mode, and should include the states of the folds and scroll-position.

See Also:
Serialized Form

Constructor Summary
ItemView()
           
 
Method Summary
 Object clone()
           
 List getBookPagesContainingId()
           
 List getBookPagesContainingId(User user)
          Returns a list of pages.
 RelationsPackView getBooksWhereItAppears()
           
 String getCollectionOfId()
           
 RelationsPackView getDisplayMetadata()
           
 RelationsPackView getEssentialRelationsFromItem()
          The essential relations are the relations which are not of occurence types.
 RelationsPackView getEssentialRelationsToItem()
           
 RelationsPackView getForWhatIsItem()
           
 String getId()
           
 String getItemLanguage()
           
 RelationsPackView getItemsForThis()
           
 String getTheoryOfId()
           
 String getViewMode()
           
 void setId(String id)
           
 void setItemLanguage(String itemLanguage)
           
 void setMbaseRef(MBaseRef mbaseRef)
           
 void setViewMode(String viewMode)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemView

public ItemView()
Method Detail

getId

public String getId()

setId

public void setId(String id)

setMbaseRef

public void setMbaseRef(MBaseRef mbaseRef)

getItemLanguage

public String getItemLanguage()

setItemLanguage

public void setItemLanguage(String itemLanguage)

getViewMode

public String getViewMode()

setViewMode

public void setViewMode(String viewMode)

getEssentialRelationsFromItem

public RelationsPackView getEssentialRelationsFromItem()
The essential relations are the relations which are not of occurence types.

Returns:

getEssentialRelationsToItem

public RelationsPackView getEssentialRelationsToItem()

getForWhatIsItem

public RelationsPackView getForWhatIsItem()

getItemsForThis

public RelationsPackView getItemsForThis()

getBooksWhereItAppears

public RelationsPackView getBooksWhereItAppears()

getDisplayMetadata

public RelationsPackView getDisplayMetadata()

getTheoryOfId

public String getTheoryOfId()

getCollectionOfId

public String getCollectionOfId()

clone

public Object clone()
Overrides:
clone in class Object

getBookPagesContainingId

public List getBookPagesContainingId()

getBookPagesContainingId

public List getBookPagesContainingId(User user)
Returns a list of pages.

Parameters:
user - may be null
Returns:
a list of Page objects