Giter VIP home page Giter VIP logo

ms-bcp-calltree-contact-service's People

Contributors

alessandroarosio avatar johnlennox avatar

Watchers

 avatar John avatar  avatar

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 - 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 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

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 - 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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.