Package com.i2group.disco.alerts
Class SendTo
java.lang.Object
com.i2group.disco.alerts.SendTo
- All Implemented Interfaces:
ISendTo
Implements
ISendTo
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISendTo
createWithCommandPermissions
(String... commandPermissions) Create anISendTo
that will match the specified command access control permissions.static ISendTo
createWithGroups
(String... groups) Create anISendTo
that will match the specified system user groups.static ISendTo
createWithUsers
(String... users) Create anISendTo
that will match the specified user principal names.Gets the names of command access control permissions whose owners are to receive the alert.Gets the names of specific system user groups to receive the alert.getUsers()
Gets the principal names of specific users to receive the alert.boolean
Indicates whether all users are to receive the alert.static ISendTo
Create anISendTo
that matches all users in the system.
-
Constructor Details
-
SendTo
Create aSendTo
from the specified criteria.- Parameters:
users
- The user principal names. May benull
.groups
- The system user groups. May benull
.commandPermissions
- The command access control permissions. May benull
.
-
-
Method Details
-
createWithUsers
Create anISendTo
that will match the specified user principal names.- Parameters:
users
- See above.- Returns:
- See above.
-
createWithGroups
Create anISendTo
that will match the specified system user groups.- Parameters:
groups
- See above.- Returns:
- See above.
-
createWithCommandPermissions
Create anISendTo
that will match the specified command access control permissions.- Parameters:
commandPermissions
- See above.- Returns:
- See above.
-
sendToAll
Create anISendTo
that matches all users in the system.- Returns:
- See above.
-
getUsers
Description copied from interface:ISendTo
Gets the principal names of specific users to receive the alert. -
getGroups
Description copied from interface:ISendTo
Gets the names of specific system user groups to receive the alert. -
getCommandPermissions
Description copied from interface:ISendTo
Gets the names of command access control permissions whose owners are to receive the alert.- Specified by:
getCommandPermissions
in interfaceISendTo
- Returns:
- See above, or
null
if this criterion is not used.
-
isSendToAll
public boolean isSendToAll()Description copied from interface:ISendTo
Indicates whether all users are to receive the alert.- Specified by:
isSendToAll
in interfaceISendTo
- Returns:
true
if the alert is to go to all users, overriding any other criteria.false
if the other criteria take precedence.
-