Package org.alfresco.rest.model
Class RestFileModel
java.lang.Object
org.alfresco.utility.model.TestModel
org.alfresco.rest.model.RestFileModel
- All Implemented Interfaces:
IModelAssertion<RestFileModel>,IRestModel<RestFileModel>,org.alfresco.utility.model.Model
public class RestFileModel
extends org.alfresco.utility.model.TestModel
implements IRestModel<RestFileModel>
Handles single Folder JSON responses
Example:
"createdAt": "2016-10-03T09:48:52.385+0000",
"sizeInBytes": 19,
"versionLabel": "1.0",
"createdBy": "admin",
"modifiedAt": "2016-10-03T09:48:52.385+0000",
"name": "file-OUQAyqdsNi.txt",
"guid": "00f6b250-a841-4ff6-b660-5b45cee30497",
"modifiedBy": "admin",
"mimeType": "text/plain",
"id": "00f6b250-a841-4ff6-b660-5b45cee30497"
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuid()getId()booleanbooleangetName()getPath()onModel()voidsetContent(RestContentModel content) voidsetCreatedAt(String createdAt) voidsetCreatedBy(String createdBy) voidsetCreatedByUser(RestByUserModel createdByUser) voidvoidvoidsetIsFile(boolean isFile) voidsetIsFolder(boolean isFolder) voidsetMimeType(String mimeType) voidsetModifiedAt(String modifiedAt) voidsetModifiedBy(String modifiedBy) voidsetModifiedByUser(RestByUserModel modifiedByUser) voidvoidsetParentId(String parentId) voidsetPath(RestPathModel path) voidsetSizeInBytes(String sizeInBytes) voidsetVersionLabel(String versionLabel) Methods inherited from class org.alfresco.utility.model.TestModel
setRandomValuesForAllFields, toInfo, toJson, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.alfresco.rest.core.assertion.IModelAssertion
and, assertThat
-
Field Details
-
createdAt
-
sizeInBytes
-
versionLabel
-
createdBy
-
modifiedAt
-
name
-
guid
-
modifiedBy
-
mimeType
-
id
-
-
Constructor Details
-
RestFileModel
public RestFileModel()
-
-
Method Details
-
onModel
- Specified by:
onModelin interfaceIRestModel<RestFileModel>
-
getCreatedAt
-
setCreatedAt
-
getSizeInBytes
-
setSizeInBytes
-
getVersionLabel
-
setVersionLabel
-
getCreatedBy
-
setCreatedBy
-
getModifiedBy
-
setModifiedBy
-
getModifiedAt
-
setModifiedAt
-
getGuid
-
setGuid
-
getId
-
setId
-
getName
-
setName
-
getMimeType
-
setMimeType
-
getIsFile
public boolean getIsFile() -
setIsFile
public void setIsFile(boolean isFile) -
getCreatedByUser
-
setCreatedByUser
-
getModifiedByUser
-
setModifiedByUser
-
getContent
-
setContent
-
getParentId
-
setParentId
-
getIsFolder
public boolean getIsFolder() -
setIsFolder
public void setIsFolder(boolean isFolder) -
getPath
-
setPath
-