Skip to content

Commit 097fcfa

Browse files
committed
work
1 parent f006a86 commit 097fcfa

8 files changed

+55
-16
lines changed

src/main/java/org/woehlke/java/simpleworklist/domain/ProjectIdController.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ public class ProjectIdController extends AbstractController {
4646
private final BreadcrumbService breadcrumbService;
4747

4848
@Autowired
49-
public ProjectIdController(ProjectControllerService projectControllerService, TaskMoveService taskMoveService, TaskService taskService, ContextService contextService, BreadcrumbService breadcrumbService) {
49+
public ProjectIdController(
50+
ProjectControllerService projectControllerService,
51+
TaskMoveService taskMoveService,
52+
TaskService taskService,
53+
ContextService contextService,
54+
BreadcrumbService breadcrumbService
55+
) {
5056
this.projectControllerService = projectControllerService;
5157
this.taskMoveService = taskMoveService;
5258
this.taskService = taskService;

src/main/java/org/woehlke/java/simpleworklist/domain/ProjectIdTaskController.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ public class ProjectIdTaskController extends AbstractController {
4141
private final ContextService contextService;
4242

4343
@Autowired
44-
public ProjectIdTaskController(ProjectControllerService projectControllerService, ProjectService projectService, TaskLifecycleService taskLifecycleService, BreadcrumbService breadcrumbService, ContextService contextService) {
44+
public ProjectIdTaskController(
45+
ProjectControllerService projectControllerService,
46+
ProjectService projectService,
47+
TaskLifecycleService taskLifecycleService,
48+
BreadcrumbService breadcrumbService,
49+
ContextService contextService
50+
) {
4551
this.projectControllerService = projectControllerService;
4652
this.projectService = projectService;
4753
this.taskLifecycleService = taskLifecycleService;

src/main/java/org/woehlke/java/simpleworklist/domain/ProjectRootTaskController.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ public class ProjectRootTaskController extends AbstractController {
4343
private final BreadcrumbService breadcrumbService;
4444

4545
@Autowired
46-
public ProjectRootTaskController(ProjectControllerService projectControllerService, TaskLifecycleService taskLifecycleService, BreadcrumbService breadcrumbService) {
46+
public ProjectRootTaskController(
47+
ProjectControllerService projectControllerService,
48+
TaskLifecycleService taskLifecycleService,
49+
BreadcrumbService breadcrumbService
50+
) {
4751
this.projectControllerService = projectControllerService;
4852
this.taskLifecycleService = taskLifecycleService;
4953
this.breadcrumbService = breadcrumbService;
@@ -65,7 +69,6 @@ public final String projectRootTaskAddGet(
6569
thisTask.setTaskTime(TaskTime.NONE);
6670
thisTask.unsetFocus();
6771
Boolean mustChooseContext = false;
68-
6972
Context projectsContext;
7073
if(userSession.getLastContextId() == 0L){
7174
mustChooseContext = true;
@@ -78,7 +81,8 @@ public final String projectRootTaskAddGet(
7881
List<Project> rootProjects = projectControllerService.findRootProjectsByContext(context);
7982
Breadcrumb breadcrumb = breadcrumbService.getBreadcrumbForShoProjectId(thisProject,locale,userSession);
8083
model.addAttribute("breadcrumb", breadcrumb);
81-
model.addAttribute("mustChooseContext", mustChooseContext); //TODO: rename mustChooseArea -> mustChooseContext
84+
//TODO: rename mustChooseArea -> mustChooseContext
85+
model.addAttribute("mustChooseContext", mustChooseContext);
8286
model.addAttribute("thisProject", null);
8387
model.addAttribute("thisProjectId", thisProject.getId());
8488
model.addAttribute("breadcrumb", breadcrumb);

src/main/java/org/woehlke/java/simpleworklist/domain/TaskLifecycleController.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ public class TaskLifecycleController extends AbstractController {
4242
private final ContextService contextService;
4343

4444
@Autowired
45-
public TaskLifecycleController(TaskLifecycleService taskLifecycleService, BreadcrumbService breadcrumbService, ContextService contextService) {
45+
public TaskLifecycleController(
46+
TaskLifecycleService taskLifecycleService,
47+
BreadcrumbService breadcrumbService,
48+
ContextService contextService
49+
) {
4650
this.taskLifecycleService = taskLifecycleService;
4751
this.breadcrumbService = breadcrumbService;
4852
this.contextService = contextService;

src/main/java/org/woehlke/java/simpleworklist/domain/UserChatMessageController.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public class UserChatMessageController extends AbstractController {
4141
private final BreadcrumbService breadcrumbService;
4242

4343
@Autowired
44-
public UserChatMessageController(UserChatMessageControllerService userChatMessageControllerService, BreadcrumbService breadcrumbService) {
44+
public UserChatMessageController(
45+
UserChatMessageControllerService userChatMessageControllerService,
46+
BreadcrumbService breadcrumbService
47+
) {
4548
this.userChatMessageControllerService = userChatMessageControllerService;
4649
this.breadcrumbService = breadcrumbService;
4750
}
@@ -69,9 +72,8 @@ public final String getLastMessagesBetweenCurrentAndOtherUser(
6972
log.info(chatMessageForm.toString());
7073
log.info("-----------------------------------------------------------------------------------------------");
7174
log.info("Page<UserAccountChatMessage> user2UserMessagePage");
72-
Page<UserAccountChatMessage> user2UserMessagePage = userChatMessageControllerService.readAllMessagesBetweenCurrentAndOtherUser(
73-
thisUser, otherUser, request
74-
);
75+
Page<UserAccountChatMessage> user2UserMessagePage =
76+
userChatMessageControllerService.readAllMessagesBetweenCurrentAndOtherUser(thisUser, otherUser, request);
7577
for (UserAccountChatMessage o : user2UserMessagePage) {
7678
log.info(o.toString());
7779
}
@@ -112,7 +114,8 @@ public final String sendNewMessageToOtherUser(
112114
for (ObjectError objectError : result.getAllErrors()) {
113115
log.info("result.hasErrors: " + objectError.toString());
114116
}
115-
Page<UserAccountChatMessage> user2UserMessagePage = userChatMessageControllerService.readAllMessagesBetweenCurrentAndOtherUser(thisUser, otherUser, request);
117+
Page<UserAccountChatMessage> user2UserMessagePage =
118+
userChatMessageControllerService.readAllMessagesBetweenCurrentAndOtherUser(thisUser, otherUser, request);
116119
model.addAttribute("otherUser", otherUser);
117120
model.addAttribute("user2UserMessagePage", user2UserMessagePage);
118121
model.addAttribute("userSession", userSession);

src/main/java/org/woehlke/java/simpleworklist/domain/UserPasswordRecoveryController.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ public class UserPasswordRecoveryController {
2929
private final UserAccountPasswordRecoveryService userAccountPasswordRecoveryService;
3030

3131
@Autowired
32-
public UserPasswordRecoveryController(UserAccountService userAccountService, UserAccountPasswordRecoveryService userAccountPasswordRecoveryService) {
32+
public UserPasswordRecoveryController(
33+
UserAccountService userAccountService,
34+
UserAccountPasswordRecoveryService userAccountPasswordRecoveryService
35+
) {
3336
this.userAccountService = userAccountService;
3437
this.userAccountPasswordRecoveryService = userAccountPasswordRecoveryService;
3538
}
@@ -102,7 +105,8 @@ public final String enterNewPasswordFormular(
102105
@PathVariable String confirmId,
103106
Model model
104107
) {
105-
UserAccountPasswordRecovery oUserAccountPasswordRecovery = userAccountPasswordRecoveryService.findByToken(confirmId);
108+
UserAccountPasswordRecovery oUserAccountPasswordRecovery =
109+
userAccountPasswordRecoveryService.findByToken(confirmId);
106110
if (oUserAccountPasswordRecovery != null) {
107111
userAccountPasswordRecoveryService.passwordRecoveryClickedInEmail(oUserAccountPasswordRecovery);
108112
UserAccount ua = userAccountService.findByUserEmail(oUserAccountPasswordRecovery.getEmail());

src/main/java/org/woehlke/java/simpleworklist/domain/UserRegistrationController.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ public class UserRegistrationController {
2727
private final UserAccountRegistrationService userAccountRegistrationService;
2828

2929
@Autowired
30-
public UserRegistrationController(UserAccountService userAccountService, UserAccountRegistrationService userAccountRegistrationService) {
30+
public UserRegistrationController(
31+
UserAccountService userAccountService,
32+
UserAccountRegistrationService userAccountRegistrationService
33+
) {
3134
this.userAccountService = userAccountService;
3235
this.userAccountRegistrationService = userAccountRegistrationService;
3336
}
@@ -69,7 +72,11 @@ public final String registerPost(
6972
} else {
7073
userAccountRegistrationService.registrationCheckIfResponseIsInTime(userAccountRegistrationForm.getEmail());
7174
if (userAccountService.isEmailAvailable(userAccountRegistrationForm.getEmail())) {
72-
if (userAccountRegistrationService.registrationIsRetryAndMaximumNumberOfRetries(userAccountRegistrationForm.getEmail())) {
75+
boolean registrationIsRetryAndMaximumNumberOfRetries =
76+
userAccountRegistrationService.registrationIsRetryAndMaximumNumberOfRetries(
77+
userAccountRegistrationForm.getEmail()
78+
);
79+
if (registrationIsRetryAndMaximumNumberOfRetries) {
7380
String objectName = "userAccountRegistrationForm";
7481
String field = "email";
7582
String defaultMessage = "Maximum Number of Retries reached.";

src/main/java/org/woehlke/java/simpleworklist/domain/UserSelfserviceController.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,12 @@ public class UserSelfserviceController extends AbstractController {
4949
private final ContextService contextService;
5050

5151
@Autowired
52-
public UserSelfserviceController(UserAuthorizationService userAuthorizationService, BreadcrumbService breadcrumbService, UserAccountService userAccountService, ContextService contextService) {
52+
public UserSelfserviceController(
53+
UserAuthorizationService userAuthorizationService,
54+
BreadcrumbService breadcrumbService,
55+
UserAccountService userAccountService,
56+
ContextService contextService
57+
) {
5358
this.userAuthorizationService = userAuthorizationService;
5459
this.breadcrumbService = breadcrumbService;
5560
this.userAccountService = userAccountService;

0 commit comments

Comments
 (0)