Skip to content

Commit 17159ad

Browse files
fix: misc fixes (#119)
* change to types * implements equals method * cleans up interface * interface change * bug fixes * adds json serialisation for older CDIs * all test fixes * adds common function to get user based on id * new func * removes unnecessary function * removes unused function * adds function for list user by phone number * more intefrace function * removes unused interface func * adds hash code function * makes tenant ids into a set * change of interface * adds functions for getting user info with locking * changes to interface to make it per tenant * renames var * small change * adds link account function * more tests * delete function change * adds function for unlink accounts * enforeces calling of external user ID mapping before converting to json * implements toJson * fixes a bug * fixes bugs * more changes * changes for password reset flow * removes unneeded function * removes unneeded function * fixes a bug * adds recipe user id in session * fix: primary user id in unlink accounts (#109) * fix: externalUserId in LoginMethod (#110) * fix: externalUserId in LoginMethod * fix: pr comments * fix: pr comments * fix: pr comments * fix: External userid (#111) * fix: externalUserId in LoginMethod * fix: pr comments * fix: pr comments * fix: pr comments * fix: external userid * fix: remove UserInfo class (#112) * fix: remove UserInfo class * fix: remove getRecipeId * fix: verified not final in LoginMethod (#113) * fix: multitenancy changes (#114) * Al user tenant association (#115) * fix: multitenancy changes * fix: addUserIdToTenant to transaction * fix: remove con reuse (#116) * fix: tests * fix: tenantIds instance * fix: account linking stats (#117) * fix: functions for useridmapping (#118) * fix: type update --------- Co-authored-by: rishabhpoddar <[email protected]>
1 parent f36ed1a commit 17159ad

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

src/main/java/io/supertokens/pluginInterface/dashboard/DashboardSearchTags.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
package io.supertokens.pluginInterface.dashboard;
22

33
import java.util.ArrayList;
4+
import java.util.List;
45

56
import javax.annotation.Nullable;
67

78
public class DashboardSearchTags {
89

9-
public ArrayList<String> emails;
10-
public ArrayList<String> phoneNumbers;
11-
public ArrayList<String> providers;
10+
public List<String> emails;
11+
public List<String> phoneNumbers;
12+
public List<String> providers;
1213

13-
public DashboardSearchTags(@Nullable ArrayList<String> emails, @Nullable ArrayList<String> phones,
14-
@Nullable ArrayList<String> providers) {
14+
public DashboardSearchTags(@Nullable List<String> emails, @Nullable List<String> phones,
15+
@Nullable List<String> providers) {
1516
this.emails = emails;
1617
this.phoneNumbers = phones;
1718
this.providers = providers;
1819
}
1920

2021
public boolean shouldEmailPasswordTableBeSearched() {
2122

22-
ArrayList<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = getNonNullSearchFields();
23+
List<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = getNonNullSearchFields();
2324
return nonNullSearchTags.contains(SUPPORTED_SEARCH_TAGS.EMAIL) && nonNullSearchTags.size() == 1;
2425

2526
}
2627

2728
public boolean shouldThirdPartyTableBeSearched() {
2829

29-
ArrayList<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = getNonNullSearchFields();
30+
List<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = getNonNullSearchFields();
3031
if(nonNullSearchTags.contains(SUPPORTED_SEARCH_TAGS.EMAIL) && nonNullSearchTags.contains(SUPPORTED_SEARCH_TAGS.PROVIDER)){
3132
return nonNullSearchTags.size() == 2;
3233
}
@@ -39,7 +40,7 @@ public boolean shouldThirdPartyTableBeSearched() {
3940
}
4041

4142
public boolean shouldPasswordlessTableBeSearched() {
42-
ArrayList<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = getNonNullSearchFields();
43+
List<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = getNonNullSearchFields();
4344
if(nonNullSearchTags.contains(SUPPORTED_SEARCH_TAGS.EMAIL) && nonNullSearchTags.contains(SUPPORTED_SEARCH_TAGS.PHONE)){
4445
return nonNullSearchTags.size() == 2;
4546
}
@@ -51,8 +52,8 @@ public boolean shouldPasswordlessTableBeSearched() {
5152
return false;
5253
}
5354

54-
private ArrayList<SUPPORTED_SEARCH_TAGS> getNonNullSearchFields() {
55-
ArrayList<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = new ArrayList<>();
55+
private List<SUPPORTED_SEARCH_TAGS> getNonNullSearchFields() {
56+
List<SUPPORTED_SEARCH_TAGS> nonNullSearchTags = new ArrayList<>();
5657

5758
if (this.emails != null) {
5859
nonNullSearchTags.add(SUPPORTED_SEARCH_TAGS.EMAIL);

0 commit comments

Comments
 (0)