Package com.testdroid.api.model
Class APIUserFile
java.lang.Object
com.testdroid.api.APIEntity
com.testdroid.api.model.APIUserFile
- All Implemented Interfaces:
Serializable
- Author:
- MichaĆ Szpruta <[email protected]>, Slawomir Pawluk <[email protected]>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Field Summary
FieldsFields inherited from class com.testdroid.api.APIEntity
client, id, OBJECT_MAPPER, parentId, selfURI, XML_MAPPER
-
Constructor Summary
ConstructorsConstructorDescriptionAPIUserFile
(Long id) APIUserFile
(Long id, String name, LocalDateTime createTime, Long size, APIUserFile.State state, String uri, String iconUri, String mimetype, APIUserFile.Direction direction, APIUserFile.InputType inputType, Long userId, String userEmail, boolean isShared) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends APIEntity>
voidclone
(T from) void
delete()
getFile()
getIcon()
getName()
getSize()
getState()
getUri()
boolean
boolean
isShared()
void
setCreateTime
(Date createTime) void
setDirection
(APIUserFile.Direction direction) void
setDirectUrl
(URL directUrl) void
setDuplicate
(boolean duplicate) void
setFileProperties
(List<APIUserFileProperty> fileProperties) void
setIconDirectUrl
(URL iconDirectUrl) void
setIconUri
(String iconUri) void
setInputType
(APIUserFile.InputType inputType) void
setMimetype
(String mimetype) void
void
setShared
(boolean shared) void
void
setState
(APIUserFile.State state) void
void
setUserEmail
(String userEmail) void
waitForVirusScan
(long timeout) static void
waitForVirusScans
(long timeout, APIUserFile... files) static void
waitForVirusScans
(APIUserFile... files) Methods inherited from class com.testdroid.api.APIEntity
cloneBase, createUri, deleteResource, getFile, getId, getListResource, getListResource, getParentId, getResource, getSelfURI, postFile, postResource, refresh, setId, setSelfURI, toJson
-
Field Details
-
VIRUS_SCAN_TIMEOUT_DEFAULT
public static final long VIRUS_SCAN_TIMEOUT_DEFAULT- See Also:
-
-
Constructor Details
-
APIUserFile
public APIUserFile() -
APIUserFile
-
APIUserFile
public APIUserFile(Long id, String name, LocalDateTime createTime, Long size, APIUserFile.State state, String uri, String iconUri, String mimetype, APIUserFile.Direction direction, APIUserFile.InputType inputType, Long userId, String userEmail, boolean isShared)
-
-
Method Details
-
getName
-
setName
-
getCreateTime
-
setCreateTime
-
getSize
-
setSize
-
getFileProperties
-
setFileProperties
-
getState
-
setState
-
getDirectUrl
-
setDirectUrl
-
getUri
-
setUri
-
getMimetype
-
setMimetype
-
getDirection
-
setDirection
-
getInputType
-
setInputType
-
isDuplicate
public boolean isDuplicate() -
setDuplicate
public void setDuplicate(boolean duplicate) -
getIconDirectUrl
-
setIconDirectUrl
-
getUserEmail
-
setUserEmail
-
getUserId
-
setUserId
-
getIconUri
-
setIconUri
-
getIcon
- Throws:
APIException
-
getFile
- Throws:
APIException
-
getTagsResource
- Throws:
APIException
-
delete
- Throws:
APIException
-
waitForVirusScan
- Throws:
APIException
InterruptedException
-
waitForVirusScan
- Throws:
APIException
InterruptedException
-
waitForVirusScans
public static void waitForVirusScans(APIUserFile... files) throws APIException, InterruptedException - Throws:
APIException
InterruptedException
-
waitForVirusScans
public static void waitForVirusScans(long timeout, APIUserFile... files) throws APIException, InterruptedException - Throws:
APIException
InterruptedException
-
clone
-