Class ProjectAssignmentsApiImpl

Object
ch.aaap.harvestclient.impl.ProjectAssignmentsApiImpl
All Implemented Interfaces:
ProjectAssignmentsApi

public class ProjectAssignmentsApiImpl extends Object implements ProjectAssignmentsApi
  • Constructor Details

  • Method Details

    • list

      public List<ProjectAssignment> list(Reference<User> userReference, Instant updatedSince)
      Description copied from interface: ProjectAssignmentsApi
      List Project Assignment for a User, sorted by creation date, newest first, optionally filtered by updatedSince.
      Specified by:
      list in interface ProjectAssignmentsApi
      Parameters:
      userReference - which user to get the ProjectAssignment for
      updatedSince - If set, return only assignments that have been updated this point in time. If null, no filtering takes place
      Returns:
      a List of ProjectAssignment for the user, filtered accordingly
    • list

      public Pagination<ProjectAssignment> list(Reference<User> userReference, Instant updatedSince, int page, int perPage)
      Description copied from interface: ProjectAssignmentsApi
      List Project Assignment for a User, sorted by creation date, newest first, optionally filtered by updatedSince. Page and perPage allow controlling how many results to return.
      Specified by:
      list in interface ProjectAssignmentsApi
      Parameters:
      userReference - which user to get the ProjectAssignment for
      updatedSince - If set, return only assignments that have been updated this point in time. If null, no filtering takes place
      page - the page number
      perPage - how many results to return for one page. Max 100
      Returns:
      a List of ProjectAssignment for the user, filtered accordingly
    • listSelf

      public List<ProjectAssignment> listSelf()
      Specified by:
      listSelf in interface ProjectAssignmentsApi
      Returns:
      a list of all ProjectAssignment for the current user.
    • listSelf

      public Pagination<ProjectAssignment> listSelf(int page, int perPage)
      Description copied from interface: ProjectAssignmentsApi
      Return a list of all ProjectAssignment for the current user. Page and perPage allow controlling how many results to return.
      Specified by:
      listSelf in interface ProjectAssignmentsApi
      Parameters:
      page - the page number
      perPage - how many results to return for one page. Max 100
      Returns:
      a list of all ProjectAssignment for the current user.