public class ChannelEditor
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addPackages(User user,
Channel channel,
java.util.Collection packageIds)
Adds a list of packages to a channel.
|
static ChannelEditor |
getInstance() |
void |
removePackages(User user,
Channel channel,
java.util.Collection packageIds)
Removes a list of packages from a channel
|
public static ChannelEditor getInstance()
public void addPackages(User user, Channel channel, java.util.Collection packageIds)
user
- The user requesting the package additionschannel
- The channel to add the packages topackageIds
- A list containing the ids of packages to add.public void removePackages(User user, Channel channel, java.util.Collection packageIds)
user
- The user requesting the package removalschannel
- The channel to remove the packages frompackageIds
- A list containing the ids of packages to remove.