public abstract class BaseTreeEditOperation extends BasePersistOperation
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KICKSTART_CAPABILITY |
protected KickstartableTree |
tree |
user
Constructor and Description |
---|
BaseTreeEditOperation(java.lang.String treeLabel,
User userIn)
Constructor for use when looking up by label
|
BaseTreeEditOperation(User userIn)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract CobblerCommand |
getCobblerCommand()
Get the CobblerCommand class associated with this operation.
|
java.lang.String |
getKernelOptions() |
java.lang.String |
getKernelOptionsPost() |
java.util.List<Channel> |
getKickstartableTreeChannels()
Return all channels available for creating kickstartable trees.
|
KickstartableTree |
getTree() |
void |
setBasePath(java.lang.String url)
Set the location of the tree
|
void |
setChannel(Channel channelIn)
Set the Channel for this tree
|
void |
setInstallType(KickstartInstallType typeIn)
Set the Install type for this Kickstart
|
void |
setKernelOptions(java.lang.String kernelOptionsIn) |
void |
setKernelOptionsPost(java.lang.String kernelOptionsPostIn) |
void |
setLabel(java.lang.String labelIn)
Set the label on the tree
|
ValidatorError |
store()
Perform the storage Operation to the Persistence
Layer.
|
void |
validateBasePath()
Ensures that the base path is correctly setup..
|
boolean |
validateLabel()
Validate the label to make sure:
"The Distribution Label field should contain only letters, numbers, hyphens,
periods, and underscores.
|
getUser
protected KickstartableTree tree
public static final java.lang.String KICKSTART_CAPABILITY
public BaseTreeEditOperation(User userIn)
userIn
- to associate with cmd.public BaseTreeEditOperation(java.lang.String treeLabel, User userIn)
treeLabel
- to lookupuserIn
- who owns the treepublic ValidatorError store()
public boolean validateLabel()
public void validateBasePath() throws ValidatorException
ValidatorException
- if those paths don;t existpublic KickstartableTree getTree()
public void setInstallType(KickstartInstallType typeIn)
typeIn
- to set on this KickstartableTreepublic void setLabel(java.lang.String labelIn)
labelIn
- to setpublic void setBasePath(java.lang.String url)
url
- to set.public void setChannel(Channel channelIn)
channelIn
- to setpublic java.util.List<Channel> getKickstartableTreeChannels()
protected abstract CobblerCommand getCobblerCommand()
public java.lang.String getKernelOptionsPost()
public void setKernelOptionsPost(java.lang.String kernelOptionsPostIn)
kernelOptionsPostIn
- The kernelOptionsPost to set.public java.lang.String getKernelOptions()
public void setKernelOptions(java.lang.String kernelOptionsIn)
kernelOptionsIn
- The kernelOptions to set.