Public Member Functions | Static Public Member Functions

cl.utfsm.acs.acg.core.AlarmSystemManager Class Reference

Inheritance diagram for cl.utfsm.acs.acg.core.AlarmSystemManager:
cl.utfsm.acs.acg.core.EntityManager

List of all members.

Public Member Functions

void connectToManager () throws Exception
void connectToDAL () throws AcsJContainerServicesEx
void loadFromCDB ()
String checkCDB ()
void saveToCDB ()
void disconnectFromManager ()
AlarmManager getAlarmManager ()
SourceManager getSourceManager ()
CategoryManager getCategoryManager () throws IllegalStateException
ReductionManager getReductionManager ()
UserAuthenticator.Role getRole ()
void setConfigurationProperty (String ct, String val)
String getConfigurationPrperty (String ct)

Static Public Member Functions

static AlarmSystemManager getInstance (UserAuthenticator.Role role)
static AlarmSystemManager getInstance ()
static void destroy ()

Detailed Description

Class representing the whole instance of the Alarm System configuration. It includes the other entities managers of this package.

See also:
cl.utfsm.acs.acg.core
Author:
rtobar

Member Function Documentation

void cl.utfsm.acs.acg.core.AlarmSystemManager.connectToDAL (  )  throws AcsJContainerServicesEx

Gets a reference to the CDB DAL.

Exceptions:
AcsJContainerServicesEx If there is an error while getting the DAL reference.

References cl.utfsm.acs.acg.core.DAOManager.connect().

void cl.utfsm.acs.acg.core.AlarmSystemManager.connectToManager (  )  throws Exception

Connects the application to the ACS Manager and initializes the DAO Manager for ACG.

Exceptions:
Exception If the connection to the Manager is unsuccessful

References cl.utfsm.acs.acg.core.AcsInformation.getContainerServices().

static void cl.utfsm.acs.acg.core.AlarmSystemManager.destroy (  )  [static]

Destroys the singleton instance of this class. This is needed to renew the internal references to the DAOs if a new connection to the DAL and the ACS Manager has been performed

void cl.utfsm.acs.acg.core.AlarmSystemManager.disconnectFromManager (  ) 
String cl.utfsm.acs.acg.core.AlarmSystemManager.getConfigurationPrperty ( String  ct  ) 

This method retrieves the current value of a given configuration-property.

Parameters:
ct The configuration-property type that will be queried.
Returns:

Referenced by cl.utfsm.acs.acg.gui.AlarmSystemView.refreshContents().

static AlarmSystemManager cl.utfsm.acs.acg.core.AlarmSystemManager.getInstance ( UserAuthenticator.Role  role  )  [static]
static AlarmSystemManager cl.utfsm.acs.acg.core.AlarmSystemManager.getInstance (  )  [static]
UserAuthenticator.Role cl.utfsm.acs.acg.core.AlarmSystemManager.getRole (  ) 
void cl.utfsm.acs.acg.core.AlarmSystemManager.setConfigurationProperty ( String  ct,
String  val 
)

This method modifies the current value of a given configuration-property. As this 'value' is stored in a Hashtable it first checks if a previous 'value' existed (most likely) and removes it (if it existed) to prevent more than one 'value' for the same 'key'.

Parameters:
ct The configuration-property type that will be modified.
at The new value for the given configuration-property type.

Referenced by cl.utfsm.acs.acg.gui.AlarmSystemView.createPartControl().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties