public class KickstartHandler extends BaseHandler
VALID| Constructor and Description |
|---|
KickstartHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
cloneProfile(User loggedInUser,
java.lang.String ksLabelToClone,
java.lang.String newKsLabel)
Clones a kickstart profile.
|
int |
createProfile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartHost,
java.lang.String rootPassword)
Create a new kickstart profile using the default download URL for the
kickstartable tree and kickstart host specified.
|
int |
createProfile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartHost,
java.lang.String rootPassword,
java.lang.String updateType)
Create a new kickstart profile using the default download URL for the
kickstartable tree and kickstart host specified.
|
int |
createProfileWithCustomUrl(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String downloadUrl,
java.lang.String rootPassword)
Create a new kickstart profile with a custom download URL.
|
int |
createProfileWithCustomUrl(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String downloadUrl,
java.lang.String rootPassword,
java.lang.String updateType)
Create a new kickstart profile with a custom download URL.
|
int |
deleteProfile(User loggedInUser,
java.lang.String ksLabel)
delete a kickstart profile
|
int |
disableProfile(User loggedInUser,
java.lang.String profileLabel,
java.lang.Boolean disabled)
En/Disable kickstart profile
|
java.lang.String |
findKickstartForIp(User loggedInUser,
java.lang.String ipAddress)
find a kickstart profile by an ip
|
int |
importFile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartFileContents)
Import a kickstart profile.
|
int |
importFile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartHost,
java.lang.String kickstartFileContents)
Import a kickstart profile, overriding the
url/nfs/harddrive/cdrom command in the file and replacing it with the
default URL for the kickstartable tree and kickstart host specified.
|
int |
importFile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartHost,
java.lang.String kickstartFileContents,
java.lang.String updateType)
Import a kickstart profile, overriding the
url/nfs/harddrive/cdrom command in the file and replacing it with the
default URL for the kickstartable tree and kickstart host specified.
|
int |
importRawFile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartFileContents)
Import a kickstart profile, overriding the
url/nfs/harddrive/cdrom command in the file and replacing it with the
default URL for the kickstartable tree and kickstart host specified.
|
int |
importRawFile(User loggedInUser,
java.lang.String profileLabel,
java.lang.String virtualizationType,
java.lang.String kickstartableTreeLabel,
java.lang.String kickstartFileContents,
java.lang.String updateType)
Import a kickstart profile, overriding the
url/nfs/harddrive/cdrom command in the file and replacing it with the
default URL for the kickstartable tree and kickstart host specified.
|
boolean |
isProfileDisabled(User loggedInUser,
java.lang.String profileLabel)
Returns whether a kickstart profile is disabled
|
java.util.List |
listAllIpRanges(User loggedInUser)
Lists all ip ranges for an org
|
java.util.List<Channel> |
listKickstartableChannels(User loggedInUser)
List kickstartable channels for the logged in user.
|
java.util.List<Channel> |
listKickstartableTreeChannels(User loggedInUser)
List kickstartable tree channels for the logged in user.
|
java.util.List |
listKickstartableTrees(User loggedInUser,
java.lang.String channelLabel)
Deprecated.
being replaced by kickstart.tree.list(string sessionKey,
string channelLabel)
|
java.util.List |
listKickstarts(User loggedInUser)
List kickstarts for a user
|
int |
renameProfile(User loggedInUser,
java.lang.String originalLabel,
java.lang.String newLabel)
Rename a kickstart profile.
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExists@Deprecated public java.util.List listKickstartableTrees(User loggedInUser, java.lang.String channelLabel)
loggedInUser - The current userchannelLabel - Label of channel to search.public java.util.List<Channel> listKickstartableChannels(User loggedInUser)
loggedInUser - The current userpublic java.util.List<Channel> listKickstartableTreeChannels(User loggedInUser)
loggedInUser - The current userpublic int importFile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartFileContents)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartFileContents - Contents of a kickstart file.public int importFile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartHost, java.lang.String kickstartFileContents)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartHost - Kickstart hostname (of a satellite or proxy) used to
construct the default download URL for the new kickstart profile. Using
this option signifies that this default URL will be used instead of any
url/nfs/cdrom/harddrive commands in the kickstart file itself.kickstartFileContents - Contents of a kickstart file.public int importFile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartHost, java.lang.String kickstartFileContents, java.lang.String updateType)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartHost - Kickstart hostname (of a satellite or proxy) used to
construct the default download URL for the new kickstart profile. Using
this option signifies that this default URL will be used instead of any
url/nfs/cdrom/harddrive commands in the kickstart file itself.kickstartFileContents - Contents of a kickstart file.updateType - Set the automatic ks tree update strategy
for the profile. Valid choices are "red_hat", "none", "all".public int createProfile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartHost, java.lang.String rootPassword, java.lang.String updateType)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartHost - Kickstart hostname (of a satellite or proxy) used to
construct the default download URL for the new kickstart profile.rootPassword - Root password.updateType - Set the automatic ks tree update strategy
for the profile. Valid choices are "red_hat", "none", "all".public int createProfile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartHost, java.lang.String rootPassword)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartHost - Kickstart hostname (of a satellite or proxy) used to
construct the default download URL for the new kickstart profile.rootPassword - Root password.public int createProfileWithCustomUrl(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String downloadUrl, java.lang.String rootPassword)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.downloadUrl - Download URL, or 'default' to use the kickstart tree's
default URL.rootPassword - Root password.public int createProfileWithCustomUrl(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String downloadUrl, java.lang.String rootPassword, java.lang.String updateType)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.downloadUrl - Download URL, or 'default' to use the kickstart tree's
default URL.rootPassword - Root password.updateType - Set the automatic ks tree update strategy
for the profile. Valid choices are "red_hat", "none", "all".public java.util.List listKickstarts(User loggedInUser)
loggedInUser - The current userpublic java.util.List listAllIpRanges(User loggedInUser)
loggedInUser - The current userpublic java.lang.String findKickstartForIp(User loggedInUser, java.lang.String ipAddress)
loggedInUser - The current useripAddress - the ipaddress to search onpublic int deleteProfile(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the kickstart to remove an ip range frompublic int disableProfile(User loggedInUser, java.lang.String profileLabel, java.lang.Boolean disabled)
loggedInUser - The current userprofileLabel - Label for tree we want to en/disabledisabled - True to disable the profilepublic boolean isProfileDisabled(User loggedInUser, java.lang.String profileLabel)
loggedInUser - The current userprofileLabel - kickstart profile labelpublic int renameProfile(User loggedInUser, java.lang.String originalLabel, java.lang.String newLabel)
loggedInUser - The current useroriginalLabel - Label for profile we want to editnewLabel - to assign to profilepublic int cloneProfile(User loggedInUser, java.lang.String ksLabelToClone, java.lang.String newKsLabel)
loggedInUser - The current userksLabelToClone - label of the kickstart profile to clonenewKsLabel - label of the cloned profilepublic int importRawFile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartFileContents)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartFileContents - Contents of a kickstart file.public int importRawFile(User loggedInUser, java.lang.String profileLabel, java.lang.String virtualizationType, java.lang.String kickstartableTreeLabel, java.lang.String kickstartFileContents, java.lang.String updateType)
loggedInUser - The current userprofileLabel - Label for the new kickstart profile.virtualizationType - Virtualization type, or none.kickstartableTreeLabel - Label of a kickstartable tree.kickstartFileContents - Contents of a kickstart file.updateType - Set the automatic ks tree update strategy
for the profile. Valid choices are "red_hat", "none", "all".