@Service public class ContractService extends AbstractRestService
| Constructor and Description |
|---|
ContractService(ContractRepository contractRepository) |
| Modifier and Type | Method and Description |
|---|---|
Contract |
convertFromView(Integer tenantId,
ContractView contractView) |
Contract |
createContract(Integer tenantId,
ContractView contractView) |
Boolean |
deleteContract(Integer tenantId,
Long id) |
Contract |
getContract(Integer tenantId,
Long id) |
List<Contract> |
getContractList(Integer tenantId) |
Contract |
updateContract(Integer tenantId,
ContractView contractView) |
validateTenantIdParameterpublic ContractService(ContractRepository contractRepository)
public Contract convertFromView(Integer tenantId, ContractView contractView)
@Transactional public Contract createContract(Integer tenantId, ContractView contractView)
@Transactional public Contract updateContract(Integer tenantId, ContractView contractView)
Copyright © 2017–2020 JBoss by Red Hat. All rights reserved.