Class ProjectConverter

java.lang.Object
com.aquima.web.rest.v1.converter.ProjectConverter
All Implemented Interfaces:
IResourceConverter<com.aquima.interactions.foundation.ApplicationID,Project>

public class ProjectConverter extends Object implements IResourceConverter<com.aquima.interactions.foundation.ApplicationID,Project>
Converts ApplicationID to project REST resources.
Since:
9.6
Author:
m.van.tilburg
  • Constructor Details Link icon

    • ProjectConverter Link icon

      public ProjectConverter(IResourceFactory factory, IResourceLinker<Project> linker)
      Parameters:
      factory - the factory used to create project resources
      linker - a linker capable of adding HATEOAS links to project resources
  • Method Details Link icon

    • convert Link icon

      public void convert(com.aquima.interactions.foundation.ApplicationID source, Project result)
      Description copied from interface: IResourceConverter
      Converts a source domain model to a destination REST resource. Also adds HATEOAS links.
      Specified by:
      convert in interface IResourceConverter<com.aquima.interactions.foundation.ApplicationID,Project>
      Parameters:
      source - the source domain model
      result - the destination REST resource
    • convert Link icon

      public List<Project> convert(List<com.aquima.interactions.foundation.ApplicationID> source)
      Description copied from interface: IResourceConverter
      Converts multiple source domain models into destination REST resources. Also adds HATEOAS links to all converted resources.
      Specified by:
      convert in interface IResourceConverter<com.aquima.interactions.foundation.ApplicationID,Project>
      Parameters:
      source - a list of domain models, must not be null
      Returns:
      list of converted REST resources, never null