Package org.openremote.manager.alarm
Class AlarmResourceImpl
java.lang.Object
org.openremote.container.web.WebResource
org.openremote.manager.web.ManagerWebResource
org.openremote.manager.alarm.AlarmResourceImpl
- All Implemented Interfaces:
org.openremote.container.security.AuthContext,org.openremote.model.alarm.AlarmResource
public class AlarmResourceImpl
extends ManagerWebResource
implements org.openremote.model.alarm.AlarmResource
-
Field Summary
Fields inherited from class org.openremote.manager.web.ManagerWebResource
identityService, timerServiceFields inherited from class org.openremote.container.web.WebResource
application, httpHeaders, request, response, securityContext, uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionAlarmResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, AlarmService alarmService) -
Method Summary
Modifier and TypeMethodDescriptionorg.openremote.model.alarm.SentAlarmcreateAlarm(org.openremote.model.http.RequestParams requestParams, org.openremote.model.alarm.Alarm alarm, List<String> assetIds) org.openremote.model.alarm.SentAlarmorg.openremote.model.alarm.SentAlarm[]getAlarms(org.openremote.model.http.RequestParams requestParams, String realm, org.openremote.model.alarm.Alarm.Status status, String assetId, String assigneeId) List<org.openremote.model.alarm.AlarmAssetLink> getAssetLinks(org.openremote.model.http.RequestParams requestParams, Long alarmId, String realm) voidremoveAlarm(org.openremote.model.http.RequestParams requestParams, Long alarmId) voidremoveAlarms(org.openremote.model.http.RequestParams requestParams, List<Long> alarmIds) voidsetAssetLinks(org.openremote.model.http.RequestParams requestParams, List<org.openremote.model.alarm.AlarmAssetLink> links) voidupdateAlarm(org.openremote.model.http.RequestParams requestParams, Long alarmId, org.openremote.model.alarm.SentAlarm newAlarm) Methods inherited from class org.openremote.manager.web.ManagerWebResource
getAuthenticatedRealm, getRequestRealm, isRealmActiveAndAccessible, isRealmActiveAndAccessible, isRestrictedUserMethods inherited from class org.openremote.container.web.WebResource
getApplication, getAuthContext, getAuthenticatedRealmName, getClientId, getClientRemoteAddress, getContainer, getRequestRealmName, getUserId, getUsername, hasRealmRole, hasResourceRole, isAuthenticatedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openremote.container.security.AuthContext
hasResourceRoleOrIsSuperUser, isRealmAccessibleByUser, isSuperUser
-
Constructor Details
-
AlarmResourceImpl
public AlarmResourceImpl(org.openremote.container.timer.TimerService timerService, ManagerIdentityService identityService, AlarmService alarmService)
-
-
Method Details
-
getAlarms
public org.openremote.model.alarm.SentAlarm[] getAlarms(org.openremote.model.http.RequestParams requestParams, String realm, org.openremote.model.alarm.Alarm.Status status, String assetId, String assigneeId) - Specified by:
getAlarmsin interfaceorg.openremote.model.alarm.AlarmResource
-
removeAlarms
public void removeAlarms(org.openremote.model.http.RequestParams requestParams, List<Long> alarmIds) - Specified by:
removeAlarmsin interfaceorg.openremote.model.alarm.AlarmResource
-
getAlarm
public org.openremote.model.alarm.SentAlarm getAlarm(org.openremote.model.http.RequestParams requestParams, Long alarmId) - Specified by:
getAlarmin interfaceorg.openremote.model.alarm.AlarmResource
-
removeAlarm
- Specified by:
removeAlarmin interfaceorg.openremote.model.alarm.AlarmResource
-
createAlarm
public org.openremote.model.alarm.SentAlarm createAlarm(org.openremote.model.http.RequestParams requestParams, org.openremote.model.alarm.Alarm alarm, List<String> assetIds) - Specified by:
createAlarmin interfaceorg.openremote.model.alarm.AlarmResource
-
updateAlarm
public void updateAlarm(org.openremote.model.http.RequestParams requestParams, Long alarmId, org.openremote.model.alarm.SentAlarm newAlarm) - Specified by:
updateAlarmin interfaceorg.openremote.model.alarm.AlarmResource
-
getAssetLinks
public List<org.openremote.model.alarm.AlarmAssetLink> getAssetLinks(org.openremote.model.http.RequestParams requestParams, Long alarmId, String realm) - Specified by:
getAssetLinksin interfaceorg.openremote.model.alarm.AlarmResource
-
setAssetLinks
public void setAssetLinks(org.openremote.model.http.RequestParams requestParams, List<org.openremote.model.alarm.AlarmAssetLink> links) - Specified by:
setAssetLinksin interfaceorg.openremote.model.alarm.AlarmResource
-