cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl Class Reference

Inheritance diagram for cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CategoryBrowsingHandlerImpl () throws LaserConnectionException
Category getCategoryByPath (String path) throws LaserException
Category getCategoryTreeRoot () throws LaserException
Collection getChildren (Category node) throws LaserException
Collection getChildren (Integer nodeId) throws LaserException
Category getParent (Category node) throws LaserException
Category getParent (Integer nodeId) throws LaserException
Collection getCategories () throws LaserException

Static Public Member Functions

static Collection toBusinessCategoryCollection (alma.alarmsystem.Category[] cs)

Static Private Member Functions

static
cern.laser.business.data.Category 
toBusinessCategory (alma.alarmsystem.Category c)

Private Attributes

CERNAlarmService m_laser

Constructor & Destructor Documentation

cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::CategoryBrowsingHandlerImpl (  )  throws LaserConnectionException [inline]

References m_laser.


Member Function Documentation

Collection cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getCategories (  )  throws LaserException [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.

References alma::alarmsystem::CERNAlarmServiceOperations::getCategories(), m_laser, and toBusinessCategoryCollection().

Category cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getCategoryByPath ( String  path  )  throws LaserException [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.

References alma::alarmsystem::CERNAlarmServiceOperations::getCategoryByPath(), m_laser, and toBusinessCategory().

Category cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getCategoryTreeRoot (  )  throws LaserException [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 alma::alarmsystem::CERNAlarmServiceOperations::getCategoryTreeRoot(), m_laser, and toBusinessCategory().

Collection cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getChildren ( Integer  nodeId  )  throws LaserException [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 alma::alarmsystem::CERNAlarmServiceOperations::getCategoryChildren(), m_laser, and toBusinessCategoryCollection().

Collection cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getChildren ( Category  node  )  throws LaserException [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.

Category cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getParent ( Integer  nodeId  )  throws LaserException [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.

References alma::alarmsystem::CERNAlarmServiceOperations::getCategoryParent(), m_laser, and toBusinessCategory().

Category cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::getParent ( Category  node  )  throws LaserException [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.

static cern.laser.business.data.Category cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::toBusinessCategory ( alma.alarmsystem.Category  c  )  [inline, static, private]
static Collection cern::laser::client::impl::services::browsing::CategoryBrowsingHandlerImpl::toBusinessCategoryCollection ( alma.alarmsystem.Category[]  cs  )  [inline, static]

Helper method.

Parameters:
cs 
Returns:

References toBusinessCategory().

Referenced by getCategories(), and getChildren().


Member Data Documentation


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

Generated by  doxygen 1.6.2