Class SerialFilesCreator
java.lang.Object
org.alfresco.rest.repo.resource.general.MultipleResourcesCreator<CONTENT,SELF>
org.alfresco.rest.repo.resource.general.MultipleContentsCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
org.alfresco.rest.repo.resource.content.SerialFilesCreator
- All Implemented Interfaces:
MultiCreator<org.alfresco.utility.model.FileModel,,MultiCreator.FilesCreator> MultiCreator.ContentsCreator<org.alfresco.utility.model.FileModel,,MultiCreator.FilesCreator> MultiCreator.FilesCreator
public class SerialFilesCreator
extends MultipleContentsCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
implements MultiCreator.FilesCreator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.rest.repo.resource.general.MultiCreator
MultiCreator.CategoriesCreator, MultiCreator.ContentsCreator<MODEL extends org.alfresco.utility.model.ContentModel,SELF extends MultiCreator.ContentsCreator<MODEL, ?>>, MultiCreator.FilesCreator, MultiCreator.FoldersCreator -
Field Summary
Fields inherited from class org.alfresco.rest.repo.resource.general.MultipleContentsCreator
descriptions, parent, site, titles, userFields inherited from class org.alfresco.rest.repo.resource.general.MultipleResourcesCreator
aliases, names -
Constructor Summary
ConstructorsConstructorDescriptionSerialFilesCreator(org.alfresco.utility.data.DataContent dataContent, Map<String, org.alfresco.utility.model.FileModel> filesCache) -
Method Summary
Modifier and TypeMethodDescriptionList<org.alfresco.utility.model.FileModel>create()protected org.alfresco.utility.model.FileModelcreateFile(String fileName, org.alfresco.utility.model.FileType fileType, String title, String description, String fileContent, org.alfresco.utility.model.FolderModel parent, String alias) protected Stringprotected StringgenerateRandomNameWith(String prefix) ofTypes(org.alfresco.utility.model.FileType... fileTypes) protected MultiCreator.FilesCreatorself()protected voidwithContents(List<String> filesContents) withRandomContents(int wordsCount, int wordsMaxLength) Methods inherited from class org.alfresco.rest.repo.resource.general.MultipleContentsCreator
underFolder, withDescriptions, withinSite, withRandomDescriptions, withRandomTitles, withTitlesMethods inherited from class org.alfresco.rest.repo.resource.general.MultipleResourcesCreator
asUser, buildNodeRestRequest, generateRandomNameWith, getOrNull, withNames, withRandomNames, withRandomNames, withRandomNamesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.rest.repo.resource.general.MultiCreator
asUser, withNamesMethods inherited from interface org.alfresco.rest.repo.resource.general.MultiCreator.ContentsCreator
underFolder, withDescriptions, withinSite, withRandomDescriptions, withRandomTitles, withTitlesMethods inherited from interface org.alfresco.rest.repo.resource.general.MultiCreator.FilesCreator
withRandomContents
-
Constructor Details
-
SerialFilesCreator
-
-
Method Details
-
self
- Specified by:
selfin classMultipleResourcesCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
-
ofTypes
- Specified by:
ofTypesin interfaceMultiCreator.FilesCreator
-
withContents
- Specified by:
withContentsin interfaceMultiCreator.FilesCreator
-
withRandomContents
- Specified by:
withRandomContentsin interfaceMultiCreator.FilesCreator
-
create
- Specified by:
createin interfaceMultiCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
-
verifyDataConsistency
protected void verifyDataConsistency()- Overrides:
verifyDataConsistencyin classMultipleContentsCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
-
generateRandomName
- Overrides:
generateRandomNamein classMultipleResourcesCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
-
generateRandomNameWith
- Overrides:
generateRandomNameWithin classMultipleResourcesCreator<org.alfresco.utility.model.FileModel,MultiCreator.FilesCreator>
-
createFile
-