public class DownloadManager extends BaseManager
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | DOWNLOAD_TYPE_COBBLER | 
| static java.lang.String | DOWNLOAD_TYPE_COBBLER_API | 
| static java.lang.String | DOWNLOAD_TYPE_CRASHFILE | 
| static java.lang.String | DOWNLOAD_TYPE_KICKSTART | 
| static java.lang.String | DOWNLOAD_TYPE_PACKAGE | 
| static java.lang.String | DOWNLOAD_TYPE_REPO_LOG | 
| static java.lang.String | DOWNLOAD_TYPE_SCRIPTRAWOUTPUT | 
| static java.lang.String | DOWNLOAD_TYPE_SOURCE | 
| Constructor and Description | 
|---|
| DownloadManager() | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.String | getChannelSyncLogDownloadPath(Channel c,
                             User user)Get a download path that is used to download a repo log file. | 
| static java.lang.String | getCrashFileDownloadPath(CrashFile crashFile,
                        User user)Get a download path (part of the url) that is used to download a crash file. | 
| static java.lang.String | getFileSHA1Token(java.lang.Long fileId,
                java.lang.String filename,
                User user,
                java.lang.Long expire,
                java.lang.String type)get the Hmac SHA1 token use in constructing a package download url
      also useful if verifying a package download url | 
| static java.lang.String | getPackageDownloadPath(Package pack,
                      User user)Get a download path (part of the url) that is used to download a package. | 
| static java.lang.String | getPackageDownloadPathNoExpiration(Package pack,
                                  User user)Get a download path (part of the url) that is used to download a package. | 
| static java.lang.String | getPackageSourceDownloadPath(Package pkg,
                            PackageSource src,
                            User user)Get a download path that is used to download a srpm. | 
| static java.lang.String | getScriptRawOutputDownloadPath(java.lang.Long actionId,
                              java.lang.Long scriptResultId,
                              User currentUser)Get a download path that is used to download raw script output. | 
| static boolean | isFileAvailable(java.lang.String path)Checks to see if a file exists | 
makeDataResult, makeDataResult, makeDataResult, makeDataResult, makeDataResultNoPagination, makeDataResultNoPagination, processListControl, processPageControlpublic static final java.lang.String DOWNLOAD_TYPE_KICKSTART
public static final java.lang.String DOWNLOAD_TYPE_COBBLER
public static final java.lang.String DOWNLOAD_TYPE_COBBLER_API
public static final java.lang.String DOWNLOAD_TYPE_PACKAGE
public static final java.lang.String DOWNLOAD_TYPE_SOURCE
public static final java.lang.String DOWNLOAD_TYPE_REPO_LOG
public static final java.lang.String DOWNLOAD_TYPE_CRASHFILE
public static final java.lang.String DOWNLOAD_TYPE_SCRIPTRAWOUTPUT
public static java.lang.String getPackageDownloadPath(Package pack, User user)
pack - the packageuser - the userpublic static java.lang.String getPackageDownloadPathNoExpiration(Package pack, User user)
pack - the packageuser - the userpublic static java.lang.String getPackageSourceDownloadPath(Package pkg, PackageSource src, User user)
pkg - the packagesrc - the package sourceuser - the userpublic static java.lang.String getChannelSyncLogDownloadPath(Channel c, User user)
c - the Channeluser - the userpublic static java.lang.String getScriptRawOutputDownloadPath(java.lang.Long actionId,
                                                              java.lang.Long scriptResultId,
                                                              User currentUser)
actionId - action idscriptResultId - script result idcurrentUser - current userpublic static java.lang.String getFileSHA1Token(java.lang.Long fileId,
                                                java.lang.String filename,
                                                User user,
                                                java.lang.Long expire,
                                                java.lang.String type)
fileId - the file idfilename - the filename of the fileuser - the user requesting the fileexpire - the expire timetype - the type of the download (i.e. package, iso, etc..)public static boolean isFileAvailable(java.lang.String path)
path - the path to the filepublic static java.lang.String getCrashFileDownloadPath(CrashFile crashFile, User user)
crashFile - the packageuser - the user