Package org.criticalfailure.torchlight.core.application.entity

Examples of org.criticalfailure.torchlight.core.application.entity.Alert


        else {
            logger.error("Unable to clear data; no 'participants' object data found in instance: "
                    + encounter.getObjectInstance());

            // alert service
            alertService.addAlert(new Alert(Alert.Type.ERROR, EncounterBuilderEditor.class.getSimpleName(),
                    "Unable to clear data; no 'participants' object data found in instance: "
                            + encounter.getObjectInstance()));
        }
    }
View Full Code Here


            }
        }
        catch(Exception e) {
            logger.error("Exception caught while handling OSGi event: " + e.getLocalizedMessage(), e);

            alertService.addAlert(new Alert(Alert.Type.ERROR, Messages.getString("encounter.tracker.error.event"), e
                    .getLocalizedMessage()));
        }
    }
View Full Code Here

        }
        catch(Exception e) {
            logger.error("Exception while parsing URI for local campaign storage: " + e.getLocalizedMessage(), e);

            alertService
                    .addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e.getLocalizedMessage()));

            return "";
        }
    }
View Full Code Here

                }
                catch(Exception e) {
                    logger.error("Exception caught while trying to persist campaign model object: "
                            + e.getLocalizedMessage(), e);

                    alertService.addAlert(new Alert(Alert.Type.ERROR, CampaignModelObjectPersister.class
                            .getSimpleName(), e.getLocalizedMessage()));
                }
            }
        }
        catch(Exception e) {
            logger.error("Exception caught while handling OSGi event: " + e.getLocalizedMessage(), e);

            alertService.addAlert(new Alert(Alert.Type.ERROR, CampaignModelObjectPersister.class.getSimpleName(), e
                    .getLocalizedMessage()));
        }
    }
View Full Code Here

                objectInstance.save();
            }
            catch(Exception e) {
                logger.error("Exception while trying to save object instance: " + e.getLocalizedMessage(), e);

                alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
                        .getLocalizedMessage()));
            }
        }
        else {
            logger.warn("No selected object!");

            alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), Messages
                    .getString("object.instance.editor.action.object_data.delete.error.no_selected_object.text")));
        }

        logger.info("Done executing 'delete object data' action.");
    }
View Full Code Here

                                    }
                                    catch(Exception e) {
                                        logger.warn("Exception caught while calculating object datum value: "
                                                + e.getLocalizedMessage());

                                        alertService.addAlert(new Alert(Alert.Type.WARN, ObjectInstanceEditor.class
                                                .getSimpleName(), e.getLocalizedMessage()));
                                    }
                                }
                            }

                            logger.trace("needSave: " + needSave);
                            if(needSave) {
                                logger.debug("saving object instance after calculations");
                                objectInstance.save();
                            }
                        }
                    }
                }
            }
        }
        catch(Exception e) {
            logger.error("Exception caught while handling OSGi event: " + e.getLocalizedMessage(), e);

            alertService.addAlert(new Alert(Alert.Type.ERROR, CampaignModelObjectPersister.class.getSimpleName(), e
                    .getLocalizedMessage()));
        }
    }
View Full Code Here

        }
        catch(Exception e) {
            logger.error("Exception while trying to open object template: " + e.getLocalizedMessage(), e);

            alertService
                    .addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e.getLocalizedMessage()));
        }

        logger.info("Done executing 'open object template' action.");
    }
View Full Code Here

        }
        catch(Exception e) {
            logger.error("Exception while trying to save object data: " + e.getLocalizedMessage(), e);

            alertService
                    .addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e.getLocalizedMessage()));
        }

        logger.info("Done executing 'create object data' action.");
    }
View Full Code Here

                    ot.save();
                }
                catch(Exception e) {
                    logger.error("Exception while trying to save object template: " + e.getLocalizedMessage(), e);

                    alertService.addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e
                            .getLocalizedMessage()));
                }
            }
            else {
                logger.warn("Object property already exists for: " + selectedObject);

                alertService
                        .addAlert(new Alert(
                                Alert.Type.WARN,
                                this.getClass().getSimpleName(),
                                Messages
                                        .getString("object.instance.editor.action.object_data.create_property.error.property_already_exists.text")));
            }
        }
        else {
            logger.warn("No selected object!");

            alertService
                    .addAlert(new Alert(
                            Alert.Type.WARN,
                            this.getClass().getSimpleName(),
                            Messages
                                    .getString("object.instance.editor.action.object_data.create_property.error.no_selected_object.text")));
        }
View Full Code Here

        }
        catch(Exception e) {
            logger.error("Exception while handling OSGi event: " + e.getLocalizedMessage(), e);

            alertService
                    .addAlert(new Alert(Alert.Type.ERROR, this.getClass().getSimpleName(), e.getLocalizedMessage()));
        }
    }
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.application.entity.Alert

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.