Interface RosterManager
public interface RosterManager
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addUsers
(String rosterName, List<User> users, UICallback ui) Adds one or more users to an existing roster without deleting existing users.void
deleteRosters
(List<String> names, UICallback ui) void
editRoster
(String name, List<User> users, UICallback ui) Deletes all existing users in a roster, then adds all users in the user list.Return the ordered list of users in this rosterReturn a list of all defined on-call roster namesvoid
removeUsers
(String rosterName, List<User> users, UICallback ui) Removes one or more users from an existing roster.
-
Method Details
-
getRosters
Return a list of all defined on-call roster names -
getRoster
Return the ordered list of users in this roster -
editRoster
Deletes all existing users in a roster, then adds all users in the user list.- Parameters:
name
- Not nullusers
- Not null, but may be emptyui
- Nullable
-
addUsers
Adds one or more users to an existing roster without deleting existing users.- Parameters:
rosterName
- Name of roster to add tousers
- List of users to add. May be empty, which is effectively a no-opui
- UICallback for error reporting. May be null.
-
removeUsers
Removes one or more users from an existing roster.- Parameters:
rosterName
- Name of roster to remove fromusers
- List of users to remove. May be empty, which is effectively a no-opui
- UICallback for error reporting. May be null.
-
deleteRosters
-