Skip to content

Commit c200422

Browse files
committed
work
1 parent b59df15 commit c200422

6 files changed

+485
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
@startuml
2+
3+
4+
title Simpleworklist Domain Class Modell
5+
'https://plantuml.com/class-diagram
6+
7+
left to right direction
8+
'top to bottom direction
9+
10+
scale 1200 width
11+
12+
package persistent {
13+
14+
entity Context {
15+
- String nameDe
16+
- String nameEn
17+
Context[] list()
18+
Context search()
19+
Context addNew()
20+
Context edit()
21+
void delete()
22+
}
23+
24+
entity Project {
25+
- String name
26+
- String description
27+
listVisitsOfPet()
28+
addNew()
29+
}
30+
31+
entity Task {
32+
- String name
33+
- String description
34+
list()
35+
search()
36+
addNew()
37+
edit()
38+
delete()
39+
}
40+
41+
entity ChatMessage {
42+
- String messageText
43+
- Boolean readByReceiver
44+
list()
45+
search()
46+
addNew()
47+
edit()
48+
delete()
49+
}
50+
51+
entity UserAccount {
52+
- String userEmail
53+
- String userPassword
54+
- String userFullname
55+
- Language defaultLanguage
56+
- Date lastLoginTimestamp
57+
- Boolean accountNonExpired
58+
- Boolean accountNonLocked
59+
- Boolean credentialsNonExpired
60+
- Boolean enabled
61+
list()
62+
search()
63+
addNew()
64+
edit()
65+
delete()
66+
}
67+
68+
entity UserAccountPassword {
69+
- String userPassword
70+
list()
71+
search()
72+
addNew()
73+
edit()
74+
delete()
75+
}
76+
77+
entity UserPasswordRecovery {
78+
- String email
79+
- String token
80+
- Integer numberOfRetries
81+
list()
82+
search()
83+
addNew()
84+
edit()
85+
delete()
86+
}
87+
88+
entity UserRegistration {
89+
- String email
90+
- String token
91+
- Integer numberOfRetries
92+
list()
93+
search()
94+
addNew()
95+
edit()
96+
delete()
97+
}
98+
99+
Context "many" o--> "one" UserAccount: userAccount
100+
Project "many" o--> "one" Context: context
101+
Task "many" o--> "one" Project: project
102+
ChatMessage "many" o--> "one" UserAccount: sender
103+
ChatMessage "many" o--> "one" UserAccount: receiver
104+
UserAccount "one" o--> "one" Context: defaultContext
105+
UserAccountPassword "one" o--> "one" UserAccount: userAccount
106+
UserRegistration "one" o--> "one" UserAccount: userAccount
107+
UserPasswordRecovery "many" o--> "one" UserAccount: userAccount
108+
109+
}
110+
111+
@enduml
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
@startuml
2+
3+
title Transient Class Modell
4+
'https://plantuml.com/class-diagram
5+
6+
left to right direction
7+
'top to bottom direction
8+
9+
scale 1200 width
10+
11+
package transient {
12+
13+
package requestScope {
14+
15+
class Breadcrumb {
16+
- BreadcrumbItem[] breadcrumb
17+
- Locale locale
18+
int size()
19+
void addProjectRoot()
20+
void addProject(Project thisProject)
21+
void addTask(Task task)
22+
void addTaskstate(String taskStateView, String urlTaskstate)
23+
void addPage(String name, String url)
24+
}
25+
class BreadcrumbItem {
26+
- String name
27+
- String url
28+
}
29+
class ChatMessageForm {
30+
- String messageText
31+
}
32+
class LoginForm {
33+
- String userEmail
34+
- String userPassword
35+
}
36+
class NewContextForm {
37+
- String nameDe
38+
- String nameEn
39+
}
40+
class UserAccountForm {
41+
- String userEmail
42+
- String userFullname
43+
- String userPassword
44+
- String userPasswordConfirmation
45+
boolean passwordsAreTheSame()
46+
}
47+
class UserChangeLanguageForm {
48+
- Language defaultLanguage
49+
}
50+
class UserDetailsDto {
51+
- String username
52+
- String password
53+
- boolean accountNonExpired
54+
- boolean accountNonLocked
55+
- boolean credentialsNonExpired
56+
- boolean enabled
57+
}
58+
}
59+
60+
package sessionScope {
61+
class UserSessionBean {
62+
- Long userAccountid
63+
- Long lastContextId
64+
- Long lastProjectId
65+
- Long lastTaskId
66+
- TaskState lastTaskState
67+
- String lastSearchterm
68+
}
69+
70+
Breadcrumb "one" o--> "many" BreadcrumbItem
71+
}
72+
}
73+
74+
@enduml
Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
@startuml
2+
'https://plantuml.com/class-diagram
3+
4+
left to right direction
5+
'top to bottom direction
6+
7+
scale 1200 width
8+
9+
ErrorController <|-- ApplicationErrorController
10+
AbstractController <|-- ContextController
11+
AbstractController <|-- ProjectIdController
12+
AbstractController <|-- ProjectIdTaskController
13+
AbstractController <|-- ProjectIdTaskMoveController
14+
AbstractController <|-- ProjectRootController
15+
AbstractController <|-- ProjectRootTaskController
16+
AbstractController <|-- ProjectRootTaskMoveController
17+
AbstractController <|-- SearchController
18+
AbstractController <|-- TaskLifecycleController
19+
AbstractController <|-- TaskMove2TaskController
20+
AbstractController <|-- TaskMoveController
21+
AbstractController <|-- TaskStateTabController
22+
AbstractController <|-- UserChatMessageController
23+
AbstractController <|-- UserSelfserviceController
24+
25+
26+
abstract class AbstractController {
27+
- ContextService contextService
28+
- ProjectService projectService
29+
- ChatMessageService chatMessageService
30+
- LoginSuccessService loginSuccessService
31+
32+
String getCurrentContext(UserSessionBean userSession)
33+
List<Project> getAllProjects(UserSessionBean userSession)
34+
List<Project> getRootCategories(UserSessionBean userSession)
35+
int getNumberOfNewIncomingMessages()
36+
List<Context> getContexts()
37+
List<TaskEnergy> getListTaskEnergy()
38+
List<TaskTime> getListTaskTime()
39+
List<TaskState> getTaskStates()
40+
boolean refreshMessagePage()
41+
- UserAccount getUser()
42+
- Context getContext(UserSessionBean userSession)
43+
- UserSessionBean getNewUserSession()
44+
- UserSessionBean updateUserSession(UserSessionBean userSession)
45+
}
46+
class ApplicationErrorController {
47+
String handleError( HttpServletRequest request )
48+
String getErrorPath()
49+
}
50+
class ContextController {
51+
String switchContxt(Context newContext, UserSessionBean userSession)
52+
}
53+
class PagesController {
54+
String renderPageInformation(UserSessionBean userSession)
55+
}
56+
class ProjectIdController {
57+
String project(long projectId, Pageable pageable, String message, boolean isDeleted, UserSessionBean userSession)
58+
String projectAddProjectGet(long projectId, UserSessionBean userSession)
59+
String projectAddProjectPost(long projectId, UserSessionBean userSession, Project project)
60+
String projectEditGet(Project thisProject, UserSessionBean userSession)
61+
String projectEditPost(long projectId, Project project, UserSessionBean userSession)
62+
String projectDeleteGet( Project project, Pageable request, UserSessionBean userSession)
63+
String projectMoveToProjectGet(Project thisProject, long targetProjectId, UserSessionBean userSession)
64+
String moveTaskToTaskAndChangeTaskOrderInProject(Project thisProject, Task sourceTask, Task destinationTask,UserSessionBean userSession)
65+
String moveAllCompletedToTrash(Project thisProject, UserSessionBean userSession)
66+
String emptyTrash(Project thisProject, UserSessionBean userSession)
67+
}
68+
class ProjectIdTaskController {
69+
String projectTaskAddGet(Project thisProject, UserSessionBean userSession)
70+
String projectTaskAddPost(long projectId, UserSessionBean userSession, Task task)
71+
String editTaskGet( Project thisProject, Task task, UserSessionBean userSession)
72+
String editTaskPost(Project thisProject, long taskId, Task task, UserSessionBean userSession)
73+
String transformTaskIntoProjectGet(Project thisProject, Task task, UserSessionBean userSession)
74+
String setDoneTaskGet(Project thisProject, UserSessionBean userSession, Task task)
75+
String unsetDoneTaskGet( Project thisProject, UserSessionBean userSession, Task task)
76+
String setFocusGet(Project thisProject, UserSessionBean userSession, Task task, String back)
77+
String unsetFocusGet(Project thisProject, UserSessionBean userSession, Task task, String back)
78+
}
79+
class ProjectIdTaskMoveController {
80+
String moveTaskToAnotherProject( Project thisProject, Task task, UserSessionBean userSession)
81+
String moveTaskToAnotherProject(Project thisProject, Task task, Project otherProject, UserSessionBean userSession)
82+
String moveTaskToInbox(Project thisProject, UserSessionBean userSession, Task task)
83+
String moveTaskToToday(Project thisProject, UserSessionBean userSession, Task task)
84+
String moveTaskToNext(Project thisProject, UserSessionBean userSession, Task task)
85+
String moveTaskToWaiting(Project thisProject, UserSessionBean userSession, Task task)
86+
String moveTaskToSomeday(Project thisProject, UserSessionBean userSession, Task task)
87+
String moveTaskToFocus(Project thisProject, UserSessionBean userSession, Task task)
88+
String moveTaskToCompleted(Project thisProject, UserSessionBean userSession, Task task)
89+
String moveTaskToTrash(Project thisProject, UserSessionBean userSession, Task task)
90+
}
91+
class ProjectRootController {
92+
String projectRoot(Pageable pageable, String message, boolean isDeleted, UserSessionBean userSession)
93+
String projectRootAddProjectGet(UserSessionBean userSession)
94+
String projectRootAddProjectPost(Project project, UserSessionBean userSession)
95+
}
96+
class ProjectRootTaskController {
97+
String projectRootTaskAddGet(UserSessionBean userSession)
98+
String projectRootTaskAddPost(UserSessionBean userSession, Task task)
99+
String editTaskGet(Task task, UserSessionBean userSession)
100+
String editTaskPost(long taskId,Task task, UserSessionBean userSession)
101+
String changeTaskOrderId(Task sourceTask, Task destinationTask, UserSessionBean userSession)
102+
String deleteTaskGet(Task task, UserSessionBean userSession)
103+
String undeleteTaskGet(Task task, UserSessionBean userSession)
104+
String transformTaskIntoProjectGet(Task task, UserSessionBean userSession)
105+
String setDoneTaskGet(Task task, UserSessionBean userSession)
106+
String unsetDoneTaskGet(Task task, UserSessionBean userSession)
107+
String setFocusGet(Task task, UserSessionBean userSession)
108+
String unsetFocusGet(Task task, UserSessionBean userSession)
109+
}
110+
class ProjectRootTaskMoveController {
111+
String moveTaskToProjectRoot(Task task, UserSessionBean userSession)
112+
String moveTaskToProjectId(Task task, Project targetProject, UserSessionBean userSession)
113+
String moveTaskToInbox(Task task, UserSessionBean userSession)
114+
String moveTaskToToday(Task task, UserSessionBean userSession)
115+
String moveTaskToNext(Task task, UserSessionBean userSession)
116+
String moveTaskToWaiting(Task task, UserSessionBean userSession)
117+
String moveTaskToSomeday(Task task, UserSessionBean userSession)
118+
String moveTaskToFocus(Task task, UserSessionBean userSession)
119+
String moveTaskToCompleted(Task task, UserSessionBean userSession)
120+
String moveTaskToTrash(Task task, UserSessionBean userSession)
121+
}
122+
class SearchController {
123+
String searchGet(String searchterm,UserSessionBean userSession)
124+
}
125+
class TaskLifecycleController {
126+
String addNewTaskToInboxGet(UserSessionBean userSession)
127+
String addNewTaskToInboxPost(UserSessionBean userSession, Task task)
128+
String editTaskGet(Task task, UserSessionBean userSession)
129+
String editTaskPost(long taskId, Task task, UserSessionBean userSession)
130+
String deleteTaskGet(Task task, UserSessionBean userSession)
131+
String undeleteTaskGet(Task task, UserSessionBean userSession)
132+
String transformTaskIntoProjectGet()
133+
String setCompletedTaskGet(Task task, UserSessionBean userSession)
134+
String unsetCompletedTaskGet(Task task, UserSessionBean userSession)
135+
String setFocusGet(Task task, UserSessionBean userSession)
136+
String unsetFocusGet(Task task, UserSessionBean userSession)
137+
}
138+
class TaskMove2TaskController {
139+
String changeTaskOrderId( Task sourceTask, Task destinationTask, UserSessionBean userSession )
140+
}
141+
class TaskMoveController {
142+
String moveTaskToAnotherProject(Task task, Project project,UserSessionBean userSession)
143+
String moveTaskToRootProject(Task task, Project project,UserSessionBean userSession)
144+
String moveTaskToInbox(Task task, UserSessionBean userSession)
145+
String moveTaskToToday(Task task, UserSessionBean userSession)
146+
String moveTaskToNext(Task task, UserSessionBean userSession)
147+
String moveTaskToWaiting(Task task, UserSessionBean userSession)
148+
String moveTaskToSomeday(Task task, UserSessionBean userSession)
149+
String moveTaskToFocus(Task task, UserSessionBean userSession)
150+
String moveTaskToCompleted(Task task, UserSessionBean userSession)
151+
String moveTaskToTrash(Task task, UserSessionBean userSession)
152+
String moveAllCompletedToTrash(Task task, UserSessionBean userSession)
153+
String emptyTrash(UserSessionBean userSession)
154+
}
155+
class TaskStateTabController {
156+
String inbox(Pageable pageable, UserSessionBean userSession)
157+
String today(Pageable pageable, UserSessionBean userSession)
158+
String next(Pageable pageable, UserSessionBean userSession)
159+
String waiting(Pageable pageable, UserSessionBean userSession)
160+
String scheduled(Pageable pageable, UserSessionBean userSession)
161+
String someday(Pageable pageable, UserSessionBean userSession)
162+
String completed(Pageable pageable, UserSessionBean userSession)
163+
String trash(Pageable pageable, UserSessionBean userSession)
164+
String deleted(Pageable pageable, UserSessionBean userSession)
165+
String focus(Pageable pageable, UserSessionBean userSession)
166+
}
167+
class TestDataController {
168+
String createTestCategoryTree()
169+
}
170+
class UserChatMessageController {
171+
String getLastMessagesBetweenCurrentAndOtherUser( UserAccount otherUser, Pageable request, UserSessionBean userSession)
172+
String sendNewMessageToOtherUser(UserAccount otherUser, ChatMessageForm chatMessageForm, Pageable request, UserSessionBean userSession)
173+
}
174+
class UserLoginController {
175+
String loginGet()
176+
String loginPost(LoginForm loginForm)
177+
String logoutPage(SessionStatus status, HttpServletRequest request, HttpServletResponse response)
178+
}
179+
class UserPasswordRecoveryController {
180+
String passwordForgottenForm()
181+
String passwordForgottenPost(UserRegistrationForm userRegistrationForm)
182+
String enterNewPasswordFormular(String confirmId)
183+
String enterNewPasswordPost(UserAccountForm userAccountForm, String confirmId)
184+
}
185+
class UserRegistrationController {
186+
String registerGet()
187+
String registerPost(UserRegistrationForm userRegistrationForm)
188+
String registerConfirmGet(String confirmId)
189+
String registerConfirmPost(String confirmId, UserAccountForm userAccountFor)
190+
}
191+
class UserSelfserviceController {
192+
String userProfileAndMenu(Pageable request, UserSessionBean userSession)
193+
String userNameForm(UserSessionBean userSession)
194+
String userNameStore(UserChangeNameForm username, UserSessionBean userSession)
195+
String userPasswordForm(UserSessionBean userSession)
196+
String userPasswordStore(UserChangePasswordForm userChangePasswordForm,UserSessionBean userSession)
197+
String userContextsForm(UserSessionBean userSession)
198+
String userContextsSave(UserChangeDefaultContextForm thisUser, UserSessionBean userSession)
199+
String userNewContextGet(UserSessionBean userSession)
200+
String userNewContextPost(newContext, UserSessionBean userSession)
201+
String userContextEditGet(Context context,UserSessionBean userSession)
202+
String userContextEditPost(NewContextForm editContext, UserSessionBean userSession)
203+
String userDeleteContextGet(Context context, UserSessionBean userSession)
204+
String userLanguageGet(UserSessionBean userSession)
205+
String userLanguagePost(UserChangeLanguageForm userChangeLanguageForm, UserSessionBean userSession)
206+
}
207+
208+
@enduml

0 commit comments

Comments
 (0)