public class SystemDetailsHandler extends BaseHandler
VALID| Constructor and Description |
|---|
SystemDetailsHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
addFilePreservations(User loggedInUser,
java.lang.String kickstartLabel,
java.util.List<java.lang.String> filePreservations)
Adds the given list of file preservations to the specified kickstart profile.
|
int |
addKeys(User loggedInUser,
java.lang.String kickstartLabel,
java.util.List<java.lang.String> descriptions)
Adds the given list of keys to the specified kickstart profile.
|
boolean |
checkConfigManagement(User loggedInUser,
java.lang.String ksLabel)
Check the configuration management status for a kickstart profile
so that a system created using this profile will be configuration capable.
|
boolean |
checkRemoteCommands(User loggedInUser,
java.lang.String ksLabel)
Check the remote commands status flag for a kickstart profile
so that a system created using this profile
will be capable of running remote commands
|
int |
disableConfigManagement(User loggedInUser,
java.lang.String ksLabel)
Disables the configuration management flag in a kickstart profile
so that a system created using this profile will be NOT be configuration capable.
|
int |
disableRemoteCommands(User loggedInUser,
java.lang.String ksLabel)
Disables the remote command flag in a kickstart profile
so that a system created using this profile
will be capable of running remote commands
|
int |
enableConfigManagement(User loggedInUser,
java.lang.String ksLabel)
Enables the configuration management flag in a kickstart profile
so that a system created using this profile will be configuration capable.
|
int |
enableRemoteCommands(User loggedInUser,
java.lang.String ksLabel)
Enables the remote command flag in a kickstart profile
so that a system created using this profile
will be capable of running remote commands
|
java.util.Map<java.lang.String,java.lang.Object> |
getLocale(User loggedInUser,
java.lang.String ksLabel)
Retrieves the locale for a kickstart profile.
|
java.util.List<java.lang.String> |
getPartitioningScheme(User loggedInUser,
java.lang.String ksLabel)
Get the partitioning scheme for a kickstart profile.
|
java.lang.String |
getRegistrationType(User loggedInUser,
java.lang.String kickstartLabel)
Returns the registration type of a given kickstart profile.
|
java.lang.String |
getSELinux(User loggedInUser,
java.lang.String ksLabel)
Retrieves the SELinux enforcing mode property of a kickstart
profile.
|
java.util.Set<FileList> |
listFilePreservations(User loggedInUser,
java.lang.String kickstartLabel)
Returns the set of all file preservations associated with the given kickstart
profile.
|
java.util.Set<CryptoKey> |
listKeys(User loggedInUser,
java.lang.String kickstartLabel)
Returns the set of all keys associated with the indicated kickstart profile.
|
int |
removeFilePreservations(User loggedInUser,
java.lang.String kickstartLabel,
java.util.List<java.lang.String> filePreservations)
Removes the given list of file preservations from the specified kickstart profile.
|
int |
removeKeys(User loggedInUser,
java.lang.String kickstartLabel,
java.util.List<java.lang.String> descriptions)
Removes the given list of keys from the specified kickstart profile.
|
int |
setLocale(User loggedInUser,
java.lang.String ksLabel,
java.lang.String locale,
boolean useUtc)
Sets the locale for a kickstart profile.
|
int |
setPartitioningScheme(User loggedInUser,
java.lang.String ksLabel,
java.util.List<java.lang.String> scheme)
Set the partitioning scheme for a kickstart profile.
|
int |
setRegistrationType(User loggedInUser,
java.lang.String kickstartLabel,
java.lang.String registrationType)
Sets the registration type of a given kickstart profile.
|
int |
setSELinux(User loggedInUser,
java.lang.String ksLabel,
java.lang.String enforcingMode)
Sets the SELinux enforcing mode property of a kickstart profile
so that a system created using this profile will be have
the appropriate SELinux enforcing mode.
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExistspublic boolean checkConfigManagement(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic int enableConfigManagement(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic int disableConfigManagement(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic boolean checkRemoteCommands(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic int enableRemoteCommands(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic int disableRemoteCommands(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic java.lang.String getSELinux(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - the ks profile labelpublic int setSELinux(User loggedInUser, java.lang.String ksLabel, java.lang.String enforcingMode)
loggedInUser - The current userksLabel - the ks profile labelenforcingMode - the SELinux enforcing mode.public java.util.Map<java.lang.String,java.lang.Object> getLocale(User loggedInUser, java.lang.String ksLabel) throws FaultException
loggedInUser - The current userksLabel - The kickstart profile labelFaultException - A FaultException is thrown if:
- The profile associated with ksLabel cannot be foundpublic int setLocale(User loggedInUser, java.lang.String ksLabel, java.lang.String locale, boolean useUtc) throws FaultException
loggedInUser - The current userksLabel - The kickstart profile labellocale - The localeuseUtc - true if the hardware clock uses UTCFaultException - A FaultException is thrown if:
- The profile associated with ksLabel cannot be found
- The locale provided is invalidpublic int setPartitioningScheme(User loggedInUser, java.lang.String ksLabel, java.util.List<java.lang.String> scheme)
loggedInUser - The current userksLabel - A kickstart profile label.scheme - The partitioning scheme.FaultException - fault exceptionpublic java.util.List<java.lang.String> getPartitioningScheme(User loggedInUser, java.lang.String ksLabel)
loggedInUser - The current userksLabel - A kickstart profile labelFaultException - fault exceptionpublic java.util.Set<CryptoKey> listKeys(User loggedInUser, java.lang.String kickstartLabel)
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>public int addKeys(User loggedInUser, java.lang.String kickstartLabel, java.util.List<java.lang.String> descriptions)
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>descriptions - list identifiying the keys to addpublic int removeKeys(User loggedInUser, java.lang.String kickstartLabel, java.util.List<java.lang.String> descriptions)
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>descriptions - list identifiying the keys to removepublic java.util.Set<FileList> listFilePreservations(User loggedInUser, java.lang.String kickstartLabel) throws FaultException
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>FaultException - A FaultException is thrown if:
- The sessionKey is invalid
- The kickstartLabel is invalidpublic int addFilePreservations(User loggedInUser, java.lang.String kickstartLabel, java.util.List<java.lang.String> filePreservations) throws FaultException
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>filePreservations - list identifying the file preservations to addFaultException - A FaultException is thrown if:
- The sessionKey is invalid
- The kickstartLabel is invalid
- One of the filePreservations is invalidpublic int removeFilePreservations(User loggedInUser, java.lang.String kickstartLabel, java.util.List<java.lang.String> filePreservations) throws FaultException
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>filePreservations - list identifying the file preservations to removeFaultException - A FaultException is thrown if:
- The sessionKey is invalid
- The kickstartLabel is invalid
- One of the filePreservations is invalidpublic int setRegistrationType(User loggedInUser, java.lang.String kickstartLabel, java.lang.String registrationType)
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>registrationType - registration typeFaultException - A FaultException is thrown if:
- The sessionKey is invalid
- The kickstartLabel is invalid
- registration type is not reactivation/deletion/nonepublic java.lang.String getRegistrationType(User loggedInUser, java.lang.String kickstartLabel)
loggedInUser - The current userkickstartLabel - identifies the profile; cannot be <code>null</code>FaultException - A FaultException is thrown if:
- The sessionKey is invalid
- The kickstartLabel is invalid