Package com.decs.application.services
Class ObjectListDatabase
java.lang.Object
com.decs.application.services.ObjectListDatabase
Object List Database Class
This class contains a collection of objects that should be visible to all system classes.
- Version:
- 1.0
- Author:
- Bruno Guiomar
-
Field Summary
FieldsModifier and TypeFieldDescriptionVaadin data provider used for automatic updating o the web app Available Problems grid visual componentVaadin data provider used for automatic updating of the web app Job Activity grid visual componentprivate MainLayoutprivate Stringprivate DistributionTypeprivate ProblemTypeprivate Problemprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAvailableProblem(Problem problem) voidaddAvailableProblems(List<Problem> problems) voidaddJobActivity(Job newJob) intInitializes the list of available problemsintvoidsetIslandList(ArrayList<Island> islandList) voidsetMainLayout(MainLayout mainLayout) voidsetProblemCreatorCode(String code) voidvoidsetProblemCreatorSelector(ProblemType problem) voidsetSelectedProblem(Problem selectedProblem) voidsetServerIsland(String serverIsland) voidRefresh and update of the available problems list
-
Field Details
-
availableProblemsList
-
jobActivityList
-
selectedProblem
-
problemCreatorSelector
-
problemCreatorDistribution
-
problemCreatorCode
-
serverIsland
-
islandList
-
mainLayout
-
jobActivityDataProvider
Vaadin data provider used for automatic updating of the web app Job Activity grid visual component -
availableProblemsDataProvider
Vaadin data provider used for automatic updating o the web app Available Problems grid visual component
-
-
Constructor Details
-
ObjectListDatabase
public ObjectListDatabase()Class Constructor
-
-
Method Details
-
fetchJobActivityList
- Returns:
- List of all Job objects
-
jobActivitySize
public int jobActivitySize()- Returns:
- Size of the list containing all Job objects
-
fetchAvailableProblemsList
- Returns:
- List of all available Problems
-
availableProblemsListSize
public int availableProblemsListSize()- Returns:
- Size of the list containing all available Problems
-
getJobActivityDataProvider
-
getAvailableProblemsDataProvider
-
getSelectedProblem
-
getProblemCreatorSelector
-
getProblemCreatorDistribution
-
getProblemCreatorCode
-
getServerIsland
-
getIslandList
-
getMainLayout
-
addJobActivity
-
addAvailableProblem
-
addAvailableProblems
-
setSelectedProblem
-
setProblemCreatorSelector
-
setProblemCreatorDistribution
-
setProblemCreatorCode
-
setServerIsland
-
setIslandList
-
setMainLayout
-
updateAvailableProblems
public void updateAvailableProblems()Refresh and update of the available problems list -
initializeAvailableProblems
Initializes the list of available problems- Returns:
- List of available problems
-