Search in sources :

Example 1 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method moduleUpgradeAvailable.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#moduleUpgradeAvailable(java.lang.String, java.lang.String)
	 */
@Override
public void moduleUpgradeAvailable(String name, String version) {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.MODULE_UPGRADE_AVAILABLE, name, version, null);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Example 2 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method upgradeError.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#upgradeError(java.lang.String)
	 */
@Override
public void upgradeError(String error) {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.UPGRADE_ERROR, null, null, error);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Example 3 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method moduleDownloaded.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#moduleDownloaded(java.lang.String, java.lang.String)
	 */
@Override
public void moduleDownloaded(String name, String version) {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.MODULE_DOWNLOADED, name, version, null);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Example 4 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method upgradeTaskFinished.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#upgradeTaskFinished()
	 */
@Override
public void upgradeTaskFinished() {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.UPGRADE_FINISHED, null, null, null);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Example 5 with ModuleNotificationModel

use of com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel in project ma-modules-public by infiniteautomation.

the class ModulesWebSocketHandler method moduleDownloadFailed.

/* (non-Javadoc)
	 * @see com.serotonin.m2m2.module.ModuleNotificationListener#moduleDownloadFailed(java.lang.String, java.lang.String)
	 */
@Override
public void moduleDownloadFailed(String name, String version, String reason) {
    ModuleNotificationModel model = new ModuleNotificationModel(ModuleNotificationTypeEnum.MODULE_DOWNLOAD_FAILED, name, version, reason);
    notify(model);
}
Also used : ModuleNotificationModel(com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)

Aggregations

ModuleNotificationModel (com.serotonin.m2m2.web.mvc.rest.v1.model.modules.ModuleNotificationModel)7