org.mycore.datamodel.classifications
Class MCRClassificationBrowserData

java.lang.Object
  extended by org.mycore.datamodel.classifications.MCRClassificationBrowserData

public class MCRClassificationBrowserData
extends Object

Instances of MCRClassificationBrowser contain the data of the currently displayed navigation tree. MCRClassificationBrowser uses one MCRClassificationBrowserData instance per browser session to store and update the category lines to be displayed.

Author:
Anja Schaar

Field Summary
static Map<String,String> ClassUserTable
           
(package private)  int maxlevel
           
protected  String pageName
           
(package private)  int totalNumOfDocs
           
protected  String uri
           
protected  String xslStyle
           
 
Constructor Summary
MCRClassificationBrowserData(String u, String mode, String actclid, String actEditorCategid)
           
 
Method Summary
static void clearUserClassTable(MCRSession session)
           
 Document createXmlTree(String lang)
          Creates an XML representation of MCRClassificationBrowserData
 Document createXmlTreeforAllClassifications()
           
 MCRCategory getClassification()
           
static MCRClassificationPool getClassificationPool()
           
 String getPageName()
          Returns the pageName for the classification
 String getUri()
           
 String getXslStyle()
          Returns the xslStyle for the classification
 Document loadTreeIntoSite(Document cover, Document browser)
           
 void setClassification(MCRCategoryID classifID)
           
 boolean showComments()
          Returns true if category comments for the classification currently displayed should be shown.
 void update(String categID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pageName

protected String pageName

xslStyle

protected String xslStyle

uri

protected String uri

maxlevel

int maxlevel

totalNumOfDocs

int totalNumOfDocs

ClassUserTable

public static Map<String,String> ClassUserTable
Constructor Detail

MCRClassificationBrowserData

public MCRClassificationBrowserData(String u,
                                    String mode,
                                    String actclid,
                                    String actEditorCategid)
                             throws Exception
Throws:
Exception
Method Detail

getUri

public String getUri()

showComments

public boolean showComments()
Returns true if category comments for the classification currently displayed should be shown.


getPageName

public String getPageName()
Returns the pageName for the classification


getXslStyle

public String getXslStyle()
Returns the xslStyle for the classification


getClassification

public MCRCategory getClassification()

loadTreeIntoSite

public Document loadTreeIntoSite(Document cover,
                                 Document browser)

setClassification

public final void setClassification(MCRCategoryID classifID)
                             throws Exception
Throws:
Exception

createXmlTreeforAllClassifications

public Document createXmlTreeforAllClassifications()
                                            throws Exception
Throws:
Exception

createXmlTree

public Document createXmlTree(String lang)
                       throws Exception
Creates an XML representation of MCRClassificationBrowserData

Throws:
Exception

update

public void update(String categID)
            throws Exception
Throws:
Exception

getClassificationPool

public static MCRClassificationPool getClassificationPool()
Returns:
Returns the pool.

clearUserClassTable

public static void clearUserClassTable(MCRSession session)