Uses of Class
org.alfresco.utility.model.FileModel
Packages that use FileModel
Package
Description
-
Uses of FileModel in org.alfresco.utility
Methods in org.alfresco.utility with parameters of type FileModelModifier and TypeMethodDescriptionstatic FileUtility.setNewFile(FileModel fileModel) Get newFilewith content based on file model. -
Uses of FileModel in org.alfresco.utility.data
Methods in org.alfresco.utility.data that return FileModelModifier and TypeMethodDescriptionDataContent.createContent()It will create a new file in current resourceFileModel newRandomFile = FileModel.getRandomFileModel(); dataContent.usingUser(testUser).usingSite(testSite).createContent(newRandomFile);DataContent.createContent(org.alfresco.dataprep.CMISUtil.DocumentType documentType) This is the entry point of the createContent() method to make REST API or CMIS callDataContent.createContent(FileModel fileModel) This is the entry point of the createContent() method to make REST API or CMIS callDataContent.createContentCmisApi(FileModel fileModel) Creates a random document based onCMISUtil.DocumentTypepassed using CMIS Return theDocumentobject on success creationdataContent.usingSite(site).createContent(sourceFile);DataContent.createContentDocTypeCmisApi(org.alfresco.dataprep.CMISUtil.DocumentType documentType) Creates a random document based onCMISUtil.DocumentTypepassed using CMIS Return theDocumentobject on success creationdataContent.usingUser(userModel).usingResource(myFolder).createContent(DocumentType.TEXT_PLAIN);DataContent.createContentDocTypeV1Api(org.alfresco.dataprep.AlfrescoHttpClient client, FileModel fileModel, org.alfresco.dataprep.CMISUtil.DocumentType documentType) Creates a random document based onCMISUtil.DocumentTypepassed using REST API Return theDocumentobject on success creationdataContent.usingUser(userModel).usingResource(myFolder).createContent(DocumentType.TEXT_PLAIN);DataContent.createContentV1Api(org.alfresco.dataprep.AlfrescoHttpClient client, FileModel fileModel) Creates a file using REST API Return theFileModelobject on success creationDataContent.getCustomModel()Returns customModel file is one exists or is deployed using deployContentModel otherwise nullDataContent.uploadDocument(File fileToUpload) Methods in org.alfresco.utility.data with parameters of type FileModelModifier and TypeMethodDescriptionvoidDataContent.addFileToFavorites(FileModel file) Add file to favoritesDataContent.createContent(FileModel fileModel) This is the entry point of the createContent() method to make REST API or CMIS callDataContent.createContentCmisApi(FileModel fileModel) Creates a random document based onCMISUtil.DocumentTypepassed using CMIS Return theDocumentobject on success creationdataContent.usingSite(site).createContent(sourceFile);DataContent.createContentDocTypeV1Api(org.alfresco.dataprep.AlfrescoHttpClient client, FileModel fileModel, org.alfresco.dataprep.CMISUtil.DocumentType documentType) Creates a random document based onCMISUtil.DocumentTypepassed using REST API Return theDocumentobject on success creationdataContent.usingUser(userModel).usingResource(myFolder).createContent(DocumentType.TEXT_PLAIN);DataContent.createContentV1Api(org.alfresco.dataprep.AlfrescoHttpClient client, FileModel fileModel) Creates a file using REST API Return theFileModelobject on success creationvoidDataContent.updateContent(org.alfresco.dataprep.AlfrescoHttpClient client, FileModel fileModel) This method updates the content of the created documentvoidDataContent.updateContent(org.alfresco.dataprep.AlfrescoHttpClient client, FileModel fileModel, org.alfresco.dataprep.CMISUtil.DocumentType documentType) This method updates the content of the created document -
Uses of FileModel in org.alfresco.utility.data.provider
Methods in org.alfresco.utility.data.provider that return FileModel -
Uses of FileModel in org.alfresco.utility.dsl
Methods in org.alfresco.utility.dsl that return types with arguments of type FileModelMethods in org.alfresco.utility.dsl with parameters of type FileModel -
Uses of FileModel in org.alfresco.utility.model
Fields in org.alfresco.utility.model with type parameters of type FileModelMethods in org.alfresco.utility.model that return FileModelModifier and TypeMethodDescriptionFileModel.cloneAsWorkingCopy()Clone file model to working copy.FolderModel.generateRandomFileChild(FileType fileType) This will generate and add toFolderModel.getFiles()array the children filesstatic FileModelFileModel.getFileModelBasedOnTestDataFile(String resourceDataFile) This will generate a new FileModel having one existing file from src/main/resources/shared-data locationstatic FileModelFileModel.getFileModelWithContentSizeOfxMB(int size) Create a FileModel with content size of MB e.g.: getFileModelWithContentSizeOfxMB(1) will return a FileModel with a content of 1 MBstatic FileModelFileModel.getRandomFileModel(FileType fileType) Generates a new randomFileModelobjectstatic FileModelFileModel.getRandomFileModel(FileType fileType, String content) Generates a new randomFileModelobject with contentFolderModel.lastFile()Methods in org.alfresco.utility.model that return types with arguments of type FileModelMethod parameters in org.alfresco.utility.model with type arguments of type FileModelConstructors in org.alfresco.utility.model with parameters of type FileModel