Skip to content

Commit

Permalink
Merge branch 'main' into 30-feature-18-Drag-and-drop-implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexolowo authored Aug 4, 2023
2 parents e27b61d + 5d39a05 commit 9404631
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 11 deletions.
4 changes: 1 addition & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
import java.util.UUID;

public interface ProjectSelectionInputBoundary {
void setCurrentProject(Project project);

void setCurrentProject(ProjectModel project);

void setCurrentProject(Project project);

void createProject(String name, String description);

void createProject();

void createProject(ProjectModel projectModel);

void deleteProject(UUID projectID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ private Project createProjectEntity(ProjectModel projectModel) {
projectModel.getColumnModels()); // ???
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ public void deleteProject(UUID projectID) {
outputBoundary.projectDeletionFailed(e.getMessage());
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package b_application_business_rules.use_cases.project_selection_use_cases;

import b_application_business_rules.boundaries.ProjectSelectionInputBoundary;
import b_application_business_rules.boundaries.ProjectSelectionOutputBoundary;
import b_application_business_rules.entity_models.ColumnModel;
import a_enterprise_business_rules.entities.Project;

import b_application_business_rules.entity_models.ProjectModel;
import b_application_business_rules.entity_models.ColumnModel;
import b_application_business_rules.entity_models.TaskModel;

import b_application_business_rules.boundaries.ProjectSelectionInputBoundary;
import b_application_business_rules.boundaries.ProjectSelectionOutputBoundary;
import b_application_business_rules.use_cases.CurrentProjectRepository;
import a_enterprise_business_rules.entities.Project;
import c_interface_adapters.view_models.ColumnViewModel;
import c_interface_adapters.view_models.TaskViewModel;

import java.time.LocalDateTime;
import java.util.ArrayList;
Expand All @@ -29,6 +29,8 @@ public class ProjectSelectionInteractor implements ProjectSelectionInputBoundary
// The presenter holds the reference to the ProjectSelectionOutputBoundary instance,
// which is responsible for displaying the results of the use cases.
private ProjectSelectionOutputBoundary presenter;
private ProjectModel projectModel;
private String message;

/**
* Initializes the ProjectSelectionInteractor with the provided presenter.
Expand All @@ -39,6 +41,11 @@ public ProjectSelectionInteractor(ProjectSelectionOutputBoundary presenter) {
this.presenter = presenter;
}

@Override
public void setCurrentProject(Project project) {

}

/**
* Sets the current project in the CurrentProjectRepository and notifies the presenter to display it.
* This method is called when a project is selected by the user in the UI.
Expand Down
15 changes: 15 additions & 0 deletions src/main/java/c_interface_adapters/ProjectSelectionPresenter.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ public void start(Stage stage) throws Exception {
initializeScene(stage);
}

@Override
public void displayCurrentProject() {

}

@Override
public void projectCreated(ProjectModel projectModel) {

}

@Override
public void projectCreationFailed(String errorMessage) {

}

/**
*
*/
Expand Down

0 comments on commit 9404631

Please sign in to comment.