

Public Member Functions | |
| CategoryImpl () | |
| CategoryImpl (CategoryDefinition definition) | |
| CategoryImpl (Integer categoryId, String name, String description, String path, boolean isLeaf) | |
| Integer | getCategoryId () |
| String | getName () |
| String | getDescription () |
| Integer | getParentId () |
| void | addChildCategory (Category category) |
| void | removeChildCategory (Category category) |
| boolean | isLeaf () |
| void | addAlarm (Alarm alarm) |
| void | removeAlarm (Alarm alarm) |
| boolean | containsAlarm (Alarm alarm) |
| String | getPath () |
| CategoryDefinition | getDefinition () |
| void | setDefinition (CategoryDefinition definition) |
| void | setCategoryId (Integer newCategoryId) |
| void | setName (String newName) |
| void | setDescription (String newDescription) |
| void | setParentId (Integer newParentId) |
| void | setPath (String newPath) |
| boolean | equals (Object obj) |
| int | hashCode () |
| Object | clone () |
| String | toString () |
| Set | getChildrenIds () |
| void | setChildrenIds (Set newChildren) |
| Set | getAlarmIds () |
| void | setAlarmIds (Set newAlarms) |
Private Attributes | |
| Integer | categoryId |
| String | name |
| String | description |
| Integer | parentId |
| Set | childrenIds |
| Set | alarmIds |
| String | path |
| boolean | isLeaf |
.class table="CATEGORY"
| cern::laser::business::data::CategoryImpl::CategoryImpl | ( | ) | [inline] |
Empty constructor for Hibernate.
| cern::laser::business::data::CategoryImpl::CategoryImpl | ( | CategoryDefinition | definition | ) | [inline] |
| categoryDefinition |
References setDefinition().
| cern::laser::business::data::CategoryImpl::CategoryImpl | ( | Integer | categoryId, | |
| String | name, | |||
| String | description, | |||
| String | path, | |||
| boolean | isLeaf | |||
| ) | [inline] |
| categoryId | ||
| name | ||
| description | ||
| path | ||
| isLeaf |
| void cern::laser::business::data::CategoryImpl::addAlarm | ( | Alarm | alarm | ) | [inline] |
Sets up the bi-directional relationship between this category and the given alarm.
| alarm | the alarm to add. At the same time this category is added to the alarm's collection of categories. |
References cern::laser::business::data::Alarm::getAlarmId(), getAlarmIds(), and cern::laser::business::data::Alarm::getCategories().
| void cern::laser::business::data::CategoryImpl::addChildCategory | ( | Category | category | ) | [inline] |
| category |
Implements cern::laser::business::data::Category.
References cern::laser::business::data::Category::getCategoryId(), getCategoryId(), getChildrenIds(), and isLeaf().
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::linkWithAlarms(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::linkWithAlarms().
| Object cern::laser::business::data::CategoryImpl::clone | ( | ) | [inline] |
References getChildrenIds(), getPath(), and setChildrenIds().
| boolean cern::laser::business::data::CategoryImpl::containsAlarm | ( | Alarm | alarm | ) | [inline] |
| alarmId |
Implements cern::laser::business::data::Category.
References cern::laser::business::data::Alarm::getAlarmId(), and getAlarmIds().
| boolean cern::laser::business::data::CategoryImpl::equals | ( | Object | obj | ) | [inline] |
References getCategoryId().
| Set cern::laser::business::data::CategoryImpl::getAlarmIds | ( | ) | [inline] |
.set name="getAlarmIds" table="ALARM_CATEGORY" inverse="false" lazy="true" .collection-key column="CATEGORY_ID" .collection-element column="ALARM_ID" type="string"
References alarmIds.
Referenced by addAlarm(), containsAlarm(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::flushCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::flushCategory(), and removeAlarm().
| Integer cern::laser::business::data::CategoryImpl::getCategoryId | ( | ) | [inline] |
.id generator-class="sequence" column="CATEGORY_ID" unsaved-value="null" .generator-param name="sequence" value="SQ_PK_CATEGORY"
Implements cern::laser::business::data::Category.
References categoryId.
Referenced by addChildCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::dumpCategories(), equals(), hashCode(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::saveCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::saveCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setParentID(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::setParentID().
| Set cern::laser::business::data::CategoryImpl::getChildrenIds | ( | ) | [inline] |
.set name="getChildrenIds" table="CATEGORY" inverse="true" cascade="all-delete-orphan" lazy="true" .collection-key column="PARENT_ID" .collection-element column="CATEGORY_ID" type="integer" hib
References childrenIds.
Referenced by addChildCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::adjustParentIDs(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::adjustParentIDs(), clone(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::dumpCategories(), isLeaf(), removeChildCategory(), setChildrenIds(), and toString().
| CategoryDefinition cern::laser::business::data::CategoryImpl::getDefinition | ( | ) | [inline] |
Implements cern::laser::business::data::Category.
References getDescription(), and getPath().
| String cern::laser::business::data::CategoryImpl::getDescription | ( | ) | [inline] |
Implements cern::laser::business::data::Category.
References description.
Referenced by alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::dumpCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::flushCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::flushCategory(), and getDefinition().
| String cern::laser::business::data::CategoryImpl::getName | ( | ) | [inline] |
Implements cern::laser::business::data::Category.
References name.
Referenced by alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::dumpCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories().
| Integer cern::laser::business::data::CategoryImpl::getParentId | ( | ) | [inline] |
Implements cern::laser::business::data::Category.
References parentId.
Referenced by alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::dumpCategories().
| String cern::laser::business::data::CategoryImpl::getPath | ( | ) | [inline] |
.property name="getPath" column="PATH" not-null="false" unique="false"
Implements cern::laser::business::data::Category.
References path.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), clone(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::createACSCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::dumpCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::dumpCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::flushCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::flushCategory(), getDefinition(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::linkWithAlarms(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::linkWithAlarms(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::saveCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::saveCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setParentID(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::setParentID(), and toString().
| int cern::laser::business::data::CategoryImpl::hashCode | ( | ) | [inline] |
References getCategoryId().
| boolean cern::laser::business::data::CategoryImpl::isLeaf | ( | ) | [inline] |
Implements cern::laser::business::data::Category.
References getChildrenIds().
Referenced by addChildCategory(), removeChildCategory(), and setChildrenIds().
| void cern::laser::business::data::CategoryImpl::removeAlarm | ( | Alarm | alarm | ) | [inline] |
Removes the bi-directional relationship between this category and the given alarm.
| alarm | the alarm to remove. At the same time this category is removed from the alarm's collection of categories. |
Implements cern::laser::business::data::Category.
References getAlarmIds(), and cern::laser::business::data::Alarm::getCategories().
| void cern::laser::business::data::CategoryImpl::removeChildCategory | ( | Category | category | ) | [inline] |
Implements cern::laser::business::data::Category.
References cern::laser::business::data::Category::getCategoryId(), getChildrenIds(), and isLeaf().
| void cern::laser::business::data::CategoryImpl::setAlarmIds | ( | Set | newAlarms | ) | [inline] |
| newAlarms | The alarms to set. |
References alarmIds.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::getAlarm(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories().
| void cern::laser::business::data::CategoryImpl::setCategoryId | ( | Integer | newCategoryId | ) | [inline] |
References categoryId.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::saveCategory(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::saveCategory().
| void cern::laser::business::data::CategoryImpl::setChildrenIds | ( | Set | newChildren | ) | [inline] |
References childrenIds, getChildrenIds(), and isLeaf().
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::adjustParentIDs(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::adjustParentIDs(), clone(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::getAlarm(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories().
| void cern::laser::business::data::CategoryImpl::setDefinition | ( | CategoryDefinition | definition | ) | [inline] |
| void cern::laser::business::data::CategoryImpl::setDescription | ( | String | newDescription | ) | [inline] |
References description.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories(), and setDefinition().
| void cern::laser::business::data::CategoryImpl::setName | ( | String | newName | ) | [inline] |
References name.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories(), setDefinition(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setParentID(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::setParentID().
| void cern::laser::business::data::CategoryImpl::setParentId | ( | Integer | newParentId | ) | [inline] |
References parentId.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), alma::alarmsystem::alarmmessage::AlarmMessageConversion::getAlarm(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setParentID(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::setParentID().
| void cern::laser::business::data::CategoryImpl::setPath | ( | String | newPath | ) | [inline] |
References path.
Referenced by com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::addRootCategory(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::addRootCategory(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::loadCategories(), cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::loadCategories(), setDefinition(), com::cosylab::acs::laser::dao::ACSCategoryDAOImpl::setParentID(), and cl::utfsm::acs::acg::dao::ACSCategoryDAOImpl::setParentID().
| String cern::laser::business::data::CategoryImpl::toString | ( | ) | [inline] |
References categoryId, description, getChildrenIds(), getPath(), name, and parentId.
Set cern::laser::business::data::CategoryImpl::alarmIds [private] |
Referenced by getAlarmIds(), and setAlarmIds().
Integer cern::laser::business::data::CategoryImpl::categoryId [private] |
Referenced by getCategoryId(), setCategoryId(), and toString().
Set cern::laser::business::data::CategoryImpl::childrenIds [private] |
Referenced by getChildrenIds(), and setChildrenIds().
String cern::laser::business::data::CategoryImpl::description [private] |
Referenced by getDescription(), setDescription(), and toString().
boolean cern::laser::business::data::CategoryImpl::isLeaf [private] |
String cern::laser::business::data::CategoryImpl::name [private] |
Referenced by getName(), setName(), and toString().
Integer cern::laser::business::data::CategoryImpl::parentId [private] |
Referenced by getParentId(), setParentId(), and toString().
String cern::laser::business::data::CategoryImpl::path [private] |
1.6.2