public class Alert extends java.lang.Object
Constructor and Description |
---|
Alert() |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Long> |
getAlertGroupIds() |
java.lang.String |
getAlertId() |
java.lang.String |
getAlertType() |
java.util.Date |
getCreated() |
java.lang.String |
getDescription() |
java.util.List<java.lang.String> |
getFileGUIDs()
for solr
|
FileDetailsList |
getFiles() |
Location |
getLocation() |
java.lang.String |
getLocationString()
for solr
|
java.lang.Integer |
getRange() |
core.tut.pori.users.UserIdentity |
getUserId() |
java.lang.Long |
getUserIdValue()
for solr
|
java.util.Date |
getValidUntil() |
static boolean |
isValid(Alert alert) |
void |
setAlertGroupIds(java.util.List<java.lang.Long> alertGroupIds) |
void |
setAlertId(java.lang.String id) |
void |
setAlertType(java.lang.String alertType) |
void |
setCreated(java.util.Date created) |
void |
setDescription(java.lang.String description) |
void |
setFiles(FileDetailsList files) |
void |
setLocation(Location location) |
void |
setRange(java.lang.Integer range)
Note: this is not used when calculating range queries, this is an optional field that can be specified to give more information about the alert
|
void |
setUserId(core.tut.pori.users.UserIdentity userId) |
void |
setValidUntil(java.util.Date validUntil) |
public Alert()
public static boolean isValid(Alert alert)
alert
- public java.util.Date getCreated()
setCreated(Date)
public void setCreated(java.util.Date created)
created
- getCreated()
public java.util.List<java.lang.Long> getAlertGroupIds()
setAlertGroupIds(List)
public void setAlertGroupIds(java.util.List<java.lang.Long> alertGroupIds)
alertGroupIds
- the alertGroupId to setgetAlertGroupIds()
public java.lang.String getAlertType()
setAlertType(String)
public void setAlertType(java.lang.String alertType)
alertType
- the alertType to setgetAlertType()
public java.lang.String getDescription()
setDescription(String)
public void setDescription(java.lang.String description)
description
- the description to setgetDescription()
public FileDetailsList getFiles()
setFiles(FileDetailsList)
public void setFiles(FileDetailsList files)
files
- the files to setgetFiles()
public Location getLocation()
setLocation(Location)
public void setLocation(Location location)
location
- the location to setgetLocation()
public core.tut.pori.users.UserIdentity getUserId()
setUserId(UserIdentity)
public void setUserId(core.tut.pori.users.UserIdentity userId)
userId
- the userId to setgetUserId()
public java.lang.Long getUserIdValue()
getUserId()
public java.util.List<java.lang.String> getFileGUIDs()
getFiles()
public java.lang.String getLocationString()
getLocation()
public java.lang.String getAlertId()
setAlertId(String)
public void setAlertId(java.lang.String id)
id
- getAlertId()
public java.util.Date getValidUntil()
setValidUntil(Date)
public void setValidUntil(java.util.Date validUntil)
validUntil
- the validUntil to setgetValidUntil()
public java.lang.Integer getRange()
setRange(Integer)
public void setRange(java.lang.Integer range)
range
- the range this alert is valid from the center coordinate (in meters)getRange()
Copyright © 2015-2018 Tampere University of Technology, Pori Department.