public class Notification extends Object implements ModelInterface
| Modifier and Type | Field and Description |
|---|---|
Long |
groupId
ID of Group to receive notifications
|
String |
groupName
Group name, if a Group ID is set
|
Long |
id
Notification ID
|
String |
message
Custom message to include in notification emails
|
Boolean |
notifyOnCopy
Trigger on files copied to this path?
|
Boolean |
notifyOnDelete
Trigger on files deleted in this path?
|
Boolean |
notifyOnDownload
Trigger on files downloaded in this path?
|
Boolean |
notifyOnMove
Trigger on files moved to this path?
|
Boolean |
notifyOnUpload
Trigger on files created/uploaded/updated/changed in this path?
|
Boolean |
notifyUserActions
If true, will send notifications about a user's own activity to that user.
|
String |
path
Folder path to notify on.
|
Boolean |
recursive
Apply notification recursively?
|
String |
sendInterval
The time interval that notifications are aggregated to
|
Boolean |
suppressedEmail
If true, it means that the recipient at this user's email address has manually unsubscribed from all emails, or had their email "hard bounce", which means that we are unable to send mail to this user's current email address.
|
Boolean |
triggerByShareRecipients
Notify when actions are performed by a share recipient?
|
String[] |
triggeringFilenames
Array of filenames (possibly with wildcards) to scope trigger
|
Long[] |
triggeringGroupIds
If set, will only notify on actions made by a member of one of the specified groups
|
Long[] |
triggeringUserIds
If set, will only notify on actions made one of the specified users
|
Boolean |
unsubscribed
Is the user unsubscribed from this notification?
|
String |
unsubscribedReason
The reason that the user unsubscribed
|
Long |
userId
Notification user ID
|
String |
username
Notification username
|
| Constructor and Description |
|---|
Notification() |
Notification(HashMap<String,Object> parameters) |
Notification(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
| Modifier and Type | Method and Description |
|---|---|
static ListIterator<Notification> |
all() |
static ListIterator<Notification> |
all(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Notification |
create(HashMap<String,Object> parameters)
Parameters:
user_id - int64 - The id of the user to notify.
|
static Notification |
create(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
delete() |
static void |
delete(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
delete(Long id,
HashMap<String,Object> parameters) |
static void |
delete(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static void |
destroy() |
void |
destroy(HashMap<String,Object> parameters) |
static void |
destroy(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Notification |
find(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Notification |
find(Long id,
HashMap<String,Object> parameters)
Parameters:
id (required) - int64 - Notification ID.
|
static Notification |
find(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Notification |
get() |
static Notification |
get(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static ListIterator<Notification> |
list()
Parameters:
cursor - string - Used for pagination.
|
static ListIterator<Notification> |
list(HashMap<String,Object> parameters) |
static ListIterator<Notification> |
list(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
void |
save() |
Notification |
update()
Parameters:
notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
static Notification |
update(HashMap<String,Object> parameters,
HashMap<String,Object> options) |
static Notification |
update(Long id,
HashMap<String,Object> parameters)
Parameters:
notify_on_copy - boolean - If `true`, copying or moving resources into this path will trigger a notification, in addition to just uploads.
|
static Notification |
update(Long id,
HashMap<String,Object> parameters,
HashMap<String,Object> options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetOptionspublic Long id
public String path
public Long groupId
public String groupName
public Long[] triggeringGroupIds
public Long[] triggeringUserIds
public Boolean triggerByShareRecipients
public Boolean notifyUserActions
public Boolean notifyOnCopy
public Boolean notifyOnDelete
public Boolean notifyOnDownload
public Boolean notifyOnMove
public Boolean notifyOnUpload
public Boolean recursive
public String sendInterval
public String message
public String[] triggeringFilenames
public Boolean unsubscribed
public String unsubscribedReason
public Long userId
public String username
public Boolean suppressedEmail
public Notification update() throws IOException
IOExceptionpublic void delete()
throws IOException
IOExceptionpublic void destroy(HashMap<String,Object> parameters) throws IOException
IOExceptionpublic void save()
throws IOException
IOExceptionpublic static ListIterator<Notification> list() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Notification> list(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Notification> list(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static ListIterator<Notification> all() throws RuntimeException
RuntimeExceptionpublic static ListIterator<Notification> all(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Notification find(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Notification find(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Notification find(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Notification get() throws RuntimeException
RuntimeExceptionpublic static Notification get(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Notification create(HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Notification create(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Notification update(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static Notification update(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static Notification update(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(Long id, HashMap<String,Object> parameters) throws RuntimeException
RuntimeExceptionpublic static void delete(HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void delete(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionpublic static void destroy()
throws RuntimeException
RuntimeExceptionpublic static void destroy(Long id, HashMap<String,Object> parameters, HashMap<String,Object> options) throws RuntimeException
RuntimeExceptionCopyright © 2024 com.github.files-com. All rights reserved.