T
- - the generic type that represents the entrypublic abstract class MultipleEntryFields<T> extends PerformanceBenchmarking
Modifier and Type | Class and Description |
---|---|
protected class |
MultipleEntryFields.ProgressViewRendering
This class represents the progressive rendering that displays the progress bar on the UI.
|
PerformanceBenchmarking.SourceFile
ExtensionPoint.LegacyInstancesAreScopedToHudson
Modifier and Type | Field and Description |
---|---|
protected ZoweCommandLineBuilder |
zoweCmd
The command line builder.
|
Constructor and Description |
---|
MultipleEntryFields()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req)
This method handles the post request after pressing the save button on the config UI.
|
ProgressiveRendering |
entries()
This method returns the class instance that will handle the progress bar handler.
|
XmlFile |
getConfigFile()
Get the configuration file.
|
List<EntryAction<T>> |
getDifferentEntries(List<T> firstCompared,
List<T> secondCompared,
EntryAction.ActionType type)
Get the different entries.
|
abstract List<T> |
getEntries()
Returns the list of entries.
|
protected abstract String |
getFinalUpdatedMessage(boolean isUpdated,
String actionText,
T entry)
Returns the final message from a update of new entry action.
|
protected abstract String |
getMainField(T entry)
Refers to an unique field that represents the entry, e.g.: a name or ID.
|
protected abstract String |
getMainFieldLabel(T entry)
Refers to an unique label field that represents the entry, like a name or ID.
|
List<EntryAction<T>> |
getModifiedEntries()
Retrieves the list of modified entries.
|
abstract Collection<Callable<List<T>>> |
getProcesses()
Get the collection of the processes to retrieve the configuration on the start-up.
|
List<PerformanceBenchmarking.SourceFile> |
getSourceFiles()
Source files associated with this sample.
|
abstract String |
getXMLFile()
Returns the XMLFile name to be stored in the jenkins_home.
|
protected abstract String |
handleSingleDelete(EntryAction<T> entry)
Handles a single new delete entry after saving the configuration.
|
protected abstract String |
handleSingleNewEntry(EntryAction<T> entry)
Handles a single new swipeable entry after saving the configuration.
|
protected abstract String |
handleSingleUpdate(UpdateAction<T> entry)
Handles a single new update entry after saving the configuration.
|
protected abstract boolean |
invalidEntries()
Evaluates whether the configuration has invalid entries.
|
protected abstract boolean |
isSuccessful(String result)
Handles whether the output of the entry action is successful.
|
protected abstract void |
postProcessEntries()
Post processes the entries after the action items.
|
protected void |
processSingleEntry(EntryAction<T> entry)
Processes the single entry action.
|
protected abstract void |
setConfig(MultipleEntryFields<T> read)
Sets the configuration after the object modification.
|
abstract List<T> |
setEntries(List<T> entries)
Set the list of entries.
|
all, doSourceFile, getDescription, getDescriptor, getDisplayName, getGroovySamples, getIconFileName, getOtherSamples, getUrlName
protected ZoweCommandLineBuilder zoweCmd
public XmlFile getConfigFile()
public List<EntryAction<T>> getModifiedEntries()
public abstract String getXMLFile()
protected abstract void setConfig(MultipleEntryFields<T> read)
read
- - the previous instance.protected abstract void postProcessEntries()
protected abstract boolean isSuccessful(String result)
result
- - the result of the entry action, e.g.: the command output after saving the config file.protected abstract String getFinalUpdatedMessage(boolean isUpdated, String actionText, T entry)
isUpdated
- - whether an update action occurred.actionText
- - action response, .e.g: the command outputentry
- - the generic type that represents the entryprotected abstract String handleSingleNewEntry(EntryAction<T> entry)
entry
- - the generic type that corresponds the entry.protected abstract String handleSingleUpdate(UpdateAction<T> entry)
entry
- - the generic type that corresponds the entry.protected abstract String handleSingleDelete(EntryAction<T> entry)
entry
- - the generic type that corresponds the entry.protected abstract String getMainFieldLabel(T entry)
entry
- - the generic type that corresponds the entry.protected abstract String getMainField(T entry)
entry
- - the generic type that corresponds the entry.protected abstract boolean invalidEntries()
public abstract List<T> getEntries()
public abstract List<T> setEntries(List<T> entries)
entries
- the list of entriespublic abstract Collection<Callable<List<T>>> getProcesses()
public List<PerformanceBenchmarking.SourceFile> getSourceFiles()
PerformanceBenchmarking
getSourceFiles
in class PerformanceBenchmarking
public ProgressiveRendering entries()
protected void processSingleEntry(EntryAction<T> entry)
entry
- the generic type representing the entry.@POST public org.kohsuke.stapler.HttpResponse doConfigSubmit(org.kohsuke.stapler.StaplerRequest req) throws javax.servlet.ServletException, IOException
req
- - the POST requestjavax.servlet.ServletException
- if an error occurs in the application serverIOException
- if an I/O error occurspublic List<EntryAction<T>> getDifferentEntries(List<T> firstCompared, List<T> secondCompared, EntryAction.ActionType type)
firstCompared
- the first compared listsecondCompared
- the second compared listtype
- the action typeCopyright © 2016–2022. All rights reserved.