ms-bcp-calltree-contact-service's People
ms-bcp-calltree-contact-service's Issues
ContactService - getCalltreeUntilRole
@Override public List<ContactDto> getCalltreeUntilRole(Role role) { return null; }
Return a list of contactDtos for all contacts with a role up to the given role
ContactService - getAllSelectedRole
@Override
public List<ContactDto> getAllSelectedRole(Role role) {
return null;
}
Given a role, return all contacts in the repository with that role
ContactService - saveList
@Override public List<ContactDto> saveList(List<ContactDto> dtoList) { return null; }
Given a list of ContactDTOs, save them and return the saved list
Create ContactRepository
Possibly we would need JpaRepository, as we will be using few methods from this class and also create some new, just to mimic the old repository in the old application
ContactService - deleteContact
`@Override
public void deleteContact(Long id) {
}`
Delete the contact from the repo with the given id
ContactService - saveOrUpdate
@Override public ContactDto saveOrUpdate(ContactDto contactDto) { return null; }
If the given contactDTO is not in the db then make a new one
if it is in the DB then update it with the given values
Create a REST controller
This controller most likely will look like the original one
Create Contact model and DTO
First of all we would need to extract the same information from the V.1 of BCP Calltree.
In this microservice we need the Contact to begin with, plus create a mapper using MapStruct and a Contact DTO
ContactService - getAllContacts
@Override public List<ContactDto> getAllContacts(@Nullable String orderDirection, @Nullable String orderByValue, @Nullable Integer page, @Nullable Integer size) { return null; }
Return all Contacts in the DB, this can be sorted depending on the input parameters
ContactService - fetchManyContactsById
@Override
public List<ContactDto> fetchManyContactsById(long[] id) {
return null;
}
Return a list of Contact DTOs that match the given ids
ContactService - fetchContactByPhoneNumber
public ContactDto fetchContactByPhoneNumber(String string) {
return null;
}
Given a phone number, return the contactDTO for the contact in the db with that number
Contact Service - getAllSelectedRole
@Override
public List<ContactDto> getAllSelectedRole(Role role) {
return null;
}
Return a list of ContactDtos from the repository that match the role passed in
Create Service
We need a ContactService to expose the CRUD operations. Potentially we can have a look at the existing service in the old project and grab some methods too
ContactService - getNumContacts
@Override public Integer getNumContacts() { return null; }
Return the total number of contacts in the repo
ContactService - getContact
@Override public ContactDto getContact(Long id) { return null; }
Given an ID find and return the ContactDTO for the contact with that ID
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.