public class UpdateChannelCommand extends CreateChannelCommand
access, archLabel, CHANNEL_LABEL_MIN_LENGTH, CHANNEL_LABEL_REGEX, CHANNEL_NAME_MAX_LENGTH, CHANNEL_NAME_MIN_LENGTH, CHANNEL_NAME_REGEX, checksum, description, globallySubscribable, GPG_FP_REGEX, GPG_KEY_REGEX, GPG_URL_REGEX, gpgKeyFp, gpgKeyId, gpgKeyUrl, label, maintainerEmail, maintainerName, maintainerPhone, name, parentId, parentLabel, REDHAT_REGEX, summary, supportPolicy, user, WEB_CHANNEL_CREATED
Constructor and Description |
---|
UpdateChannelCommand()
default constructor.
|
UpdateChannelCommand(User userIn,
Channel channelIn)
prefill all channel atrributes
|
Modifier and Type | Method and Description |
---|---|
Channel |
update(java.lang.Long cid)
Updates the Channel based on the parameters that were set.
|
create, setAccess, setArchLabel, setChecksumLabel, setDescription, setGloballySubscribable, setGpgKeyFp, setGpgKeyId, setGpgKeyUrl, setLabel, setMaintainerEmail, setMaintainerName, setMaintainerPhone, setName, setParentChannel, setParentId, setParentLabel, setSummary, setSupportPolicy, setUser, validateChannel, verifyChannelLabel, verifyChannelName, verifyGpgInformation, verifyRequiredParameters
public Channel update(java.lang.Long cid) throws InvalidChannelLabelException, InvalidChannelNameException, InvalidParentChannelException
cid
- id of Channel to be updated.InvalidChannelLabelException
- thrown if label is in use or invalid.InvalidChannelNameException
- throw if name is in use or invalid.java.lang.IllegalArgumentException
- thrown if label, name or user are null.InvalidParentChannelException
- thrown if parent label is not a
valid base channel.