Package ch.aaap.harvestclient.impl
Class ProjectAssignmentsApiImpl
Object
ch.aaap.harvestclient.impl.ProjectAssignmentsApiImpl
- All Implemented Interfaces:
ProjectAssignmentsApi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList Project Assignment for a User, sorted by creation date, newest first, optionally filtered by updatedSince.List Project Assignment for a User, sorted by creation date, newest first, optionally filtered by updatedSince.listSelf()
listSelf
(int page, int perPage) Return a list of all ProjectAssignment for the current user.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.aaap.harvestclient.api.ProjectAssignmentsApi
list
-
Constructor Details
-
ProjectAssignmentsApiImpl
-
-
Method Details
-
list
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 interfaceProjectAssignmentsApi
- Parameters:
userReference
- which user to get the ProjectAssignment forupdatedSince
- 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 interfaceProjectAssignmentsApi
- Parameters:
userReference
- which user to get the ProjectAssignment forupdatedSince
- If set, return only assignments that have been updated this point in time. If null, no filtering takes placepage
- the page numberperPage
- how many results to return for one page. Max 100- Returns:
- a List of ProjectAssignment for the user, filtered accordingly
-
listSelf
- Specified by:
listSelf
in interfaceProjectAssignmentsApi
- Returns:
- a list of all ProjectAssignment for the current user.
-
listSelf
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 interfaceProjectAssignmentsApi
- Parameters:
page
- the page numberperPage
- how many results to return for one page. Max 100- Returns:
- a list of all ProjectAssignment for the current user.
-