Package com.testdroid.api.model
Class APIUser
java.lang.Object
com.testdroid.api.APIEntity
com.testdroid.api.model.APIUser
- Author:
- Ćukasz Kajda <[email protected]>, Slawomir Pawluk <[email protected]>
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.testdroid.api.APIEntity
client, id, OBJECT_MAPPER, parentId, selfURI, XML_MAPPER
-
Constructor Summary
ConstructorDescriptionAPIUser()
APIUser
(Long id, Long accountId, String email, String firstName, String lastName, String state, String country, String city, String code, String address, String phone, String organization, String timeZone, LocalDateTime createTime, LocalDateTime deleteTime, LocalDateTime lastLoginTime, LocalDateTime lastLaunchedTestTime, Boolean isMainUser, Long mainUserId, String mainUserEmail, String apiKey, APIUser.Status status, Long createdById, String createdByEmail, APIUser.MfaStatus mfaStatus, String registrationIP) APIUser
(Long id, String email, String firstName, String lastName, LocalDateTime createTime, LocalDateTime deleteTime, APIUser.Status status) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends APIEntity>
voidclone
(T from) createDeviceGroup
(String displayName, APIDevice.OsType osType) createProject
(String name) getCity()
getCode()
getDeviceGroupsResource
(Context<APIDeviceGroup> context) getEmail()
getNotification
(Long id) getNotificationsResource
(Context<APINotification> context) getPhone()
getProject
(Long id) getProjectsResource
(Context<APIProject> context) getRoles()
getState()
void
setAccountId
(Long accountId) void
setAccountOwners
(Collection<APIUser> accountOwners) void
setAccountServiceIds
(List<Long> accountServiceIds) void
setAddress
(String address) void
void
void
void
setCountry
(String country) void
setCreatedByEmail
(String createdByEmail) void
setCreatedById
(Long createdById) void
setCreateTime
(Date createTime) void
setDeleteTime
(Date deleteTime) void
setEnabled
(boolean enabled) void
setFirstName
(String firstName) void
setIsMainUser
(Boolean isMainUser) void
setLastLaunchedTestTime
(Date lastLaunchedTestTime) void
setLastLoginTime
(Date lastLoginTime) void
setLastName
(String lastName) void
setMainUserEmail
(String mainUserEmail) void
setMainUserId
(Long mainUserId) void
setMfaQRCodeUrl
(String mfaQRCodeUrl) void
setMfaStatus
(APIUser.MfaStatus mfaStatus) void
setOrganization
(String organization) void
void
setRegistrationIP
(String registrationIP) void
void
setServiceIds
(List<Long> serviceIds) void
void
setStatus
(APIUser.Status status) void
setTimeZone
(String timeZone) startTestRun
(APITestRunConfig config) void
update()
updateDeviceSession
(String sessionId, String name, String clientSideId, APIDeviceSession.State state) uploadFile
(File file) Methods inherited from class com.testdroid.api.APIEntity
cloneBase, createUri, deleteResource, getFile, getId, getListResource, getListResource, getParentId, getResource, getSelfURI, postFile, postResource, refresh, setId, setSelfURI, toJson
-
Constructor Details
-
APIUser
public APIUser() -
APIUser
public APIUser(Long id, String email, String firstName, String lastName, LocalDateTime createTime, LocalDateTime deleteTime, APIUser.Status status) -
APIUser
public APIUser(Long id, Long accountId, String email, String firstName, String lastName, String state, String country, String city, String code, String address, String phone, String organization, String timeZone, LocalDateTime createTime, LocalDateTime deleteTime, LocalDateTime lastLoginTime, LocalDateTime lastLaunchedTestTime, Boolean isMainUser, Long mainUserId, String mainUserEmail, String apiKey, APIUser.Status status, Long createdById, String createdByEmail, APIUser.MfaStatus mfaStatus, String registrationIP)
-
-
Method Details
-
getEmail
-
setEmail
-
getFirstName
-
setFirstName
-
getLastName
-
setLastName
-
getState
-
setState
-
getCountry
-
setCountry
-
getCity
-
setCity
-
getCode
-
setCode
-
getAddress
-
setAddress
-
getPhone
-
setPhone
-
getOrganization
-
setOrganization
-
getTimeZone
-
setTimeZone
-
isEnabled
-
setEnabled
public void setEnabled(boolean enabled) -
getIsMainUser
-
setIsMainUser
-
getRoles
-
setRoles
-
getCreateTime
-
setCreateTime
-
getStatus
-
setStatus
-
getLastLoginTime
-
setLastLoginTime
-
getLastLaunchedTestTime
-
setLastLaunchedTestTime
-
getMainUserId
-
setMainUserId
-
getMainUserEmail
-
setMainUserEmail
-
getCreatedById
-
setCreatedById
-
getCreatedByEmail
-
setCreatedByEmail
-
getAccountId
-
setAccountId
-
getApiKey
-
setApiKey
-
getDeleteTime
-
setDeleteTime
-
getServiceIds
-
setServiceIds
-
getAccountServiceIds
-
setAccountServiceIds
-
setMfaQRCodeUrl
-
getMfaQRCodeUrl
-
getMfaStatus
-
setMfaStatus
-
getRegistrationIP
-
setRegistrationIP
-
setAccountOwners
-
getAccountOwners
-
createProject
- Throws:
APIException
-
update
- Throws:
APIException
-
startTestRun
- Throws:
APIException
-
validateTestRunConfig
- Throws:
APIException
-
uploadFile
- Throws:
APIException
-
getFile
- Throws:
APIException
-
getNotificationsResource
- Throws:
APIException
-
getNotificationsResource
public APIListResource<APINotification> getNotificationsResource(Context<APINotification> context) throws APIException - Throws:
APIException
-
getNotification
- Throws:
APIException
-
getProjectsResource
- Throws:
APIException
-
getProjectsResource
public APIListResource<APIProject> getProjectsResource(Context<APIProject> context) throws APIException - Throws:
APIException
-
getProject
- Throws:
APIException
-
getDeviceGroupsResource
- Throws:
APIException
-
getDeviceGroupsResource
public APIListResource<APIDeviceGroup> getDeviceGroupsResource(Context<APIDeviceGroup> context) throws APIException - Throws:
APIException
-
getAvailableFrameworksResource
public APIListResource<APIFramework> getAvailableFrameworksResource(Context<APIFramework> context) throws APIException - Throws:
APIException
-
createDeviceGroup
public APIDeviceGroup createDeviceGroup(String displayName, APIDevice.OsType osType) throws APIException - Throws:
APIException
-
updateDeviceSession
public APIDeviceSession updateDeviceSession(String sessionId, String name, String clientSideId, APIDeviceSession.State state) throws APIException - Throws:
APIException
-
clone
-