public class UserAssignmentsApiImpl extends Object implements UserAssignmentsApi
| Constructor and Description |
|---|
UserAssignmentsApiImpl(UserAssignmentService service) |
| Modifier and Type | Method and Description |
|---|---|
UserAssignment |
create(Reference<Project> projectReference,
UserAssignment creationInfo)
Create a new UserAssignment
|
void |
delete(Reference<Project> projectReference,
Reference<UserAssignment> userAssignmentReference)
Delete an existing UserAssignment.
|
UserAssignment |
get(Reference<Project> projectReference,
Reference<UserAssignment> userAssignmentReference)
Return an existing UserAssignment.
|
List<UserAssignment> |
list(Reference<Project> projectReference,
UserAssignmentFilter filter) |
Pagination<UserAssignment> |
list(Reference<Project> projectReference,
UserAssignmentFilter filter,
int page,
int perPage) |
UserAssignment |
update(Reference<Project> projectReference,
Reference<UserAssignment> userAssignmentReference,
UserAssignmentUpdateInfo updateInfo)
Updates the specific UserAssignment by setting the values of the parameters
passed.
|
public UserAssignmentsApiImpl(UserAssignmentService service)
public List<UserAssignment> list(Reference<Project> projectReference, UserAssignmentFilter filter)
list in interface UserAssignmentsApiprojectReference - the project containing the assignmentsfilter - filtering optionspublic Pagination<UserAssignment> list(Reference<Project> projectReference, UserAssignmentFilter filter, int page, int perPage)
list in interface UserAssignmentsApiprojectReference - the project containing the assignmentsfilter - filtering optionspage - the page numberperPage - how many results to return for one page. Max 100public UserAssignment get(Reference<Project> projectReference, Reference<UserAssignment> userAssignmentReference)
UserAssignmentsApiget in interface Api.GetNested<Project,UserAssignment>get in interface UserAssignmentsApiprojectReference - the project containing the assignmentuserAssignmentReference - a reference to an existing UserAssignmentpublic UserAssignment create(Reference<Project> projectReference, UserAssignment creationInfo)
UserAssignmentsApicreate in interface UserAssignmentsApiprojectReference - the project that will contain the assignmentcreationInfo - creation informationpublic UserAssignment update(Reference<Project> projectReference, Reference<UserAssignment> userAssignmentReference, UserAssignmentUpdateInfo updateInfo)
UserAssignmentsApiupdate in interface UserAssignmentsApiprojectReference - the project that contains the assignmentuserAssignmentReference - An existing UserAssignment to be updatedupdateInfo - the changes to be performedpublic void delete(Reference<Project> projectReference, Reference<UserAssignment> userAssignmentReference)
UserAssignmentsApidelete in interface UserAssignmentsApiprojectReference - the project that contains the assignmentuserAssignmentReference - An existing UserAssignment to be deleted