Skip to content

Commit 2f2f853

Browse files
committed
migrate spring-boot
1 parent 2749819 commit 2f2f853

File tree

7 files changed

+98
-98
lines changed

7 files changed

+98
-98
lines changed

etc/serialversions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ org.woehlke.simpleworklist.oodm.entities.UserRegistration: private static fin
1616
org.woehlke.simpleworklist.breadcrumb.BreadcrumbItem: private static final long serialVersionUID = 8276819198016077167L;
1717
org.woehlke.simpleworklist.breadcrumb.Breadcrumb: private static final long serialVersionUID = 7932703111140692689L;
1818
org.woehlke.simpleworklist.user.login.LoginForm: private static final long serialVersionUID = 5936886560348238355L;
19-
org.woehlke.simpleworklist.model.beans.NewContextForm: private static final long serialVersionUID = -937143305653156981L;
19+
org.woehlke.simpleworklist.context.NewContextForm: private static final long serialVersionUID = -937143305653156981L;
2020
org.woehlke.simpleworklist.user.messages.NewUser2UserMessage: private static final long serialVersionUID = 1576610181966480168L;
2121
org.woehlke.simpleworklist.search.SearchResult: private static final long serialVersionUID = 1682809351146047764L;
2222
org.woehlke.simpleworklist.model.beans.UserAccountForm: private static final long serialVersionUID = 9180383385243540190L;

getserialversionid.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ serialver org.woehlke.simpleworklist.oodm.entities.UserRegistration >> ..\..\et
3333
serialver org.woehlke.simpleworklist.breadcrumb.BreadcrumbItem >> ..\..\etc\serialversions.txt
3434
serialver org.woehlke.simpleworklist.breadcrumb.Breadcrumb >> ..\..\etc\serialversions.txt
3535
serialver org.woehlke.simpleworklist.user.login.LoginForm >> ..\..\etc\serialversions.txt
36-
serialver org.woehlke.simpleworklist.model.beans.NewContextForm >> ..\..\etc\serialversions.txt
36+
serialver org.woehlke.simpleworklist.context.NewContextForm >> ..\..\etc\serialversions.txt
3737
serialver org.woehlke.simpleworklist.user.messages.NewUser2UserMessage >> ..\..\etc\serialversions.txt
3838
serialver org.woehlke.simpleworklist.search.SearchResult >> ..\..\etc\serialversions.txt
3939
serialver org.woehlke.simpleworklist.model.beans.UserAccountForm >> ..\..\etc\serialversions.txt

getserialversionid.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ serialver org.woehlke.simpleworklist.oodm.entities.UserRegistration >> $SERIALV
4545
serialver org.woehlke.simpleworklist.breadcrumb.BreadcrumbItem >> $SERIALVERSIONS_FILE
4646
serialver org.woehlke.simpleworklist.breadcrumb.Breadcrumb >> $SERIALVERSIONS_FILE
4747
serialver org.woehlke.simpleworklist.user.login.LoginForm >> $SERIALVERSIONS_FILE
48-
serialver org.woehlke.simpleworklist.model.beans.NewContextForm >> $SERIALVERSIONS_FILE
48+
serialver org.woehlke.simpleworklist.context.NewContextForm >> $SERIALVERSIONS_FILE
4949
serialver org.woehlke.simpleworklist.user.messages.NewUser2UserMessage >> $SERIALVERSIONS_FILE
5050
serialver org.woehlke.simpleworklist.search.SearchResult >> $SERIALVERSIONS_FILE
5151
serialver org.woehlke.simpleworklist.model.beans.UserAccountForm >> $SERIALVERSIONS_FILE
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
package org.woehlke.simpleworklist.model.beans;
2-
3-
import org.hibernate.validator.constraints.Length;
4-
import javax.validation.constraints.NotBlank;
5-
import org.hibernate.validator.constraints.SafeHtml;
6-
7-
import java.io.Serializable;
8-
9-
/**
10-
* Created by tw on 15.03.16.
11-
*/
12-
public class NewContextForm implements Serializable {
13-
14-
private static final long serialVersionUID = -937143305653156981L;
15-
16-
@SafeHtml(whitelistType = SafeHtml.WhiteListType.NONE)
17-
@NotBlank
18-
@Length(min = 1, max = 255)
19-
private String nameDe;
20-
21-
@SafeHtml(whitelistType = SafeHtml.WhiteListType.NONE)
22-
@NotBlank
23-
@Length(min = 1, max = 255)
24-
private String nameEn;
25-
26-
public String getNameDe() {
27-
return nameDe;
28-
}
29-
30-
public void setNameDe(String nameDe) {
31-
this.nameDe = nameDe;
32-
}
33-
34-
public String getNameEn() {
35-
return nameEn;
36-
}
37-
38-
public void setNameEn(String nameEn) {
39-
this.nameEn = nameEn;
40-
}
41-
42-
@Override
43-
public boolean equals(Object o) {
44-
if (this == o) return true;
45-
if (!(o instanceof NewContextForm)) return false;
46-
47-
NewContextForm that = (NewContextForm) o;
48-
49-
if (nameDe != null ? !nameDe.equals(that.nameDe) : that.nameDe != null) return false;
50-
return nameEn != null ? nameEn.equals(that.nameEn) : that.nameEn == null;
51-
52-
}
53-
54-
@Override
55-
public int hashCode() {
56-
int result = nameDe != null ? nameDe.hashCode() : 0;
57-
result = 31 * result + (nameEn != null ? nameEn.hashCode() : 0);
58-
return result;
59-
}
60-
61-
@Override
62-
public String toString() {
63-
return "NewContextForm{" +
64-
"nameDe='" + nameDe + '\'' +
65-
", nameEn='" + nameEn + '\'' +
66-
'}';
67-
}
68-
}
1+
package org.woehlke.simpleworklist.context;
2+
3+
import org.hibernate.validator.constraints.Length;
4+
import javax.validation.constraints.NotBlank;
5+
import org.hibernate.validator.constraints.SafeHtml;
6+
7+
import java.io.Serializable;
8+
9+
/**
10+
* Created by tw on 15.03.16.
11+
*/
12+
public class NewContextForm implements Serializable {
13+
14+
private static final long serialVersionUID = -937143305653156981L;
15+
16+
@SafeHtml(whitelistType = SafeHtml.WhiteListType.NONE)
17+
@NotBlank
18+
@Length(min = 1, max = 255)
19+
private String nameDe;
20+
21+
@SafeHtml(whitelistType = SafeHtml.WhiteListType.NONE)
22+
@NotBlank
23+
@Length(min = 1, max = 255)
24+
private String nameEn;
25+
26+
public String getNameDe() {
27+
return nameDe;
28+
}
29+
30+
public void setNameDe(String nameDe) {
31+
this.nameDe = nameDe;
32+
}
33+
34+
public String getNameEn() {
35+
return nameEn;
36+
}
37+
38+
public void setNameEn(String nameEn) {
39+
this.nameEn = nameEn;
40+
}
41+
42+
@Override
43+
public boolean equals(Object o) {
44+
if (this == o) return true;
45+
if (!(o instanceof NewContextForm)) return false;
46+
47+
NewContextForm that = (NewContextForm) o;
48+
49+
if (nameDe != null ? !nameDe.equals(that.nameDe) : that.nameDe != null) return false;
50+
return nameEn != null ? nameEn.equals(that.nameEn) : that.nameEn == null;
51+
52+
}
53+
54+
@Override
55+
public int hashCode() {
56+
int result = nameDe != null ? nameDe.hashCode() : 0;
57+
result = 31 * result + (nameEn != null ? nameEn.hashCode() : 0);
58+
return result;
59+
}
60+
61+
@Override
62+
public String toString() {
63+
return "NewContextForm{" +
64+
"nameDe='" + nameDe + '\'' +
65+
", nameEn='" + nameEn + '\'' +
66+
'}';
67+
}
68+
}
Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
package org.woehlke.simpleworklist.oodm.services;
2-
3-
import org.woehlke.simpleworklist.oodm.entities.Context;
4-
import org.woehlke.simpleworklist.oodm.entities.UserAccount;
5-
import org.woehlke.simpleworklist.model.beans.NewContextForm;
6-
7-
import java.util.List;
8-
9-
/**
10-
* Created by tw on 13.03.16.
11-
*/
12-
public interface ContextService {
13-
14-
List<Context> getAllForUser(UserAccount user);
15-
16-
Context findByIdAndUserAccount(long newContextId, UserAccount userAccount);
17-
18-
void createNewContext(NewContextForm newContext, UserAccount user);
19-
20-
void updateContext(Context context);
21-
22-
boolean delete(Context context);
23-
24-
boolean contextHasItems(Context context);
25-
}
1+
package org.woehlke.simpleworklist.oodm.services;
2+
3+
import org.woehlke.simpleworklist.oodm.entities.Context;
4+
import org.woehlke.simpleworklist.oodm.entities.UserAccount;
5+
import org.woehlke.simpleworklist.context.NewContextForm;
6+
7+
import java.util.List;
8+
9+
/**
10+
* Created by tw on 13.03.16.
11+
*/
12+
public interface ContextService {
13+
14+
List<Context> getAllForUser(UserAccount user);
15+
16+
Context findByIdAndUserAccount(long newContextId, UserAccount userAccount);
17+
18+
void createNewContext(NewContextForm newContext, UserAccount user);
19+
20+
void updateContext(Context context);
21+
22+
boolean delete(Context context);
23+
24+
boolean contextHasItems(Context context);
25+
}

src/main/java/org/woehlke/simpleworklist/oodm/services/impl/ContextServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import org.springframework.stereotype.Service;
44
import org.springframework.transaction.annotation.Propagation;
55
import org.springframework.transaction.annotation.Transactional;
6-
import org.woehlke.simpleworklist.model.beans.NewContextForm;
6+
import org.woehlke.simpleworklist.context.NewContextForm;
77
import org.woehlke.simpleworklist.oodm.entities.Context;
88
import org.woehlke.simpleworklist.oodm.entities.UserAccount;
99
import org.woehlke.simpleworklist.oodm.repository.ContextRepository;

src/main/java/org/woehlke/simpleworklist/user/selfservice/UserSelfserviceController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
import org.springframework.web.bind.annotation.RequestMethod;
1919
import org.woehlke.simpleworklist.breadcrumb.Breadcrumb;
2020
import org.woehlke.simpleworklist.common.AbstractController;
21+
import org.woehlke.simpleworklist.context.NewContextForm;
2122
import org.woehlke.simpleworklist.context.UserChangeDefaultContextForm;
2223
import org.woehlke.simpleworklist.language.UserChangeLanguageForm;
2324
import org.woehlke.simpleworklist.oodm.entities.Context;
2425
import org.woehlke.simpleworklist.oodm.entities.UserAccount;
2526
import org.woehlke.simpleworklist.oodm.enumerations.Language;
26-
import org.woehlke.simpleworklist.model.beans.*;
2727
import org.woehlke.simpleworklist.user.UserAccountAccessService;
2828
import org.woehlke.simpleworklist.user.UserSessionBean;
2929

0 commit comments

Comments
 (0)