1 package org.kuali.student.ap.test.mock;
2
3 import org.kuali.student.ap.framework.context.UserSessionHelper;
4
5 /**
6 * Created with IntelliJ IDEA.
7 * User: johglove
8 * Date: 11/19/13
9 * Time: 9:30 AM
10 * To change this template use File | Settings | File Templates.
11 */
12 public class UserSessionHelperMockTest implements UserSessionHelper {
13 /**
14 * Returns true if a user has authenticated as a adviser. All sorts of
15 * conditional behavior depends on this method.
16 *
17 * @return True if the user is an adviser. Otherwise, false.
18 */
19 @Override
20 public boolean isAdviser() {
21 return false; //To change body of implemented methods use File | Settings | File Templates.
22 }
23
24 /**
25 * Determines the student id that should be used for queries. If the user
26 * has the adviser flag set in the session then there should also be a
27 * student id. Otherwise, just return the principal it.
28 *
29 * @return The Id
30 */
31 @Override
32 public String getStudentId() {
33 return null; //To change body of implemented methods use File | Settings | File Templates.
34 }
35
36 /**
37 * Is the User logged into a session
38 *
39 * @return True if a session is active
40 */
41 @Override
42 public boolean isUserSession() {
43 return false; //To change body of implemented methods use File | Settings | File Templates.
44 }
45
46 /**
47 * Determines the student id that should be used for queries. If the user
48 * has the adviser flag set in the session then there should also be a
49 * student id. Otherwise, just return the principal it.
50 *
51 * @return Student Name
52 */
53 @Override
54 public String getStudentName() {
55 return null; //To change body of implemented methods use File | Settings | File Templates.
56 }
57
58 /**
59 * Queries the person service to get the name (first last) of a person given
60 * a principle ID.
61 *
62 * @param principleId
63 * @return The name in first last format.
64 */
65 @Override
66 public String getName(String principleId) {
67 return null; //To change body of implemented methods use File | Settings | File Templates.
68 }
69
70 /**
71 * Queries the person service to get the name (first last) of a person given
72 * a principle ID.
73 *
74 * @param principleId
75 * @return The name in first last format.
76 */
77 @Override
78 public String getNameCapitalized(String principleId) {
79 return null; //To change body of implemented methods use File | Settings | File Templates.
80 }
81
82 @Override
83 public String capitalize(String value) {
84 return null; //To change body of implemented methods use File | Settings | File Templates.
85 }
86
87 @Override
88 public String getMailAddress(String principleId) {
89 return null; //To change body of implemented methods use File | Settings | File Templates.
90 }
91
92 @Override
93 public boolean isStudent() {
94 return false; //To change body of implemented methods use File | Settings | File Templates.
95 }
96
97 @Override
98 public String getStudentNumber() {
99 return null; //To change body of implemented methods use File | Settings | File Templates.
100 }
101 }