Package com.i2group.disco.alerts
Class SendTo
java.lang.Object
com.i2group.disco.alerts.SendTo
- All Implemented Interfaces:
ISendTo
Implements
ISendTo.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ISendTocreateWithCommandPermissions(String... commandPermissions) Create anISendTothat will match the specified command access control permissions.static ISendTocreateWithGroups(String... groups) Create anISendTothat will match the specified system user groups.static ISendTocreateWithUsers(String... users) Create anISendTothat 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.booleanIndicates whether all users are to receive the alert.static ISendToCreate anISendTothat matches all users in the system.
-
Constructor Details
-
SendTo
Create aSendTofrom 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 anISendTothat will match the specified user principal names.- Parameters:
users- See above.- Returns:
- See above.
-
createWithGroups
Create anISendTothat will match the specified system user groups.- Parameters:
groups- See above.- Returns:
- See above.
-
createWithCommandPermissions
Create anISendTothat will match the specified command access control permissions.- Parameters:
commandPermissions- See above.- Returns:
- See above.
-
sendToAll
Create anISendTothat matches all users in the system.- Returns:
- See above.
-
getUsers
Description copied from interface:ISendToGets the principal names of specific users to receive the alert. -
getGroups
Description copied from interface:ISendToGets the names of specific system user groups to receive the alert. -
getCommandPermissions
Description copied from interface:ISendToGets the names of command access control permissions whose owners are to receive the alert.- Specified by:
getCommandPermissionsin interfaceISendTo- Returns:
- See above, or
nullif this criterion is not used.
-
isSendToAll
public boolean isSendToAll()Description copied from interface:ISendToIndicates whether all users are to receive the alert.- Specified by:
isSendToAllin interfaceISendTo- Returns:
trueif the alert is to go to all users, overriding any other criteria.falseif the other criteria take precedence.
-