-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into MODCONSKC-57-3
- Loading branch information
Showing
18 changed files
with
666 additions
and
453 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
16 changes: 0 additions & 16 deletions
16
src/main/java/org/folio/consortia/client/ConsortiaConfigurationClient.java
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
src/main/java/org/folio/consortia/client/SyncPrimaryAffiliationClient.java
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
src/main/java/org/folio/consortia/client/UserTenantsClient.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
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
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
51 changes: 51 additions & 0 deletions
51
src/main/java/org/folio/consortia/service/TenantManager.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,51 @@ | ||
package org.folio.consortia.service; | ||
|
||
import java.util.UUID; | ||
|
||
import org.folio.consortia.domain.dto.Tenant; | ||
import org.folio.consortia.domain.dto.TenantCollection; | ||
|
||
public interface TenantManager { | ||
|
||
/** | ||
* Gets tenant collection based on consortiumId. | ||
* | ||
* @param consortiumId the consortiumId | ||
* @param limit the limit | ||
* @param offset the offset | ||
* @return tenant collection | ||
*/ | ||
TenantCollection get(UUID consortiumId, Integer offset, Integer limit); | ||
|
||
/** | ||
* Inserts single tenant based on consortiumId. | ||
* Method checks whether requesting tenant is soft deleted or new tenant. | ||
* For re-adding soft deleted tenant, | ||
* tenant is_deleted flag will be changed to false and dummy user will be created in mod_users.user-tenants table | ||
* For new tenant, all necessary actions will be done. | ||
* | ||
* @param consortiumId the consortiumId | ||
* @param tenantDto the tenantDto | ||
* @param adminUserId the id of admin_user | ||
* @return tenantDto | ||
*/ | ||
Tenant save(UUID consortiumId, UUID adminUserId, Tenant tenantDto); | ||
|
||
/** | ||
* Updates single tenant based on consortiumId. | ||
* | ||
* @param consortiumId the consortiumId | ||
* @param tenantId the tenantId | ||
* @param tenantDto the tenantDto | ||
* @return tenantDto | ||
*/ | ||
Tenant update(UUID consortiumId, String tenantId, Tenant tenantDto); | ||
|
||
/** | ||
* Deletes single tenant based on consortiumId. | ||
* @param consortiumId the consortiumId | ||
* @param tenantId the tenantId | ||
*/ | ||
void delete(UUID consortiumId, String tenantId); | ||
|
||
} |
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.