public class ChannelSoftwareHandler extends BaseHandler
VALID
Constructor and Description |
---|
ChannelSoftwareHandler() |
Modifier and Type | Method and Description |
---|---|
int |
addPackages(User loggedInUser,
java.lang.String channelLabel,
java.util.List<java.lang.Long> packageIds)
Adds a given list of packages to the given channel.
|
int |
addRepoFilter(User loggedInUser,
java.lang.String label,
java.util.Map<java.lang.String,java.lang.String> filterIn)
adds a filter for a given repo.
|
Channel |
associateRepo(User loggedInUser,
java.lang.String chanLabel,
java.lang.String repoLabel)
Associates a repository with a channel
|
int |
clearRepoFilters(User loggedInUser,
java.lang.String label)
Clears the filters for a repo
|
int |
clone(User loggedInUser,
java.lang.String originalLabel,
java.util.Map<java.lang.String,java.lang.String> channelDetails,
java.lang.Boolean originalState)
Clone a channel
|
int |
create(User loggedInUser,
java.lang.String label,
java.lang.String name,
java.lang.String summary,
java.lang.String archLabel,
java.lang.String parentLabel)
Creates a software channel, parent_channel_label can be empty string
|
int |
create(User loggedInUser,
java.lang.String label,
java.lang.String name,
java.lang.String summary,
java.lang.String archLabel,
java.lang.String parentLabel,
java.lang.String checksumType)
Creates a software channel, parent_channel_label can be empty string
|
int |
create(User loggedInUser,
java.lang.String label,
java.lang.String name,
java.lang.String summary,
java.lang.String archLabel,
java.lang.String parentLabel,
java.lang.String checksumType,
java.util.Map<java.lang.String,java.lang.String> gpgKey)
Creates a software channel, parent_channel_label can be empty string
|
ContentSource |
createRepo(User loggedInUser,
java.lang.String label,
java.lang.String type,
java.lang.String url)
Creates a repository
|
ContentSource |
createRepo(User loggedInUser,
java.lang.String label,
java.lang.String type,
java.lang.String url,
java.lang.String sslCaCert,
java.lang.String sslCliCert,
java.lang.String sslCliKey)
Creates a repository
|
int |
delete(User loggedInUser,
java.lang.String channelLabel)
Deletes a software channel
|
Channel |
disassociateRepo(User loggedInUser,
java.lang.String chanLabel,
java.lang.String repoLabel)
Disassociates a repository from a channel
|
java.lang.String |
getChannelLastBuildById(User loggedInUser,
java.lang.Integer id)
Returns the last build date on the repodata for a channel
|
Channel |
getDetails(User loggedInUser,
java.lang.Integer id)
Returns the requested channel
|
Channel |
getDetails(User loggedInUser,
java.lang.String channelLabel)
Returns the details of the given channel as a map with the following
keys:
|
ContentSource |
getRepoDetails(User loggedInUser,
java.lang.Integer id)
Returns the details of the given repo
|
ContentSource |
getRepoDetails(User loggedInUser,
java.lang.String repoLabel)
Returns the details of the given repo
|
java.lang.String |
getRepoSyncCronExpression(User loggedInUser,
java.lang.String channelLabel)
Returns repo synchronization quartz expression
|
int |
isGloballySubscribable(User loggedInUser,
java.lang.String channelLabel)
Returns whether the channel is subscribable by any user in the
organization.
|
int |
isUserManageable(User loggedInUser,
java.lang.String channelLabel,
java.lang.String login)
Returns whether the channel may be managed by the given user.
|
int |
isUserSubscribable(User loggedInUser,
java.lang.String channelLabel,
java.lang.String login)
Returns whether the channel may be subscribed to by the given user.
|
java.util.List<PackageDto> |
listAllPackages(User loggedInUser,
java.lang.String channelLabel)
Lists all packages in the channel, regardless of version
|
java.util.List<PackageDto> |
listAllPackages(User loggedInUser,
java.lang.String channelLabel,
java.util.Date startDate)
Lists all packages in the channel, regardless of version whose last
modified date is greater than given date.
|
java.util.List<PackageDto> |
listAllPackages(User loggedInUser,
java.lang.String channelLabel,
java.util.Date startDate,
java.util.Date endDate)
Lists all packages in the channel, regardless of version, between the
given dates.
|
java.util.List<PackageDto> |
listAllPackages(User loggedInUser,
java.lang.String channelLabel,
java.lang.String startDate)
Deprecated.
being replaced by listAllPackages(string sessionKey,
string channelLabel, dateTime.iso8601 startDate)
|
java.util.List<PackageDto> |
listAllPackages(User loggedInUser,
java.lang.String channelLabel,
java.lang.String startDate,
java.lang.String endDate)
Deprecated.
being replaced by listAllPackages(string sessionKey,
string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601 endDate)
|
java.lang.Object[] |
listAllPackagesByDate(User loggedInUser,
java.lang.String channelLabel)
Deprecated.
being replaced by listAllPackages(string sessionKey,
string channelLabel)
|
java.lang.Object[] |
listAllPackagesByDate(User loggedInUser,
java.lang.String channelLabel,
java.lang.String startDate)
Deprecated.
being replaced by listAllPackages(string sessionKey,
string channelLabel, dateTime.iso8601 startDate)
|
java.lang.Object[] |
listAllPackagesByDate(User loggedInUser,
java.lang.String channelLabel,
java.lang.String startDate,
java.lang.String endDate)
Deprecated.
being replaced by listAllPackages(string sessionKey,
string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601 endDate)
|
java.util.List<ChannelArch> |
listArches(User loggedInUser)
Return Lists potential software channel arches that can be created
|
java.util.List<ContentSource> |
listChannelRepos(User loggedInUser,
java.lang.String channelLabel)
Lists associated repos with the given channel
|
java.lang.Object[] |
listChildren(User loggedInUser,
java.lang.String channelLabel)
List the children of a channel
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listErrata(User loggedInUser,
java.lang.String channelLabel)
List the errata applicable to a channel
|
java.util.List<ErrataOverview> |
listErrata(User loggedInUser,
java.lang.String channelLabel,
java.util.Date startDate)
List the errata applicable to a channel after given startDate
|
java.util.List<ErrataOverview> |
listErrata(User loggedInUser,
java.lang.String channelLabel,
java.util.Date startDate,
java.util.Date endDate)
List the errata applicable to a channel between startDate and endDate.
|
java.util.List<ErrataOverview> |
listErrata(User loggedInUser,
java.lang.String channelLabel,
java.util.Date startDate,
java.util.Date endDate,
boolean lastModified)
List the errata applicable to a channel between startDate and endDate.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listErrata(User loggedInUser,
java.lang.String channelLabel,
java.lang.String startDate)
Deprecated.
being replaced by listErrata(string sessionKey,
string channelLabel, dateTime.iso8601 startDate)
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listErrata(User loggedInUser,
java.lang.String channelLabel,
java.lang.String startDate,
java.lang.String endDate)
Deprecated.
being replaced by listErrata(string sessionKey,
string channelLabel, dateTime.iso8601 startDate, dateTime.iso8601)
|
java.lang.Object[] |
listErrataByType(User loggedInUser,
java.lang.String channelLabel,
java.lang.String advisoryType)
List the errata of a specific type that are applicable to a channel
|
java.util.List<ErrataOverview> |
listErrataNeedingSync(User loggedInUser,
java.lang.String channelLabel)
If you have satellite-synced a new channel then Red Hat Errata
will have been updated with the packages that are in the newly synced
channel.
|
java.lang.Object[] |
listLatestPackages(User loggedInUser,
java.lang.String channelLabel)
Lists the packages with the latest version (including release and epoch)
for the unique package names
|
java.lang.Object[] |
listPackagesWithoutChannel(User loggedInUser)
Lists all packages for an Org that are not contained within any channel
|
java.util.List<ContentSourceFilter> |
listRepoFilters(User loggedInUser,
java.lang.String label)
Lists the filters for a repo
|
java.lang.Object[] |
listSubscribedSystems(User loggedInUser,
java.lang.String label)
Returns list of subscribed systems for the given channel label.
|
java.lang.Object[] |
listSystemChannels(User loggedInUser,
java.lang.Integer sid)
Retrieve the channels for a given system id.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
listUserRepos(User loggedInUser)
Returns a list of ContentSource (repos) that the user can see
|
java.lang.Object[] |
mergeErrata(User loggedInUser,
java.lang.String mergeFromLabel,
java.lang.String mergeToLabel)
Merge a channel's errata into another channel.
|
java.lang.Object[] |
mergeErrata(User loggedInUser,
java.lang.String mergeFromLabel,
java.lang.String mergeToLabel,
java.util.List<java.lang.String> errataNames)
Merge a list of errata from one channel into another channel
|
java.lang.Object[] |
mergeErrata(User loggedInUser,
java.lang.String mergeFromLabel,
java.lang.String mergeToLabel,
java.lang.String startDate,
java.lang.String endDate)
Merge a channel's errata into another channel based upon a given start/end date.
|
java.lang.Object[] |
mergePackages(User loggedInUser,
java.lang.String mergeFromLabel,
java.lang.String mergeToLabel)
Merge a channel's packages into another channel.
|
int |
regenerateNeededCache(User loggedInUser)
Regenerate the errata cache for all the systems subscribed to the satellite
|
int |
regenerateNeededCache(User loggedInUser,
java.lang.String channelLabel)
Regenerate the errata cache for all the systems subscribed to a particular channel
|
int |
regenerateYumCache(User loggedInUser,
java.lang.String channelLabel)
Regenerate the yum cache for a specific channel.
|
int |
removeErrata(User loggedInUser,
java.lang.String channelLabel,
java.util.List<java.lang.String> errataNames,
boolean removePackages)
Removes a given list of errata from the given channel.
|
int |
removePackages(User loggedInUser,
java.lang.String channelLabel,
java.util.List<java.lang.Long> packageIds)
Removes a given list of packages from the given channel.
|
java.lang.Integer |
removeRepo(User loggedInUser,
java.lang.Integer id)
Removes a repository
|
java.lang.Integer |
removeRepo(User loggedInUser,
java.lang.String label)
Removes a repository
|
int |
removeRepoFilter(User loggedInUser,
java.lang.String label,
java.util.Map<java.lang.String,java.lang.String> filterIn)
Removes a filter for a given repo.
|
int |
setContactDetails(User loggedInUser,
java.lang.String channelLabel,
java.lang.String maintainerName,
java.lang.String maintainerEmail,
java.lang.String maintainerPhone,
java.lang.String supportPolicy)
Set the contact/support information for given channel.
|
int |
setDetails(User loggedInUser,
java.lang.Integer channelId,
java.util.Map<java.lang.String,java.lang.String> details)
Allows to modify channel attributes
|
int |
setDetails(User loggedInUser,
java.lang.String channelLabel,
java.util.Map<java.lang.String,java.lang.String> details)
Allows to modify channel attributes
|
int |
setGloballySubscribable(User loggedInUser,
java.lang.String channelLabel,
boolean value)
Set globally subscribable attribute for given channel.
|
int |
setRepoFilters(User loggedInUser,
java.lang.String label,
java.util.List<java.util.Map<java.lang.String,java.lang.String>> filtersIn)
replaces the existing set of filters for a given repo.
|
int |
setSystemChannels(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.String> channelLabels)
Deprecated.
being replaced by system.setBaseChannel(string sessionKey,
int serverId, string channelLabel) and system.setChildChannels(string sessionKey,
int serverId, array[string channelLabel])
|
int |
setUserManageable(User loggedInUser,
java.lang.String channelLabel,
java.lang.String login,
java.lang.Boolean value)
Set the manageable flag for a given channel and user.
|
int |
setUserSubscribable(User loggedInUser,
java.lang.String channelLabel,
java.lang.String login,
java.lang.Boolean value)
Set the subscribable flag for a given channel and user.
|
int |
subscribeSystem(User loggedInUser,
java.lang.Integer sid,
java.util.List<java.lang.String> labels)
Deprecated.
being replaced by system.setBaseChannel(string sessionKey,
int serverId, string channelLabel) and system.setChildChannels(string sessionKey,
int serverId, array[string channelLabel])
|
java.lang.Integer |
syncErrata(User loggedInUser,
java.lang.String channelLabel)
If you have satellite-synced a new channel then Red Hat Errata
will have been updated with the packages that are in the newly synced
channel.
|
int |
syncRepo(User loggedInUser,
java.lang.String channelLabel)
Trigger immediate repo synchronization
|
int |
syncRepo(User loggedInUser,
java.lang.String channelLabel,
java.util.Map<java.lang.String,java.lang.String> params)
Trigger immediate repo synchronization
|
int |
syncRepo(User loggedInUser,
java.lang.String channelLabel,
java.lang.String cronExpr)
Schedule periodic repo synchronization
|
int |
syncRepo(User loggedInUser,
java.lang.String channelLabel,
java.lang.String cronExpr,
java.util.Map<java.lang.String,java.lang.String> params)
Schedule periodic repo synchronization
|
ContentSource |
updateRepo(User loggedInUser,
java.lang.Integer id,
java.lang.String label,
java.lang.String url)
Updates a repository
|
ContentSource |
updateRepoLabel(User loggedInUser,
java.lang.Integer id,
java.lang.String label)
Updates repository label
|
ContentSource |
updateRepoLabel(User loggedInUser,
java.lang.String label,
java.lang.String newLabel)
Updates repository label
|
ContentSource |
updateRepoSsl(User loggedInUser,
java.lang.Integer id,
java.lang.String sslCaCert,
java.lang.String sslCliCert,
java.lang.String sslCliKey)
Updates repository SSL certificates
|
ContentSource |
updateRepoSsl(User loggedInUser,
java.lang.String label,
java.lang.String sslCaCert,
java.lang.String sslCliCert,
java.lang.String sslCliKey)
Updates repository SSL certificates
|
ContentSource |
updateRepoUrl(User loggedInUser,
java.lang.Integer id,
java.lang.String url)
Updates repository source URL
|
ContentSource |
updateRepoUrl(User loggedInUser,
java.lang.String label,
java.lang.String url)
Updates repository source URL
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public java.util.List<ErrataOverview> listErrataNeedingSync(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- Label of cloned channel to checkpublic java.lang.Integer syncErrata(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- Label of cloned channel to updateNoSuchChannelException
- thrown if no channel is found.public java.lang.Object[] listLatestPackages(User loggedInUser, java.lang.String channelLabel) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.NoSuchChannelException
- thrown if no channel is found.public java.util.List<PackageDto> listAllPackages(User loggedInUser, java.lang.String channelLabel, java.util.Date startDate, java.util.Date endDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.startDate
- last modified begin date (as a string)endDate
- last modified end date (as a string)NoSuchChannelException
- thrown if no channel is found.public java.util.List<PackageDto> listAllPackages(User loggedInUser, java.lang.String channelLabel, java.util.Date startDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.startDate
- last modified begin date (as a string)NoSuchChannelException
- thrown if no channel is found.public java.util.List<PackageDto> listAllPackages(User loggedInUser, java.lang.String channelLabel) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.NoSuchChannelException
- thrown if no channel is found.@Deprecated public java.util.List<PackageDto> listAllPackages(User loggedInUser, java.lang.String channelLabel, java.lang.String startDate, java.lang.String endDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.startDate
- last modified begin date (as a string)endDate
- last modified end date (as a string)NoSuchChannelException
- thrown if no channel is found.@Deprecated public java.util.List<PackageDto> listAllPackages(User loggedInUser, java.lang.String channelLabel, java.lang.String startDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.startDate
- last modified begin date (as a string)NoSuchChannelException
- thrown if no channel is found.@Deprecated public java.lang.Object[] listAllPackagesByDate(User loggedInUser, java.lang.String channelLabel, java.lang.String startDate, java.lang.String endDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.startDate
- last modified begin date (as a string)endDate
- last modified end date (as a string)NoSuchChannelException
- thrown if there is the channel is not
found.@Deprecated public java.lang.Object[] listAllPackagesByDate(User loggedInUser, java.lang.String channelLabel, java.lang.String startDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.startDate
- last modified begin date (as a string)NoSuchChannelException
- thrown if no channel is found.@Deprecated public java.lang.Object[] listAllPackagesByDate(User loggedInUser, java.lang.String channelLabel) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose package are sought.NoSuchChannelException
- thrown if no channel is found.public java.util.List<ChannelArch> listArches(User loggedInUser) throws PermissionCheckFailureException
loggedInUser
- The current userPermissionCheckFailureException
- thrown if the user is not a
channel adminpublic int delete(User loggedInUser, java.lang.String channelLabel) throws PermissionCheckFailureException, NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel to be deleted.PermissionCheckFailureException
- thrown if User has no access to
delete channel.NoSuchChannelException
- thrown if label is invalid.public int isGloballySubscribable(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- Label of channel to be deleted.public Channel getDetails(User loggedInUser, java.lang.String channelLabel) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- Label of channel whose details are sought.NoSuchChannelException
- thrown if no channel is found.public Channel getDetails(User loggedInUser, java.lang.Integer id) throws NoSuchChannelException
loggedInUser
- The current userid
- - id of channel wantedNoSuchChannelException
- thrown if no channel is found.public int setDetails(User loggedInUser, java.lang.String channelLabel, java.util.Map<java.lang.String,java.lang.String> details)
loggedInUser
- The current userchannelLabel
- label of channel to be modifieddetails
- map of channel attributes to be changedpublic int setDetails(User loggedInUser, java.lang.Integer channelId, java.util.Map<java.lang.String,java.lang.String> details)
loggedInUser
- The current userchannelId
- id of channel to be modifieddetails
- map of channel attributes to be changedpublic int create(User loggedInUser, java.lang.String label, java.lang.String name, java.lang.String summary, java.lang.String archLabel, java.lang.String parentLabel, java.lang.String checksumType, java.util.Map<java.lang.String,java.lang.String> gpgKey) throws PermissionCheckFailureException, InvalidChannelLabelException, InvalidChannelNameException, InvalidParentChannelException
loggedInUser
- The current userlabel
- Channel label to be createdname
- Name of Channelsummary
- Channel SummaryarchLabel
- Architecture labelparentLabel
- Parent Channel label (may be null)checksumType
- checksum type for this channelgpgKey
- a map consisting of string url, string id, string fingerprintPermissionCheckFailureException
- thrown if user does not have
permission to create the channel.InvalidChannelNameException
- thrown if given name is in use or
otherwise, invalid.InvalidChannelLabelException
- throw if given label is in use or
otherwise, invalid.InvalidParentChannelException
- thrown if parent label is for a
channel that is not a base channel.public int create(User loggedInUser, java.lang.String label, java.lang.String name, java.lang.String summary, java.lang.String archLabel, java.lang.String parentLabel, java.lang.String checksumType) throws PermissionCheckFailureException, InvalidChannelLabelException, InvalidChannelNameException, InvalidParentChannelException
loggedInUser
- The current userlabel
- Channel label to be createdname
- Name of Channelsummary
- Channel SummaryarchLabel
- Architecture labelparentLabel
- Parent Channel label (may be null)checksumType
- checksum type for this channelPermissionCheckFailureException
- thrown if user does not have
permission to create the channel.InvalidChannelNameException
- thrown if given name is in use or
otherwise, invalid.InvalidChannelLabelException
- throw if given label is in use or
otherwise, invalid.InvalidParentChannelException
- thrown if parent label is for a
channel that is not a base channel.public int create(User loggedInUser, java.lang.String label, java.lang.String name, java.lang.String summary, java.lang.String archLabel, java.lang.String parentLabel) throws PermissionCheckFailureException, InvalidChannelLabelException, InvalidChannelNameException, InvalidParentChannelException
loggedInUser
- The current userlabel
- Channel label to be createdname
- Name of Channelsummary
- Channel SummaryarchLabel
- Architecture labelparentLabel
- Parent Channel label (may be null)PermissionCheckFailureException
- thrown if user does not have
permission to create the channel.InvalidChannelNameException
- thrown if given name is in use or
otherwise, invalid.InvalidChannelLabelException
- throw if given label is in use or
otherwise, invalid.InvalidParentChannelException
- thrown if parent label is for a
channel that is not a base channel.public int setContactDetails(User loggedInUser, java.lang.String channelLabel, java.lang.String maintainerName, java.lang.String maintainerEmail, java.lang.String maintainerPhone, java.lang.String supportPolicy) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel to changemaintainerName
- The name of the channel maintainermaintainerEmail
- The email address of the channel maintainermaintainerPhone
- The phone number of the channel maintainersupportPolicy
- The channel support polityFaultException
- A FaultException is thrown if:
- The sessionKey is invalid
- The channelLabel is invalid
- The user doesn't have channel admin permissionspublic java.lang.Object[] listSubscribedSystems(User loggedInUser, java.lang.String label) throws FaultException
loggedInUser
- The current userlabel
- Label of the channel in question.FaultException
- A FaultException is thrown if:
- Logged in user is not a channel admin.
- Channel does not exist.public java.lang.Object[] listSystemChannels(User loggedInUser, java.lang.Integer sid) throws FaultException
loggedInUser
- The current usersid
- The id of the system in question.FaultException
- A FaultException is thrown if:
- sessionKey is invalid
- Server does not exist
- User does not have access to system@Deprecated public int setSystemChannels(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.String> channelLabels) throws FaultException
loggedInUser
- The current usersid
- The id for the system in questionchannelLabels
- The list of labels to subscribe the system toFaultException
- A FaultException is thrown if:
- sessionKey is invalid
- server doesn't exist
- channel doesn't exist
- user can't subscribe server to channel
- a base channel is not specified
- multiple base channels are specifiedpublic int setUserSubscribable(User loggedInUser, java.lang.String channelLabel, java.lang.String login, java.lang.Boolean value) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel in questionlogin
- The login for the user in questionvalue
- The boolean value telling us whether to grant subscribe permission or
revoke it.FaultException
- A FaultException is thrown if:
- The loggedInUser doesn't have permission to perform this action
- The login, sessionKey, or channelLabel is invalidpublic int setUserManageable(User loggedInUser, java.lang.String channelLabel, java.lang.String login, java.lang.Boolean value) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel in questionlogin
- The login for the user in questionvalue
- The boolean value telling us whether to grant manage permission or
revoke it.FaultException
- A FaultException is thrown if:
- The loggedInUser doesn't have permission to perform this action
- The login, sessionKey, or channelLabel is invalidpublic int isUserSubscribable(User loggedInUser, java.lang.String channelLabel, java.lang.String login) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel in questionlogin
- The login for the user in questionFaultException
- thrown if
- The loggedInUser doesn't have permission to perform this action
- The login, sessionKey, or channelLabel is invalidpublic int isUserManageable(User loggedInUser, java.lang.String channelLabel, java.lang.String login) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel in questionlogin
- The login for the user in questionFaultException
- thrown if
- The loggedInUser doesn't have permission to perform this action
- The login, sessionKey, or channelLabel is invalidpublic int setGloballySubscribable(User loggedInUser, java.lang.String channelLabel, boolean value) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channel to changevalue
- The boolean value to set globally subscribable to.FaultException
- A FaultException is thrown if:
- The sessionkey is invalid
- The channel is invalid
- The logged in user isn't a channel adminpublic int addPackages(User loggedInUser, java.lang.String channelLabel, java.util.List<java.lang.Long> packageIds) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channelpackageIds
- A list containing the ids of the packages to be addedFaultException
- A FaultException is thrown if:
- The user is not a channel admin for the channel
- The channel is invalid
- A package id is invalid
- The user doesn't have access to one of the channels in the listpublic int removeErrata(User loggedInUser, java.lang.String channelLabel, java.util.List<java.lang.String> errataNames, boolean removePackages)
loggedInUser
- The current userchannelLabel
- The label for the channelerrataNames
- A list containing the advisory names of errata to removeremovePackages
- Boolean to remove packages from the channel alsopublic int removePackages(User loggedInUser, java.lang.String channelLabel, java.util.List<java.lang.Long> packageIds) throws FaultException
loggedInUser
- The current userchannelLabel
- The label for the channelpackageIds
- A list containing the ids of the packages to be removedFaultException
- A FaultException is thrown if:
- The user is not a channel admin for the channel
- The channel is invalid
- A package id is invalid
- The user doesn't have access to one of the channels in the listpublic java.util.List<ErrataOverview> listErrata(User loggedInUser, java.lang.String channelLabel, java.util.Date startDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channelstartDate
- begin dateNoSuchChannelException
- thrown if there is no channel matching
channelLabel.public java.util.List<ErrataOverview> listErrata(User loggedInUser, java.lang.String channelLabel, java.util.Date startDate, java.util.Date endDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channelstartDate
- begin dateendDate
- end dateNoSuchChannelException
- thrown if there is no channel matching
channelLabel.public java.util.List<ErrataOverview> listErrata(User loggedInUser, java.lang.String channelLabel, java.util.Date startDate, java.util.Date endDate, boolean lastModified) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channelstartDate
- begin dateendDate
- end datelastModified
- select by last modified timestamp or notNoSuchChannelException
- thrown if there is no channel matching
channelLabel.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listErrata(User loggedInUser, java.lang.String channelLabel) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channelNoSuchChannelException
- thrown if there is no channel matching
channelLabel.
When removing deprecation, swtich this method over to using
listErrata(sessionKey, null, null) after deleting
listErrata(String, String, String, String), then update docs
to use $ErrataOverviewSerializer@Deprecated public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listErrata(User loggedInUser, java.lang.String channelLabel, java.lang.String startDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channelstartDate
- begin dateNoSuchChannelException
- thrown if there is no channel matching
channelLabel.@Deprecated public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listErrata(User loggedInUser, java.lang.String channelLabel, java.lang.String startDate, java.lang.String endDate) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channelstartDate
- begin dateendDate
- end dateNoSuchChannelException
- thrown if there is no channel matching
channelLabel.public java.lang.Object[] listErrataByType(User loggedInUser, java.lang.String channelLabel, java.lang.String advisoryType) throws NoSuchChannelException
loggedInUser
- The current userchannelLabel
- The label for the channeladvisoryType
- The type of advisory (one of the following:
"Security Advisory", "Product Enhancement Advisory",
"Bug Fix Advisory")NoSuchChannelException
- thrown if there is no channel matching
channelLabel.public java.lang.Object[] listPackagesWithoutChannel(User loggedInUser)
loggedInUser
- The current userNoSuchChannelException
- thrown if no channel is found.@Deprecated public int subscribeSystem(User loggedInUser, java.lang.Integer sid, java.util.List<java.lang.String> labels)
loggedInUser
- The current userlabels
- a list of channel labels to subscribe the system tosid
- the serverId of the system in questionpublic int clone(User loggedInUser, java.lang.String originalLabel, java.util.Map<java.lang.String,java.lang.String> channelDetails, java.lang.Boolean originalState)
loggedInUser
- The current useroriginalLabel
- the label of the channel to clonechannelDetails
- a map consisting of
string name
string label
string summary
string parent_label (optional)
string arch_label (optional)
string gpg_key_url (optional), gpg_url left for historical reasons
string gpg_key_id (optional), gpg_id left for historical reasons
string gpg_key_fp (optional), gpg_fingerprint left for historical reasons
string description (optional)originalState
- if true, only the original packages of the channel to clone
will be cloned. Any updates will not be.public java.lang.Object[] mergeErrata(User loggedInUser, java.lang.String mergeFromLabel, java.lang.String mergeToLabel)
loggedInUser
- The current usermergeFromLabel
- the label of the channel to pull the errata frommergeToLabel
- the label of the channel to push errata intopublic java.lang.Object[] mergeErrata(User loggedInUser, java.lang.String mergeFromLabel, java.lang.String mergeToLabel, java.lang.String startDate, java.lang.String endDate)
loggedInUser
- The current usermergeFromLabel
- the label of the channel to pull the errata frommergeToLabel
- the label of the channel to push errata intostartDate
- begin dateendDate
- end datepublic java.lang.Object[] mergeErrata(User loggedInUser, java.lang.String mergeFromLabel, java.lang.String mergeToLabel, java.util.List<java.lang.String> errataNames)
loggedInUser
- The current usermergeFromLabel
- the label of the channel to pull the errata frommergeToLabel
- the label of the channel to push errata intoerrataNames
- the list of errata to mergepublic java.lang.Object[] mergePackages(User loggedInUser, java.lang.String mergeFromLabel, java.lang.String mergeToLabel)
loggedInUser
- The current usermergeFromLabel
- the label of the channel to pull the packages frommergeToLabel
- the label of the channel to push packages intopublic int regenerateNeededCache(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- the channel labelpublic int regenerateNeededCache(User loggedInUser)
loggedInUser
- The current userpublic int regenerateYumCache(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- the channel labelpublic java.lang.Object[] listChildren(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- the channel labelpublic java.lang.String getChannelLastBuildById(User loggedInUser, java.lang.Integer id) throws NoSuchChannelException
loggedInUser
- The current userid
- - id of channel wantedNoSuchChannelException
- thrown if no channel is found.public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> listUserRepos(User loggedInUser)
loggedInUser
- The current userpublic ContentSource createRepo(User loggedInUser, java.lang.String label, java.lang.String type, java.lang.String url)
loggedInUser
- The current userlabel
- of the repo to be createdtype
- of the repourl
- of the repopublic ContentSource createRepo(User loggedInUser, java.lang.String label, java.lang.String type, java.lang.String url, java.lang.String sslCaCert, java.lang.String sslCliCert, java.lang.String sslCliKey)
loggedInUser
- The current userlabel
- of the repo to be createdtype
- of the repourl
- of the reposslCaCert
- CA certificate descriptionsslCliCert
- Client certificate descriptionsslCliKey
- Client key descriptionpublic java.lang.Integer removeRepo(User loggedInUser, java.lang.Integer id)
loggedInUser
- The current userid
- of the repo to be removedpublic java.lang.Integer removeRepo(User loggedInUser, java.lang.String label)
loggedInUser
- The current userlabel
- of the repo to be removedpublic Channel associateRepo(User loggedInUser, java.lang.String chanLabel, java.lang.String repoLabel)
loggedInUser
- The current userchanLabel
- of the channel to userepoLabel
- of the repo to associatepublic Channel disassociateRepo(User loggedInUser, java.lang.String chanLabel, java.lang.String repoLabel)
loggedInUser
- The current userchanLabel
- of the channel to userepoLabel
- of the repo to disassociatepublic ContentSource updateRepoUrl(User loggedInUser, java.lang.Integer id, java.lang.String url)
loggedInUser
- The current userid
- ID of the repourl
- new URL to usepublic ContentSource updateRepoUrl(User loggedInUser, java.lang.String label, java.lang.String url)
loggedInUser
- The current userlabel
- of the repo to useurl
- new URL to usepublic ContentSource updateRepoSsl(User loggedInUser, java.lang.Integer id, java.lang.String sslCaCert, java.lang.String sslCliCert, java.lang.String sslCliKey)
loggedInUser
- The current userid
- ID of the repositorysslCaCert
- new CA certificate descriptionsslCliCert
- new Client certificate descriptionsslCliKey
- new Client key descriptionpublic ContentSource updateRepoSsl(User loggedInUser, java.lang.String label, java.lang.String sslCaCert, java.lang.String sslCliCert, java.lang.String sslCliKey)
loggedInUser
- The current userlabel
- repository labelsslCaCert
- new CA certificate descriptionsslCliCert
- new Client certificate descriptionsslCliKey
- new Client key descriptionpublic ContentSource updateRepoLabel(User loggedInUser, java.lang.Integer id, java.lang.String label)
loggedInUser
- The current userid
- ID of the repolabel
- new labelpublic ContentSource updateRepoLabel(User loggedInUser, java.lang.String label, java.lang.String newLabel)
loggedInUser
- The current userlabel
- of the reponewLabel
- new labelpublic ContentSource updateRepo(User loggedInUser, java.lang.Integer id, java.lang.String label, java.lang.String url)
loggedInUser
- The current userid
- ID of the repolabel
- new labelurl
- new URLpublic ContentSource getRepoDetails(User loggedInUser, java.lang.String repoLabel)
loggedInUser
- The current userrepoLabel
- Label of repo whose details are sought.public ContentSource getRepoDetails(User loggedInUser, java.lang.Integer id)
loggedInUser
- The current userid
- ID of repo whose details are sought.public java.util.List<ContentSource> listChannelRepos(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- channel labelpublic int syncRepo(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- channel labelpublic int syncRepo(User loggedInUser, java.lang.String channelLabel, java.util.Map<java.lang.String,java.lang.String> params)
loggedInUser
- The current userchannelLabel
- channel labelparams
- parameterspublic int syncRepo(User loggedInUser, java.lang.String channelLabel, java.lang.String cronExpr)
loggedInUser
- The current userchannelLabel
- channel labelcronExpr
- cron expression, if empty all periodic schedules will be disabledpublic int syncRepo(User loggedInUser, java.lang.String channelLabel, java.lang.String cronExpr, java.util.Map<java.lang.String,java.lang.String> params)
loggedInUser
- The current userchannelLabel
- channel labelcronExpr
- cron expression, if empty all periodic schedules will be disabledparams
- parameterspublic java.lang.String getRepoSyncCronExpression(User loggedInUser, java.lang.String channelLabel)
loggedInUser
- The current userchannelLabel
- channel labelpublic java.util.List<ContentSourceFilter> listRepoFilters(User loggedInUser, java.lang.String label)
loggedInUser
- The current userlabel
- of the repo to usepublic int addRepoFilter(User loggedInUser, java.lang.String label, java.util.Map<java.lang.String,java.lang.String> filterIn)
loggedInUser
- The current userlabel
- of the repo to usefilterIn
- list of filterspublic int removeRepoFilter(User loggedInUser, java.lang.String label, java.util.Map<java.lang.String,java.lang.String> filterIn)
loggedInUser
- The current userlabel
- of the repo to usefilterIn
- list of filterspublic int setRepoFilters(User loggedInUser, java.lang.String label, java.util.List<java.util.Map<java.lang.String,java.lang.String>> filtersIn)
loggedInUser
- The current userlabel
- of the repo to usefiltersIn
- list of filterspublic int clearRepoFilters(User loggedInUser, java.lang.String label)
loggedInUser
- The current userlabel
- of the repo to use