public class ProfileHandler extends BaseHandler
VALID| Constructor and Description | 
|---|
| ProfileHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | addIpRange(User loggedInUser,
          java.lang.String ksLabel,
          java.lang.String min,
          java.lang.String max)Add an ip range to a kickstart. | 
| int | addScript(User loggedInUser,
         java.lang.String ksLabel,
         java.lang.String name,
         java.lang.String contents,
         java.lang.String interpreter,
         java.lang.String type,
         boolean chroot)Add a script to a kickstart profile | 
| int | addScript(User loggedInUser,
         java.lang.String ksLabel,
         java.lang.String name,
         java.lang.String contents,
         java.lang.String interpreter,
         java.lang.String type,
         boolean chroot,
         boolean template)Add a script to a kickstart profile | 
| int | addScript(User loggedInUser,
         java.lang.String ksLabel,
         java.lang.String name,
         java.lang.String contents,
         java.lang.String interpreter,
         java.lang.String type,
         boolean chroot,
         boolean template,
         boolean erroronfail)Add a script to a kickstart profile | 
| java.util.Map<java.lang.String,java.util.List<ActivationKey>> | compareActivationKeys(User loggedInUser,
                     java.lang.String kickstartLabel1,
                     java.lang.String kickstartLabel2)Returns a list for each kickstart profile of activation keys that are present
 in that profile but not the other. | 
| java.util.Map<java.lang.String,java.util.List<KickstartOptionValue>> | compareAdvancedOptions(User loggedInUser,
                      java.lang.String kickstartLabel1,
                      java.lang.String kickstartLabel2)Returns a list for each kickstart profile of properties that are different between
 the profiles. | 
| java.util.Map<java.lang.String,java.util.Set<java.lang.String>> | comparePackages(User loggedInUser,
               java.lang.String kickstartLabel1,
               java.lang.String kickstartLabel2)Returns a list for each kickstart profile of package names that are present
 in that profile but not the other. | 
| java.lang.String | downloadKickstart(User loggedInUser,
                 java.lang.String ksLabel,
                 java.lang.String host)returns the fully formatted kickstart file | 
| java.lang.String | downloadRenderedKickstart(User loggedInUser,
                         java.lang.String ksLabel)returns the Cobbler-rendered kickstart file | 
| java.lang.Object[] | getAdvancedOptions(User loggedInUser,
                  java.lang.String ksLabel)Get advanced options for existing kickstart profile. | 
| java.lang.String[] | getAvailableRepositories(User loggedInUser,
                        java.lang.String ksLabel) | 
| java.lang.Boolean | getCfgPreservation(User loggedInUser,
                  java.lang.String kslabel)Get the option to perserve ks.cfg. | 
| java.util.List<java.lang.String> | getChildChannels(User loggedInUser,
                java.lang.String kslabel)Get the child channels for a kickstart profile. | 
| java.lang.Object[] | getCustomOptions(User loggedInUser,
                java.lang.String ksLabel)Get custom options for a kickstart profile. | 
| java.lang.String | getKickstartTree(User loggedInUser,
                java.lang.String kslabel)Get the kickstart tree for a kickstart profile. | 
| java.lang.String[] | getRepositories(User loggedInUser,
               java.lang.String ksLabel) | 
| java.lang.String | getUpdateType(User loggedInUser,
             java.lang.String kslabel)Get the update type for a kickstart profile. | 
| java.util.Map<java.lang.String,java.lang.Object> | getVariables(User loggedInUser,
            java.lang.String ksLabel)Returns a list of kickstart variables associated with the specified kickstart profile | 
| java.lang.String | getVirtualizationType(User loggedInUser,
                     java.lang.String ksLabel) | 
| java.util.Set | listIpRanges(User loggedInUser,
            java.lang.String ksLabel)Lists all ip ranges for a kickstart profile. | 
| java.util.List<KickstartScript> | listScripts(User loggedInUser,
           java.lang.String label)List the pre and post scripts for a kickstart profile in the order
 they will run during the kickstart. | 
| int | orderScripts(User loggedInUser,
            java.lang.String ksLabel,
            java.util.List<java.lang.Integer> preScripts,
            java.util.List<java.lang.Integer> postScriptsBeforeRegistration,
            java.util.List<java.lang.Integer> postScriptsAfterRegistration)Change the order that kickstart scripts will run for this kickstart
 profile. | 
| int | removeIpRange(User loggedInUser,
             java.lang.String ksLabel,
             java.lang.String ipAddress)Remove an ip range from a kickstart profile. | 
| int | removeScript(User loggedInUser,
            java.lang.String ksLabel,
            java.lang.Integer id)Remove a script from a kickstart profile. | 
| int | setAdvancedOptions(User loggedInUser,
                  java.lang.String ksLabel,
                  java.util.List<java.util.Map> options)Set advanced options in a kickstart profile | 
| int | setCfgPreservation(User loggedInUser,
                  java.lang.String kslabel,
                  boolean preserve)Set the option to perserve ks.cfg. | 
| int | setChildChannels(User loggedInUser,
                java.lang.String kslabel,
                java.util.List<java.lang.String> channelLabels)Set the child channels for a kickstart profile. | 
| int | setCustomOptions(User loggedInUser,
                java.lang.String ksLabel,
                java.util.List<java.lang.String> options)Set custom options for a kickstart profile. | 
| int | setKickstartTree(User loggedInUser,
                java.lang.String kslabel,
                java.lang.String kstreeLabel)Set the kickstart tree for a kickstart profile. | 
| int | setLogging(User loggedInUser,
          java.lang.String kslabel,
          boolean pre,
          boolean post)Set the logging (Pre and post) for a kickstart file | 
| int | setRepositories(User loggedInUser,
               java.lang.String ksLabel,
               java.util.List<java.lang.String> reposIn) | 
| int | setUpdateType(User loggedInUser,
             java.lang.String kslabel,
             java.lang.String updateType)Set the update type for a kickstart profile. | 
| int | setVariables(User loggedInUser,
            java.lang.String ksLabel,
            java.util.Map<java.lang.String,java.lang.Object> variables)Associates list of kickstart variables with the specified kickstart profile | 
| int | setVirtualizationType(User loggedInUser,
                     java.lang.String ksLabel,
                     java.lang.String typeLabel) | 
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExistspublic java.lang.String getKickstartTree(User loggedInUser, java.lang.String kslabel)
loggedInUser - The current userkslabel - label of the kickstart profile to be changed.public java.lang.String getUpdateType(User loggedInUser, java.lang.String kslabel)
loggedInUser - The current userkslabel - label of the kickstart profile to be changed.public java.lang.Boolean getCfgPreservation(User loggedInUser, java.lang.String kslabel)
loggedInUser - The current userkslabel - the kickstart labelpublic int setCfgPreservation(User loggedInUser, java.lang.String kslabel, boolean preserve)
loggedInUser - The current userkslabel - the kickstart labelpreserve - whether to perserve ks.cfg or notpublic int setLogging(User loggedInUser, java.lang.String kslabel, boolean pre, boolean post)
loggedInUser - The current userkslabel - the kickstart labelpre - whether to log pre scripts or notpost - whether to log post scripts or notpublic int setKickstartTree(User loggedInUser, java.lang.String kslabel, java.lang.String kstreeLabel)
loggedInUser - The current userkslabel - label of the kickstart profile to be changed.kstreeLabel - label of the new kickstart tree.public int setUpdateType(User loggedInUser, java.lang.String kslabel, java.lang.String updateType)
loggedInUser - The current userkslabel - label of the kickstart profile to be changed.updateType - the new update type.public java.util.List<java.lang.String> getChildChannels(User loggedInUser, java.lang.String kslabel)
loggedInUser - The current userkslabel - label of the kickstart profile to be updated.public int setChildChannels(User loggedInUser, java.lang.String kslabel, java.util.List<java.lang.String> channelLabels)
loggedInUser - The current userkslabel - label of the kickstart profile to be updated.channelLabels - labels of the child channels to be set in the
 kickstart profile.public java.util.List<KickstartScript> listScripts(User loggedInUser, java.lang.String label)
loggedInUser - The current userlabel - the kickstart labelpublic int orderScripts(User loggedInUser, java.lang.String ksLabel, java.util.List<java.lang.Integer> preScripts, java.util.List<java.lang.Integer> postScriptsBeforeRegistration, java.util.List<java.lang.Integer> postScriptsAfterRegistration)
loggedInUser - The current userksLabel - the kickstart labelpreScripts - the ordered list of pre scriptspostScriptsBeforeRegistration - the ordered list of post
 scripts that run before registrationpostScriptsAfterRegistration - the ordered list of post
 scripts that run after registrationpublic int addScript(User loggedInUser, java.lang.String ksLabel, java.lang.String name, java.lang.String contents, java.lang.String interpreter, java.lang.String type, boolean chroot)
loggedInUser - The current userksLabel - the kickstart labelname - name of the scriptcontents - the contentsinterpreter - the script interpreter to usetype - "pre" or "post"chroot - true if you want it to be chrootedpublic int addScript(User loggedInUser, java.lang.String ksLabel, java.lang.String name, java.lang.String contents, java.lang.String interpreter, java.lang.String type, boolean chroot, boolean template)
loggedInUser - The current userksLabel - the kickstart labelname - name of the scriptcontents - the contentsinterpreter - the script interpreter to usetype - "pre" or "post"chroot - true if you want it to be chrootedtemplate - enable templating using cobblerpublic int addScript(User loggedInUser, java.lang.String ksLabel, java.lang.String name, java.lang.String contents, java.lang.String interpreter, java.lang.String type, boolean chroot, boolean template, boolean erroronfail)
loggedInUser - The current userksLabel - the kickstart labelname - name of the scriptcontents - the contentsinterpreter - the script interpreter to usetype - "pre" or "post"chroot - true if you want it to be chrootedtemplate - enable templating using cobblererroronfail - Whether to throw an error if the script fails or notpublic int removeScript(User loggedInUser, java.lang.String ksLabel, java.lang.Integer id)
loggedInUser - The current userksLabel - the kickstart to remove a script fromid - the id of the kickstartpublic java.lang.String downloadKickstart(User loggedInUser, java.lang.String ksLabel, java.lang.String host)
loggedInUser - The current userksLabel - the label to downloadhost - The host/ip to use when referring to the server itselfpublic java.lang.String downloadRenderedKickstart(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the label to downloadpublic java.lang.Object[] getAdvancedOptions(User loggedInUser, java.lang.String ksLabel) throws FaultException
loggedInUser - The current userksLabel - label of the kickstart profile to be updated.FaultException - A FaultException is thrown if
         the profile associated with ksLabel cannot be foundpublic int setAdvancedOptions(User loggedInUser, java.lang.String ksLabel, java.util.List<java.util.Map> options) throws FaultException
loggedInUser - The current userksLabel - the kickstart labeloptions - the advanced options to setFaultException - A FaultException is thrown if
         the profile associated with ksLabel cannot be found
         or invalid advanced option is providedpublic java.lang.Object[] getCustomOptions(User loggedInUser, java.lang.String ksLabel) throws FaultException
loggedInUser - The current userksLabel - the kickstart labelFaultException - A FaultException is thrown if
         the profile associated with ksLabel cannot be foundpublic int setCustomOptions(User loggedInUser, java.lang.String ksLabel, java.util.List<java.lang.String> options) throws FaultException
loggedInUser - The current userksLabel - the kickstart labeloptions - the custom options to setFaultException - A FaultException is thrown if
         the profile associated with ksLabel cannot be foundpublic java.util.Set listIpRanges(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the label of the kickstartpublic int addIpRange(User loggedInUser, java.lang.String ksLabel, java.lang.String min, java.lang.String max)
loggedInUser - The current userksLabel - the kickstart labelmin - the min ip address of the rangemax - the max ip address of the rangepublic int removeIpRange(User loggedInUser, java.lang.String ksLabel, java.lang.String ipAddress)
loggedInUser - The current userksLabel - the kickstart to remove an ip range fromipAddress - an ip address in the range that you want to removepublic java.util.Map<java.lang.String,java.util.List<ActivationKey>> compareActivationKeys(User loggedInUser, java.lang.String kickstartLabel1, java.lang.String kickstartLabel2)
loggedInUser - The current userkickstartLabel1 - identifies a profile to be compared;
                        cannot be nullkickstartLabel2 - identifies a profile to be compared;
                        cannot be nullpublic java.util.Map<java.lang.String,java.util.Set<java.lang.String>> comparePackages(User loggedInUser, java.lang.String kickstartLabel1, java.lang.String kickstartLabel2)
loggedInUser - The current user
                        cannot be nullkickstartLabel1 - identifies a profile to be compared;
                        cannot be nullkickstartLabel2 - identifies a profile to be compared;
                        cannot be nullpublic java.util.Map<java.lang.String,java.util.List<KickstartOptionValue>> compareAdvancedOptions(User loggedInUser, java.lang.String kickstartLabel1, java.lang.String kickstartLabel2)
loggedInUser - The current user
                        cannot be nullkickstartLabel1 - identifies a profile to be compared;
                        cannot be nullkickstartLabel2 - identifies a profile to be compared;
                        cannot be nullpublic java.util.Map<java.lang.String,java.lang.Object> getVariables(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current user
                        cannot be nullksLabel - identifies the kickstart profile
                        cannot be nullpublic int setVariables(User loggedInUser, java.lang.String ksLabel, java.util.Map<java.lang.String,java.lang.Object> variables)
loggedInUser - The current user
                        cannot be nullksLabel - identifies the kickstart profile
                        cannot be nullvariables - list of variables to setpublic java.lang.String[] getAvailableRepositories(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - identifies the kickstart profilepublic java.lang.String[] getRepositories(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - identifies the kickstart profilepublic int setRepositories(User loggedInUser, java.lang.String ksLabel, java.util.List<java.lang.String> reposIn)
loggedInUser - The current userksLabel - ksLabel identifies the kickstart profilereposIn - OS repositories to setpublic java.lang.String getVirtualizationType(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The Current userksLabel - Kickstart profile labelpublic int setVirtualizationType(User loggedInUser, java.lang.String ksLabel, java.lang.String typeLabel)
loggedInUser - The Current userksLabel - Kickstart profile labeltypeLabel - virtualization type label