-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MODTLR-75 Search slips implementation and tests * MODTLR-75 Unit test for search slips * MODTLR-75 Remove redundant methods
- Loading branch information
1 parent
fd1dfb9
commit dc1e787
Showing
22 changed files
with
1,685 additions
and
1,002 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.folio.client.feign; | ||
|
||
import org.folio.domain.dto.HoldingsRecord; | ||
import org.folio.domain.dto.HoldingsRecords; | ||
import org.folio.spring.config.FeignClientConfiguration; | ||
import org.springframework.cloud.openfeign.FeignClient; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
|
||
@FeignClient(name = "holdings", url = "holdings-storage/holdings", configuration = FeignClientConfiguration.class) | ||
public interface HoldingClient extends GetByQueryClient<HoldingsRecords> { | ||
|
||
@GetMapping("/{id}") | ||
HoldingsRecord get(@PathVariable String id); | ||
|
||
} |
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
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
50 changes: 50 additions & 0 deletions
50
src/main/java/org/folio/service/impl/SearchSlipsService.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,50 @@ | ||
package org.folio.service.impl; | ||
|
||
import static org.folio.domain.dto.ItemStatus.NameEnum.AWAITING_DELIVERY; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.CHECKED_OUT; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.IN_PROCESS; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.IN_TRANSIT; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.MISSING; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.ON_ORDER; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.PAGED; | ||
import static org.folio.domain.dto.ItemStatus.NameEnum.RESTRICTED; | ||
import static org.folio.domain.dto.Request.RequestTypeEnum.HOLD; | ||
import static org.folio.domain.dto.Request.StatusEnum.OPEN_NOT_YET_FILLED; | ||
|
||
import java.util.EnumSet; | ||
|
||
import org.folio.domain.dto.ItemStatus; | ||
import org.folio.service.AddressTypeService; | ||
import org.folio.service.ConsortiaService; | ||
import org.folio.service.DepartmentService; | ||
import org.folio.service.InventoryService; | ||
import org.folio.service.LocationService; | ||
import org.folio.service.RequestService; | ||
import org.folio.service.ServicePointService; | ||
import org.folio.service.UserGroupService; | ||
import org.folio.service.UserService; | ||
import org.folio.spring.service.SystemUserScopedExecutionService; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Service; | ||
|
||
import lombok.extern.log4j.Log4j2; | ||
|
||
@Service | ||
@Log4j2 | ||
public class SearchSlipsService extends StaffSlipsServiceImpl { | ||
|
||
private static final EnumSet<ItemStatus.NameEnum> ITEM_STATUSES = EnumSet.of( | ||
CHECKED_OUT, AWAITING_DELIVERY, IN_TRANSIT, MISSING, PAGED, ON_ORDER, IN_PROCESS, RESTRICTED); | ||
|
||
@Autowired | ||
public SearchSlipsService(LocationService locationService, InventoryService inventoryService, | ||
RequestService requestService, ConsortiaService consortiaService, | ||
SystemUserScopedExecutionService executionService, UserService userService, | ||
UserGroupService userGroupService, DepartmentService departmentService, | ||
AddressTypeService addressTypeService, ServicePointService servicePointService) { | ||
|
||
super(ITEM_STATUSES, EnumSet.of(OPEN_NOT_YET_FILLED), EnumSet.of(HOLD), locationService, | ||
inventoryService, requestService, consortiaService, executionService, userService, | ||
userGroupService, departmentService, addressTypeService, servicePointService); | ||
} | ||
} |
Oops, something went wrong.