42
42
@ Remote
43
43
public interface UserFacade {
44
44
45
- UserDto getByUuid (String uuid );
45
+ UserDto getByUuid (String uuid );
46
46
47
- UserDto saveUser (@ Valid UserDto dto , boolean isUserSettingsUpdate );
47
+ UserDto saveUser (@ Valid UserDto dto , boolean isUserSettingsUpdate );
48
48
49
- UserDto saveUserRolesAndRestrictions (UserDto user , Set <UserRoleReferenceDto > userRoles );
49
+ UserDto saveUserRolesAndRestrictions (UserDto user , Set <UserRoleReferenceDto > userRoles );
50
50
51
- boolean isLoginUnique (String uuid , String userName );
51
+ boolean isLoginUnique (String uuid , String userName );
52
52
53
- String resetPassword (String uuid );
53
+ String resetPassword (String uuid );
54
54
55
55
String updateUserPassword (String uuid , String newPassword , String currentPassword );
56
56
@@ -62,109 +62,122 @@ public interface UserFacade {
62
62
63
63
String generatePassword ();
64
64
65
- List <UserDto > getAllAfter (Date date );
65
+ List <UserDto > getAllAfter (Date date );
66
66
67
- UserDto getByUserName (String userName );
67
+ UserDto getByUserName (String userName );
68
68
69
- /**
70
- * @param regionRef reference of the region to be filtered for. When this region is null, it is not filtered in this regard.
71
- * NOTE: some users don't have a region (often users with NATIONAL_USER role, for example). They will
72
- * not be included when a region is specified, but otherwise they will.
73
- * @param limitedDisease can be used to remove users from the return value that are limited to diseases other that limitedDisease.
74
- * @param userRights user rights to be filtered for.
75
- * @return
76
- */
77
- List <UserReferenceDto > getUsersByRegionAndRights (RegionReferenceDto regionRef , Disease limitedDisease , UserRight ... userRights );
69
+ /**
70
+ *
71
+ * @param regionRef
72
+ * reference of the region to be filtered for. When this region is null, it is not filtered in this regard.
73
+ * NOTE: some users don't have a region (often users with NATIONAL_USER role, for example). They will
74
+ * not be included when a region is specified, but otherwise they will.
75
+ * @param limitedDisease
76
+ * can be used to remove users from the return value that are limited to diseases other that limitedDisease.
77
+ * @param userRights
78
+ * user rights to be filtered for.
79
+ * @return
80
+ */
81
+ List <UserReferenceDto > getUsersByRegionAndRights (RegionReferenceDto regionRef , Disease limitedDisease , UserRight ... userRights );
78
82
79
- List <UserReferenceDto > getUsersWithSuperiorJurisdiction (UserDto user );
83
+ List <UserReferenceDto > getUsersWithSuperiorJurisdiction (UserDto user );
80
84
81
- List <UserDto > getIndexList (UserCriteria userCriteria , Integer first , Integer max , List <SortProperty > sortProperties );
85
+ List <UserDto > getIndexList (UserCriteria userCriteria , Integer first , Integer max , List <SortProperty > sortProperties );
82
86
83
- Page <UserDto > getIndexPage (UserCriteria userCriteria , int offset , int size , List <SortProperty > sortProperties );
87
+ Page <UserDto > getIndexPage (UserCriteria userCriteria , int offset , int size , List <SortProperty > sortProperties );
84
88
85
- long count (UserCriteria userCriteria );
89
+ long count (UserCriteria userCriteria );
86
90
87
- /**
88
- * @param district reference of the district to be filtered for. When this district is null, it is not filtered in this regard.
89
- * NOTE: some users don't have a district (often users with NATIONAL_USER role, for example). They will
90
- * not be included when a district is specified, but otherwise they will.
91
- * @param limitedDisease can be used to remove users from the return value that are limited to diseases other that limitedDisease.
92
- * @param userRights user rights to be filtered for.
93
- * @return
94
- */
95
- List <UserReferenceDto > getUserRefsByDistrict (DistrictReferenceDto district , Disease limitedDisease , UserRight ... userRights );
91
+ /**
92
+ *
93
+ * @param district
94
+ * reference of the district to be filtered for. When this district is null, it is not filtered in this regard.
95
+ * NOTE: some users don't have a district (often users with NATIONAL_USER role, for example). They will
96
+ * not be included when a district is specified, but otherwise they will.
97
+ * @param limitedDisease
98
+ * can be used to remove users from the return value that are limited to diseases other that limitedDisease.
99
+ * @param userRights
100
+ * user rights to be filtered for.
101
+ * @return
102
+ */
103
+ List <UserReferenceDto > getUserRefsByDistrict (DistrictReferenceDto district , Disease limitedDisease , UserRight ... userRights );
96
104
97
- /**
98
- * @param district reference of the district to be filtered for. When this district is null, it is not filtered in this regard.
99
- * NOTE: some users don't have a district (often users with NATIONAL_USER role, for example). They will
100
- * * not be included when a district is specified, but otherwise they will.
101
- * @param excludeLimitedDiseaseUsers if true, all users limited to diseases are excluded from the return value.
102
- * @param userRights user rights to be filtered for.
103
- * @return
104
- */
105
- List <UserReferenceDto > getUserRefsByDistrict (DistrictReferenceDto district , boolean excludeLimitedDiseaseUsers , UserRight ... userRights );
105
+ /**
106
+ *
107
+ * @param district
108
+ * reference of the district to be filtered for. When this district is null, it is not filtered in this regard.
109
+ * NOTE: some users don't have a district (often users with NATIONAL_USER role, for example). They will
110
+ * * not be included when a district is specified, but otherwise they will.
111
+ * @param excludeLimitedDiseaseUsers
112
+ * if true, all users limited to diseases are excluded from the return value.
113
+ * @param userRights
114
+ * user rights to be filtered for.
115
+ * @return
116
+ */
117
+ List <UserReferenceDto > getUserRefsByDistrict (DistrictReferenceDto district , boolean excludeLimitedDiseaseUsers , UserRight ... userRights );
106
118
107
- List <UserReferenceDto > getUserRefsByDistricts (List <DistrictReferenceDto > districts , Disease limitedDisease , UserRight ... userRights );
119
+ List <UserReferenceDto > getUserRefsByDistricts (List <DistrictReferenceDto > districts , Disease limitedDisease , UserRight ... userRights );
108
120
109
- List <UserReferenceDto > getUserRefsByInfrastructure (
110
- InfrastructureDataReferenceDto infrastructure ,
111
- JurisdictionLevel jurisdictionLevel ,
112
- JurisdictionLevel allowedJurisdictionLevel ,
113
- Disease limitedDisease ,
114
- UserRight ... userRights );
121
+ List <UserReferenceDto > getUserRefsByInfrastructure (
122
+ InfrastructureDataReferenceDto infrastructure ,
123
+ JurisdictionLevel jurisdictionLevel ,
124
+ JurisdictionLevel allowedJurisdictionLevel ,
125
+ Disease limitedDisease ,
126
+ UserRight ... userRights );
115
127
116
- List <UserReferenceDto > getAllUserRefs (boolean includeInactive );
128
+ List <UserReferenceDto > getAllUserRefs (boolean includeInactive );
117
129
118
- List <UserDto > getUsersByAssociatedOfficer (UserReferenceDto associatedOfficer , UserRight ... userRights );
130
+ List <UserDto > getUsersByAssociatedOfficer (UserReferenceDto associatedOfficer , UserRight ... userRights );
119
131
120
- List <String > getAllUuids ();
132
+ List <String > getAllUuids ();
121
133
122
- List <UserDto > getByUuids (List <String > uuids );
134
+ List <UserDto > getByUuids (List <String > uuids );
123
135
124
- UserDto getCurrentUser ();
136
+ UserDto getCurrentUser ();
125
137
126
- UserReferenceDto getCurrentUserAsReference ();
138
+ UserReferenceDto getCurrentUserAsReference ();
127
139
128
- Set <UserRight > getValidLoginRights (String userName , String password );
140
+ Set <UserRight > getValidLoginRights (String userName , String password );
129
141
130
- void removeUserAsSurveillanceAndContactOfficer (String userUuid );
142
+ void removeUserAsSurveillanceAndContactOfficer (String userUuid );
131
143
132
- UserSyncResult syncUser (String userUuid );
144
+ UserSyncResult syncUser (String userUuid );
133
145
134
- List <UserDto > getUsersWithDefaultPassword ();
146
+ List <UserDto > getUsersWithDefaultPassword ();
135
147
136
- List <ProcessedEntity > enableUsers (List <String > userUuids );
148
+ List <ProcessedEntity > enableUsers (List <String > userUuids );
137
149
138
- List <ProcessedEntity > disableUsers (List <String > userUuids );
150
+ List <ProcessedEntity > disableUsers (List <String > userUuids );
139
151
140
- List <UserReferenceDto > getUsersHavingCaseInJurisdiction (CaseReferenceDto caseReferenceDto );
152
+ List <UserReferenceDto > getUsersHavingCaseInJurisdiction (CaseReferenceDto caseReferenceDto );
141
153
142
- List <UserReferenceDto > getUsersHavingContactInJurisdiction (ContactReferenceDto contactReferenceDto );
154
+ List <UserReferenceDto > getUsersHavingContactInJurisdiction (ContactReferenceDto contactReferenceDto );
143
155
144
- List <UserReferenceDto > getUsersHavingEventInJurisdiction (EventReferenceDto event );
156
+ List <UserReferenceDto > getUsersHavingEventInJurisdiction (EventReferenceDto event );
145
157
146
- List <UserReferenceDto > getUsersHavingTravelEntryInJurisdiction (TravelEntryReferenceDto travelEntryReferenceDto );
158
+ List <UserReferenceDto > getUsersHavingTravelEntryInJurisdiction (TravelEntryReferenceDto travelEntryReferenceDto );
147
159
148
- List <UserReferenceDto > getUsersHavingEnvironmentInJurisdiction (EnvironmentReferenceDto environmentReferenceDto );
160
+ List <UserReferenceDto > getUsersHavingEnvironmentInJurisdiction (EnvironmentReferenceDto environmentReferenceDto );
149
161
150
- List <UserReferenceWithTaskNumbersDto > getAssignableUsersWithTaskNumbers (@ NotNull TaskContextIndexCriteria taskContextIndexCriteria );
162
+ List <UserReferenceWithTaskNumbersDto > getAssignableUsersWithTaskNumbers (@ NotNull TaskContextIndexCriteria taskContextIndexCriteria );
151
163
152
- Set <UserRoleDto > getUserRoles (UserDto user );
164
+ Set <UserRoleDto > getUserRoles (UserDto user );
153
165
154
- long getUserCountHavingRole (UserRoleReferenceDto userRoleRef );
166
+ long getUserCountHavingRole (UserRoleReferenceDto userRoleRef );
155
167
156
- List <UserReferenceDto > getUsersHavingOnlyRole (UserRoleReferenceDto userRoleRef );
168
+ List <UserReferenceDto > getUsersHavingOnlyRole (UserRoleReferenceDto userRoleRef );
157
169
158
- /**
159
- * Retrieves the user rights of the user specified by the passed UUID, or those of the current user if no UUID is specified.
160
- * Requesting the user rights of another user without the rights to view users and user roles results in an AccessDeniedException.
161
- *
162
- * @param userUuid The UUID of the user to request the user rights for
163
- * @return A set containing the user rights associated to all user roles assigned to the user
164
- */
165
- List <UserRight > getUserRights (String userUuid );
170
+ /**
171
+ * Retrieves the user rights of the user specified by the passed UUID, or those of the current user if no UUID is specified.
172
+ * Requesting the user rights of another user without the rights to view users and user roles results in an AccessDeniedException.
173
+ *
174
+ * @param userUuid
175
+ * The UUID of the user to request the user rights for
176
+ * @return A set containing the user rights associated to all user roles assigned to the user
177
+ */
178
+ List <UserRight > getUserRights (String userUuid );
166
179
167
- void syncUsersFromAuthenticationProvider ();
180
+ void syncUsersFromAuthenticationProvider ();
168
181
169
- boolean isSyncEnabled ();
182
+ boolean isSyncEnabled ();
170
183
}
0 commit comments