-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature #12603: optimizing the DomainDriver API in orer to improve pe…
…rformances. Adding new signatures that permit to request about several user data instead of requesting data user by user like it is done today. The manager of domain driver is now able to fetch domain users from several silverpeas's identifiers. The LDAP driver has been also improved in order to permits to request several user data in a same time by their ids. Adding to UserDAO the necessary to fetch several users by their id or domain specific id. Adding to UserFull and OrganizationController chain the signatures to fetch several user full instances from several user silverpeas's identifiers.
- Loading branch information
1 parent
e13f1a6
commit e4c118b
Showing
22 changed files
with
615 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
core-api/src/main/java/org/silverpeas/core/persistence/jdbc/sql/SplitListProcess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (C) 2000 - 2021 Silverpeas | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* As a special exception to the terms and conditions of version 3.0 of | ||
* the GPL, you may redistribute this Program in connection with Free/Libre | ||
* Open Source Software ("FLOSS") applications as described in Silverpeas's | ||
* FLOSS exception. You should have received a copy of the text describing | ||
* the FLOSS exception, and it is also available here: | ||
* "https://www.silverpeas.org/legal/floss_exception.html" | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package org.silverpeas.core.persistence.jdbc.sql; | ||
|
||
import java.sql.SQLException; | ||
import java.util.Collection; | ||
|
||
/** | ||
* Split Processor on discriminant data used for list queries. | ||
* @param <D> the type of list of discriminant data. | ||
* @param <T> the type of the entity into result. | ||
*/ | ||
@FunctionalInterface | ||
public interface SplitListProcess<D, T> { | ||
|
||
/** | ||
* Processes on a slice of entire list of discriminant data. | ||
* @param idBatch a slice of discriminant data. | ||
* @throws SQLException on SQL errors. | ||
*/ | ||
T execute(final Collection<D> idBatch) throws SQLException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.