Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-jams
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-jams
Commits
1b72fe37
Commit
1b72fe37
authored
4 years ago
by
Ndèye Anna Ndiaye
Browse files
Options
Downloads
Patches
Plain Diff
Some review corrections changes
Change-Id: I4fd43d773b5f9bb309322f9c2e7a57236a69bc32
parent
324890c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
datastore/src/main/java/net/jami/datastore/main/DataStore.java
+4
-5
4 additions, 5 deletions
...tore/src/main/java/net/jami/datastore/main/DataStore.java
with
4 additions
and
5 deletions
datastore/src/main/java/net/jami/datastore/main/DataStore.java
+
4
−
5
View file @
1b72fe37
...
...
@@ -77,11 +77,11 @@ public class DataStore implements AuthenticationSource {
if
(!
queryString
.
equals
(
"*"
))
{
StatementList
statementList
=
new
StatementList
();
String
startQueryString
=
queryString
.
concat
(
"%"
);
if
(
field
.
equals
(
"LOGON_NAME"
)){
statementList
.
addStatement
(
new
StatementElement
(
"username"
,
"LIKE"
,
q
ueryString
,
""
));
statementList
.
addStatement
(
new
StatementElement
(
"username"
,
"LIKE"
,
startQ
ueryString
,
""
));
}
else
{
String
startQueryString
=
queryString
.
concat
(
"%"
);
else
if
(
field
.
equals
(
"FULL_TEXT_NAME"
)){
statementList
.
addStatement
(
new
StatementElement
(
"firstName"
,
"LIKE"
,
startQueryString
,
"OR"
));
statementList
.
addStatement
(
new
StatementElement
(
"lastName"
,
"LIKE"
,
startQueryString
,
""
));
}
...
...
@@ -100,7 +100,6 @@ public class DataStore implements AuthenticationSource {
public
boolean
updateUserProfile
(
UserProfile
userProfile
){
StatementList
update
=
new
StatementList
();
StatementList
constraints
=
new
StatementList
();
update
.
addStatement
(
new
StatementElement
(
"username"
,
"="
,
userProfile
.
getUsername
(),
""
));
update
.
addStatement
(
new
StatementElement
(
"firstName"
,
"="
,
userProfile
.
getFirstName
(),
""
));
update
.
addStatement
(
new
StatementElement
(
"lastName"
,
"="
,
userProfile
.
getLastName
(),
""
));
...
...
@@ -112,7 +111,7 @@ public class DataStore implements AuthenticationSource {
update
.
addStatement
(
new
StatementElement
(
"faxNumber"
,
"="
,
userProfile
.
getFaxNumber
(),
""
));
update
.
addStatement
(
new
StatementElement
(
"mobileNumber"
,
"="
,
userProfile
.
getMobileNumber
(),
""
));
return
userProfileDao
.
updateObject
(
update
,
constraints
);
return
userProfileDao
.
updateObject
(
update
,
null
);
}
@Override
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment