public class PackagesHandler extends BaseHandler
VALID
Constructor and Description |
---|
PackagesHandler() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Package> |
findByNvrea(User loggedInUser,
java.lang.String name,
java.lang.String version,
java.lang.String release,
java.lang.String epoch,
java.lang.String archLabel)
Lookup the details for packages with the given name, version,
release, architecture label, and (optionally) epoch.
|
java.util.Map |
getDetails(User loggedInUser,
java.lang.Integer pid)
Get Details - Retrieves the details for a given package
|
byte[] |
getPackage(User loggedInUser,
java.lang.Integer pid)
download a binary package
|
java.lang.String |
getPackageUrl(User loggedInUser,
java.lang.Integer pid)
get a package's download url
|
java.lang.String |
listChangelog(User loggedInUser,
java.lang.Integer pid)
Gets the change log for a given package
|
java.lang.Object[] |
listDependencies(User loggedInUser,
java.lang.Integer pid)
List dependencies for a given package.
|
java.lang.Object[] |
listFiles(User loggedInUser,
java.lang.Integer pid)
Get a list of files associated with a package
|
java.lang.Object[] |
listProvidingChannels(User loggedInUser,
java.lang.Integer pid)
List of Channels that provide a given package
|
java.lang.Object[] |
listProvidingErrata(User loggedInUser,
java.lang.Integer pid)
List of Errata that provide the given package.
|
java.lang.Object[] |
listSourcePackages(User loggedInUser)
List all source packages
|
int |
removePackage(User loggedInUser,
java.lang.Integer pid)
Removes a package from the system based on package id
|
int |
removeSourcePackage(User loggedInUser,
java.lang.Integer psid)
Removes a source package based on source package id
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists
public java.util.Map getDetails(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- The id of the package you're looking forFaultException
- A FaultException is thrown if the errata corresponding to
pid cannot be found.public java.lang.Object[] listProvidingChannels(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- The id of the package in questionFaultException
- A FaultException is thrown if the errata corresponding to
pid cannot be found.public java.lang.Object[] listProvidingErrata(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- The id of the package in questionFaultException
- A FaultException is thrown if the errata corresponding to
pid cannot be found.public java.lang.Object[] listFiles(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- The id of the package you're looking forFaultException
- A FaultException is thrown if the errata corresponding to
pid cannot be found.public java.lang.String listChangelog(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- The id of the package you're looking forFaultException
- A FaultException is thrown if the errata corresponding to
pid cannot be found.public java.lang.Object[] listDependencies(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- The package id for the package in questionFaultException
- A FaultException is thrown if the errata corresponding to
pid cannot be found.public int removePackage(User loggedInUser, java.lang.Integer pid) throws FaultException
loggedInUser
- The current userpid
- package idFaultException
- something bad happenspublic int removeSourcePackage(User loggedInUser, java.lang.Integer psid) throws FaultException
loggedInUser
- The current userpsid
- package source idFaultException
- something bad happenspublic java.lang.Object[] listSourcePackages(User loggedInUser) throws FaultException
loggedInUser
- The current userFaultException
- A FaultException is thrown
when user does not have permissions.public java.util.List<Package> findByNvrea(User loggedInUser, java.lang.String name, java.lang.String version, java.lang.String release, java.lang.String epoch, java.lang.String archLabel)
loggedInUser
- The current username
- - name of the package to search forversion
- - version of the package to search forrelease
- release of the package to search forepoch
- if set to something other than an empty string (""), strict
matching will be used and the epoch string must be correct. If set
to an empty string, if the epoch is null or there is only one NEVRA
combination, it will be returned. (Empty string is recommended.)archLabel
- the arch to search forpublic java.lang.String getPackageUrl(User loggedInUser, java.lang.Integer pid)
loggedInUser
- The current userpid
- the package idpublic byte[] getPackage(User loggedInUser, java.lang.Integer pid) throws java.io.IOException
loggedInUser
- The current userpid
- the package idjava.io.IOException
- if there is an exception