application program interface API Overview: channel.software
( Return to API Overview )

Available methods

Description

ChannelSoftwareHandler

Namespace: channel.software


Method: addPackages

Description:
Adds a given list of packages to the given channel.

Parameters:

Returns: int - 1 if successful, exception otherwise


Method: availableEntitlements

Description:
Returns the number of available subscriptions for the given channel

Parameters:

Returns: int number of available subscriptions for the given channel


Method: clone

Description:
Clone a channel. If arch_label is omitted, the arch label of the original channel will be used. If parent_label is omitted, the clone will be a base channel.

Parameters:

Returns: int the cloned channel ID


Method: create

Description:
Creates a software channel

Parameters:

Returns: int - 1 if the creation operation succeeded, 0 otherwise


Method: delete

Description:
Deletes a custom software channel

Parameters:

Returns: int - 1 if the operation succeeded, an exception otherwise


Method: getDetails

Description:
Returns details of the given channel as a map

Parameters:

Returns:


Method: getDetails

Description:
Returns details of the given channel as a map

Parameters:

Returns:


Method: isGloballySubscribable

Description:
Returns whether the channel is subscribable by any user in the organization

Parameters:

Returns: int - 1 if true, 0 otherwise


Method: isUserSubscribable

Description:
Returns whether the channel may be subscribed to by the given user.

Parameters:

Returns: int - 1 if subscribable, 0 if not


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of package version, between the given dates.

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of the package version

Parameters:

Returns:


Method: listAllPackages

Description:
Lists all packages in the channel, regardless of version whose last modified date is greater than given date.

Parameters:

Returns:


Method: listAllPackagesByDate

Description:
Lists all packages in the channel, regardless of the package version, whose last modified date is greater than given date

Parameters:

Returns:


Method: listAllPackagesByDate

Description:
Lists all packages in the channel, regardless of the package version, between the given dates

Parameters:

Returns:


Method: listAllPackagesByDate

Description:
Lists all packages in the channel, regardless of the package version

Parameters:

Returns:


Method: listArches

Description:
Lists the potential software channel architectures that can be created

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel

Parameters:

Returns:


Method: listErrata

Description:
List the errata applicable to a channel after given startDate

Parameters:

Returns:


Method: listErrata

Description:
Returns list of subscribed systems for the given channel label

Parameters:

Returns:


Method: listLatestPackages

Description:
Lists the packages with the largest version (including release and epoch) for the given channel

Parameters:

Returns:


Method: listPackagesWithoutChannel

Description:
Lists all packages that are not associated with a channel. Typically these are custom packages.

Parameters:

Returns:


Method: listSubscribedSystems

Description:
Returns list of subscribed systems for the given channel label

Parameters:

Returns:


Method: listSystemChannels

Description:
Returns a list of channels that a system is subscribed to for the given system id

Parameters:

Returns:


Method: mergePackages

Description:
Merges all packages from one channel into another

Parameters:

Returns:


Method: removePackages

Description:
Removes a given list of packages from the given channel.

Parameters:

Returns: int - 1 if successful, exception otherwise.


Method: setGloballySubscribable

Description:
Set globally subscribable attribute for given channel.

Parameters:

Returns: int - 1 if successful, exception otherwise


Method: setSystemChannels

Description:
Change a systems subscribed channels to the list of channels passed in.

Parameters:

Returns: int - 1 on success, 0 otherwise


Method: setUserSubscribable

Description:
Set the subscribable flag for a given channel and user. If value is set to 'true', this method will give the user subscribe permissions to the channel. Otherwise, that privilege is revoked.

Parameters:

Returns: int - 1 on success, an exception otherwise


Method: subscribeSystem

Description:
Subscribes a system to a list of channels. If a base channel is included, that is set before setting child channels. When setting child channels the current child channel subscriptions are cleared. To fully unsubscribe the system from all channels, simply provide an empty list of channel labels.

Parameters:

Returns: int '1' on success.