-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected DB errors and implement full scale functionality as well as…
… a singleton design current ID class
- Loading branch information
Showing
22 changed files
with
255 additions
and
95 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/main/java/b_application_business_rules/use_cases/CurrentProjectID.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package b_application_business_rules.use_cases; | ||
|
||
import java.util.UUID; | ||
|
||
public class CurrentProjectID { | ||
|
||
private static final CurrentProjectID currentProjectID = new CurrentProjectID(null); | ||
|
||
private UUID[] selectedProjectID = new UUID[1]; | ||
public CurrentProjectID(UUID uuid){ | ||
this.selectedProjectID[0] = uuid; | ||
} | ||
public static CurrentProjectID getCurrentProjectID(){ | ||
return currentProjectID; | ||
} | ||
|
||
public UUID getSelectedProjectID() { | ||
return selectedProjectID[0]; | ||
} | ||
|
||
public void setSelectedProjectID(UUID selectedProjectID) { | ||
this.selectedProjectID[0] = selectedProjectID; | ||
} | ||
|
||
public void removeCurrentProjectID(){ | ||
this.setSelectedProjectID(null); | ||
} | ||
} |
10 changes: 3 additions & 7 deletions
10
...ain/java/b_application_business_rules/use_cases/project_selection_gateways/IDBRemove.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
package b_application_business_rules.use_cases.project_selection_gateways; | ||
|
||
import b_application_business_rules.entity_models.ColumnModel; | ||
import b_application_business_rules.entity_models.ProjectModel; | ||
import b_application_business_rules.entity_models.TaskModel; | ||
|
||
import java.util.UUID; | ||
|
||
public interface IDBRemove { | ||
void DBRemove(ProjectModel projectModel, UUID uuid); | ||
void DBRemove(TaskModel taskModel, UUID uuid); | ||
void DBRemove(ColumnModel columnModel, UUID uuid); | ||
void DBRemoveProject(UUID uuid); | ||
void DBRemoveTask(UUID uuid); | ||
void DBRemoveColumn(UUID uuid); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.