Search in sources :

Example 6 with ConfigurationProperty

use of alma.alarmsystem.alarmmessage.generated.ConfigurationProperty in project ACS by ACS-Community.

the class ACSAlarmSystemDAOImplTest method testGetConfiguration.

public void testGetConfiguration() {
    AlarmSystemConfiguration asc = _alarmSystemDAO.getConfiguration();
    ConfigurationProperty[] cps = asc.getConfigurationProperty();
    for (ConfigurationProperty cp : cps) {
        System.out.println(cp.getContent());
    }
    List<ConfigurationProperty> cpsL = _alarmSystemDAO.loadConfigurations();
    for (ConfigurationProperty cp : cpsL) {
        System.out.println(cp.getName() + "_" + cp.getContent());
    }
}
Also used : ConfigurationProperty(alma.alarmsystem.alarmmessage.generated.ConfigurationProperty) AlarmSystemConfiguration(alma.alarmsystem.alarmmessage.generated.AlarmSystemConfiguration)

Aggregations

ConfigurationProperty (alma.alarmsystem.alarmmessage.generated.ConfigurationProperty)6 AlarmSystemConfiguration (alma.alarmsystem.alarmmessage.generated.AlarmSystemConfiguration)5 StringReader (java.io.StringReader)2 CDBRecordDoesNotExistEx (alma.cdbErrType.CDBRecordDoesNotExistEx)1 DAL (com.cosylab.CDB.DAL)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 MarshalException (org.exolab.castor.xml.MarshalException)1 Unmarshaller (org.exolab.castor.xml.Unmarshaller)1 ValidationException (org.exolab.castor.xml.ValidationException)1