##### Coverage Report - jp.co.y_net.amm.AppSession

Classes in this File | Line Coverage | Branch Coverage | Complexity

AppSession

0% | 0/11

0% | 0/2

1.0;1

AppSession$LoginUser

0% | 0/1

N/A | N/A

1.0;1

1

0

     package jp.co.y_net.amm;

2

3

     import jp.co.y_net.amm.dao.Usr;

4

5

     import org.apache.wicket.Page;

6

     import org.apache.wicket.Session;

7

     import org.apache.wicket.protocol.http.WebSession;

8

     import org.apache.wicket.request.Request;

9

     import org.apache.wicket.request.mapper.parameter.PageParameters;

10

11

     public class AppSession extends WebSession {

12

     //AuthenticatedWebSession {

13

         private static final long serialVersionUID = 1L;

14

15

         public AppSession(Request request) {

16

0

             super(request);

17

0

         }

18

         public static AppSession get() {

19

0

             return (AppSession) Session.get();

20

         }

21

22

23

24

         private LoginUser loginUser;

25

         public boolean isLogin() {

26

0

             return ((this.loginUser == null) == false);

27

         }

28

         public LoginUser getLoginUser() {

29

0

             return this.loginUser;

30

         }

31

         public void setLoginUser(LoginUser loginUser) {

32

0

             this.loginUser = loginUser;

33

0

         }

34

0

         public static class LoginUser extends Usr{

35

             /* 拡張無し */

36

         }

37

         public void setLoginUser(Usr usr) {

38

0

             loginUser = new LoginUser();

39

0

             usr.copy(loginUser);

40

41

0

         }

42

43

         public Class<? extends Page> returnPageClass;

44

         public PageParameters returnPageParameters;

45

46

47

48

     }

49