cern::laser::guiplatform::category::helpers::CategoryHandler Class Reference

Inheritance diagram for cern::laser::guiplatform::category::helpers::CategoryHandler:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::guiplatform::category::helpers::CategoryHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CategoryHandler ()
Category getCategoryById (Integer param)
Category getCategoryByPath (String str)
Category getCategoryTreeRoot ()
java.util.Collection getChildren (Category category)
java.util.Collection getChildren (Integer nodeId)
Category getParent (Category category)
Category getParent (Integer param)
Collection getCategories ()

Static Public Member Functions

static CategoryBrowsingHandler get ()

Static Package Functions

 [static initializer]

Static Package Attributes

static Logger logger = LogFactory.getLogger(CategoryHandler.class.getName())
static Category categoryRoot = null
static String catName = "cern"
static String catDesc = "Category description"
static int maxCategoryCounter = 3
static Map children = null

Static Private Attributes

static CategoryBrowsingHandler INSTANCE = null

Detailed Description

This class is used for test indead of business CategoryBrowsinngHandler

Author:
pawlowsk

Constructor & Destructor Documentation

cern::laser::guiplatform::category::helpers::CategoryHandler::CategoryHandler (  )  [inline]

Creates a new instance of CategoryHandler

Referenced by get().


Member Function Documentation

cern::laser::guiplatform::category::helpers::CategoryHandler::[static initializer] (  )  [inline, static, package]
static CategoryBrowsingHandler cern::laser::guiplatform::category::helpers::CategoryHandler::get (  )  [inline, static]

Factory method.

Returns:
an instance of the implementation class
Exceptions:
LaserException if the request can not be served

Reimplemented from cern::laser::client::services::browsing::CategoryBrowsingHandler.

References CategoryHandler(), and INSTANCE.

Collection cern::laser::guiplatform::category::helpers::CategoryHandler::getCategories (  )  [inline, virtual]

Get all the defined categories.

Exceptions:
LaserException if the request can not be served
Returns:
the defined category collection

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.

Category cern::laser::guiplatform::category::helpers::CategoryHandler::getCategoryById ( Integer  param  )  [inline]
Category cern::laser::guiplatform::category::helpers::CategoryHandler::getCategoryByPath ( String  path  )  [inline, virtual]

Get the category.

Parameters:
path the category path in the form name.name....name
Exceptions:
LaserException if the request can not be served
Returns:
the category object, null if the category does not exist

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.

Category cern::laser::guiplatform::category::helpers::CategoryHandler::getCategoryTreeRoot (  )  [inline, virtual]

Get the category tree root.

Exceptions:
LaserException if the request can not be served
Returns:
the category tree root object

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.

References categoryRoot.

java.util.Collection cern::laser::guiplatform::category::helpers::CategoryHandler::getChildren ( Integer  nodeId  )  [inline, virtual]

Get the category children.

Parameters:
nodeId the category parent identifier
Exceptions:
LaserException if the request can not be served
Returns:
the category children collection

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.

References children.

java.util.Collection cern::laser::guiplatform::category::helpers::CategoryHandler::getChildren ( Category  node  )  [inline, virtual]

Get the category children.

Parameters:
node the category parent
Exceptions:
LaserException if the request can not be served
Returns:
the category children collection

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.

References cern::laser::client::data::Category::getCategoryId(), and logger.

Category cern::laser::guiplatform::category::helpers::CategoryHandler::getParent ( Integer  nodeId  )  [inline, virtual]

Get the category parent.

Parameters:
nodeId the category identifier
Exceptions:
LaserException if the request can not be served
Returns:
the parent category, null if the category is the root category

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.

Category cern::laser::guiplatform::category::helpers::CategoryHandler::getParent ( Category  node  )  [inline, virtual]

Get the category parent.

Parameters:
node the category
Exceptions:
LaserException if the request can not be served
Returns:
the parent category, null if the category is the root category

Implements cern::laser::client::services::browsing::CategoryBrowsingHandler.


Member Data Documentation

Referenced by getCategoryTreeRoot().

Referenced by getChildren().

Referenced by get().

Logger cern::laser::guiplatform::category::helpers::CategoryHandler::logger = LogFactory.getLogger(CategoryHandler.class.getName()) [static, package]

logger

Referenced by getChildren().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2