| Package | Description |
|---|---|
| org.alfresco.utility | |
| org.alfresco.utility.data | |
| org.alfresco.utility.data.provider | |
| org.alfresco.utility.dsl | |
| org.alfresco.utility.model |
| Modifier and Type | Method and Description |
|---|---|
static File |
Utility.setNewFile(FileModel fileModel)
Get new
File with content based on file model. |
| Modifier and Type | Method and Description |
|---|---|
FileModel |
DataContent.createContent()
It will create a new file in current resource
FileModel newRandomFile = FileModel.getRandomFileModel();
dataContent.usingUser(testUser).usingSite(testSite).createContent(newRandomFile);
|
FileModel |
DataContent.createContent(org.alfresco.dataprep.CMISUtil.DocumentType documentType)
This is the entry point of the createContent() method to make REST API or CMIS call
|
FileModel |
DataContent.createContent(FileModel fileModel)
This is the entry point of the createContent() method to make REST API or CMIS call
|
FileModel |
DataContent.createContentCmisApi(FileModel fileModel)
Creates a random document based on
CMISUtil.DocumentType passed using CMIS
Return the Document object on success creation
dataContent.usingSite(site).createContent(sourceFile);
|
FileModel |
DataContent.createContentDocTypeCmisApi(org.alfresco.dataprep.CMISUtil.DocumentType documentType)
Creates a random document based on
CMISUtil.DocumentType passed using CMIS
Return the Document object on success creation
dataContent.usingUser(userModel).usingResource(myFolder).createContent(DocumentType.TEXT_PLAIN);
|
FileModel |
DataContent.createContentDocTypeV1Api(org.alfresco.dataprep.AlfrescoHttpClient client,
FileModel fileModel,
org.alfresco.dataprep.CMISUtil.DocumentType documentType)
Creates a random document based on
CMISUtil.DocumentType passed using REST API
Return the Document object on success creation
dataContent.usingUser(userModel).usingResource(myFolder).createContent(DocumentType.TEXT_PLAIN);
|
FileModel |
DataContent.createContentV1Api(org.alfresco.dataprep.AlfrescoHttpClient client,
FileModel fileModel)
Creates a file using REST API
Return the
FileModel object on success creation |
FileModel |
DataContent.getCustomModel()
Returns customModel file is one exists or is deployed using deployContentModel
otherwise null
|
| Modifier and Type | Method and Description |
|---|---|
void |
DataContent.addFileToFavorites(FileModel file)
Add file to favorites
|
FileModel |
DataContent.createContent(FileModel fileModel)
This is the entry point of the createContent() method to make REST API or CMIS call
|
FileModel |
DataContent.createContentCmisApi(FileModel fileModel)
Creates a random document based on
CMISUtil.DocumentType passed using CMIS
Return the Document object on success creation
dataContent.usingSite(site).createContent(sourceFile);
|
FileModel |
DataContent.createContentDocTypeV1Api(org.alfresco.dataprep.AlfrescoHttpClient client,
FileModel fileModel,
org.alfresco.dataprep.CMISUtil.DocumentType documentType)
Creates a random document based on
CMISUtil.DocumentType passed using REST API
Return the Document object on success creation
dataContent.usingUser(userModel).usingResource(myFolder).createContent(DocumentType.TEXT_PLAIN);
|
FileModel |
DataContent.createContentV1Api(org.alfresco.dataprep.AlfrescoHttpClient client,
FileModel fileModel)
Creates a file using REST API
Return the
FileModel object on success creation |
void |
DataContent.updateContent(org.alfresco.dataprep.AlfrescoHttpClient client,
FileModel fileModel)
This method updates the content of the created document
|
void |
DataContent.updateContent(org.alfresco.dataprep.AlfrescoHttpClient client,
FileModel fileModel,
org.alfresco.dataprep.CMISUtil.DocumentType documentType)
This method updates the content of the created document
|
| Modifier and Type | Method and Description |
|---|---|
FileModel |
XMLFileData.getModel() |
| Modifier and Type | Method and Description |
|---|---|
List<FileModel> |
DSLFile.getFiles() |
| Modifier and Type | Method and Description |
|---|---|
Protocol |
DSLFile.createFile(FileModel fileModel) |
| Modifier and Type | Field and Description |
|---|---|
protected List<FileModel> |
FolderModel.files |
| Modifier and Type | Method and Description |
|---|---|
FileModel |
FileModel.cloneAsWorkingCopy()
Clone file model to working copy.
|
FileModel |
FolderModel.generateRandomFileChild(FileType fileType)
This will generate and add to
FolderModel.getFiles() array the children files |
static FileModel |
FileModel.getFileModelBasedOnTestDataFile(String resourceDataFile)
This will generate a new FileModel having one existing file from src/main/resources/shared-data location
|
static FileModel |
FileModel.getFileModelWithContentSizeOfxMB(int size)
Create a FileModel with content size of MB
e.g.: getFileModelWithContentSizeOfxMB(1) will return a FileModel with a content of 1 MB
|
static FileModel |
FileModel.getRandomFileModel(FileType fileType)
Generates a new random
FileModel object |
static FileModel |
FileModel.getRandomFileModel(FileType fileType,
String content)
Generates a new random
FileModel object with content |
FileModel |
FolderModel.lastFile() |
| Modifier and Type | Method and Description |
|---|---|
List<FileModel> |
FolderModel.getFiles() |
| Modifier and Type | Method and Description |
|---|---|
void |
FolderModel.setFiles(List<FileModel> files) |
| Constructor and Description |
|---|
FileModel(FileModel originalFile) |
Copyright © 2005–2019 Alfresco Software. All rights reserved.