Package org.alfresco.aos
Class AOSWrapper
java.lang.Object
org.alfresco.utility.dsl.DSLWrapper<Client>
org.alfresco.utility.dsl.DSLProtocol<Client>
org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<AOSWrapper>
org.alfresco.aos.AOSWrapper
- All Implemented Interfaces:
org.alfresco.utility.dsl.DSL<AOSWrapper>,org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>,org.alfresco.utility.dsl.DSLFile<AOSWrapper>,org.alfresco.utility.dsl.DSLFolder<AOSWrapper>
@Service
@Scope("prototype")
public class AOSWrapper
extends org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<AOSWrapper>
implements org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>, org.alfresco.utility.dsl.DSLFolder<AOSWrapper>, org.alfresco.utility.dsl.DSLFile<AOSWrapper>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.alfresco.utility.dsl.DSLWrapper
contentService, jmxBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method will add a new page for Word Documents, a new sheet for Excel Documents and a new slide for PowerPoint DocumentsAssertion DSL.authenticateUser(org.alfresco.utility.model.UserModel userModel) copyTo(org.alfresco.utility.model.ContentModel destination) createFile(org.alfresco.utility.model.FileModel fileModel) createFolder(org.alfresco.utility.model.FolderModel folderModel) delete()deleteContent(String content) getContent(String filePath) org.alfresco.utility.model.FileModelList<org.alfresco.utility.model.FileModel>getFiles()org.alfresco.utility.model.FileTypeList<org.alfresco.utility.model.FolderModel>protected StringhttpMoveTo(org.alfresco.utility.model.ContentModel destination) moveTo(org.alfresco.utility.model.ContentModel destination) voidsetAosLocation(String aosLocation) voidsetDefaultFileContent(String content) voidsetFileModel(org.alfresco.utility.model.FileModel fileModel) voidsetFileType(org.alfresco.utility.model.FileType fileType) updateContent(String resourcePath, String content, AOSWrapper.Content contentAction) usingResource(org.alfresco.utility.model.ContentModel model) usingSite(org.alfresco.utility.model.SiteModel siteModel) usingUserHome(String username) withJMX()Methods inherited from class org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive
isActionExecutedOnMappedDrive, setActionExecutedOnMappedDriveMethods inherited from class org.alfresco.utility.dsl.DSLProtocol
and, buildSiteDocumentLibraryPath, buildUserHomePath, closeJmxConnection, getCurrentSpace, getCurrentUser, getLastContentModel, getLastResource, getLastResourceWithoutPrefix, getProtocolName, isProtocolEnabled, setCurrentSpace, setLastContentModel, setLastResource, then, usingAdmin, usingUser, waitSeconds, whenMethods inherited from class org.alfresco.utility.dsl.DSLWrapper
getDataContentService, getTestUser, setTestUser
-
Field Details
-
status
public int status
-
-
Constructor Details
-
AOSWrapper
public AOSWrapper()
-
-
Method Details
-
withNetworkDrive
-
withAosUtil
-
createFile
- Specified by:
createFilein interfaceorg.alfresco.utility.dsl.DSLFile<AOSWrapper>- Throws:
Exception
-
createFolder
- Specified by:
createFolderin interfaceorg.alfresco.utility.dsl.DSLFolder<AOSWrapper>- Throws:
Exception
-
getFiles
- Specified by:
getFilesin interfaceorg.alfresco.utility.dsl.DSLFile<AOSWrapper>- Throws:
Exception
-
getFolders
- Specified by:
getFoldersin interfaceorg.alfresco.utility.dsl.DSLFolder<AOSWrapper>- Throws:
Exception
-
rename
- Specified by:
renamein interfaceorg.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>- Throws:
Exception
-
update
- Specified by:
updatein interfaceorg.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>- Throws:
Exception
-
deleteContent
- Throws:
Exception
-
buildPath
- Overrides:
buildPathin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
-
delete
- Specified by:
deletein interfaceorg.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>- Throws:
Exception
-
copyTo
- Specified by:
copyToin interfaceorg.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>- Throws:
Exception
-
updateContent
public AOSWrapper updateContent(String resourcePath, String content, AOSWrapper.Content contentAction) throws FileNotFoundException, IOException - Throws:
FileNotFoundExceptionIOException
-
addNewDocumentPage
public AOSWrapper addNewDocumentPage() throws IOException, org.alfresco.utility.exception.TestConfigurationExceptionThis method will add a new page for Word Documents, a new sheet for Excel Documents and a new slide for PowerPoint Documents- Returns:
- Throws:
IOExceptionorg.alfresco.utility.exception.TestConfigurationException
-
moveTo
- Specified by:
moveToin interfaceorg.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>- Throws:
Exception
-
httpMoveTo
public AOSWrapper httpMoveTo(org.alfresco.utility.model.ContentModel destination) throws IOException - Throws:
IOException
-
getProtocolJMXConfigurationStatus
- Specified by:
getProtocolJMXConfigurationStatusin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
authenticateUser
- Specified by:
authenticateUserin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
disconnect
- Specified by:
disconnectin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
usingSite
- Specified by:
usingSitein interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
usingSitein classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
usingSite
- Specified by:
usingSitein interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
usingSitein classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
usingRoot
public AOSWrapper usingRoot() throws org.alfresco.utility.exception.TestConfigurationException, Exception- Specified by:
usingRootin interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Overrides:
usingRootin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationExceptionException
-
usingUserHome
- Specified by:
usingUserHomein interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
usingUserHomein classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
usingUserHome
- Specified by:
usingUserHomein interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
usingUserHomein classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
getRootPath
- Specified by:
getRootPathin interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
getRootPathin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getSitesPath
- Specified by:
getSitesPathin interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
getSitesPathin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getUserHomesPath
- Specified by:
getUserHomesPathin interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
getUserHomesPathin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getDataDictionaryPath
public String getDataDictionaryPath() throws org.alfresco.utility.exception.TestConfigurationException- Specified by:
getDataDictionaryPathin interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
getDataDictionaryPathin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getPrefixSpace
- Specified by:
getPrefixSpacein classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
-
usingResource
- Specified by:
usingResourcein interfaceorg.alfresco.utility.dsl.DSL<AOSWrapper>- Specified by:
usingResourcein classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>- Throws:
Exception
-
assertThat
Assertion DSL. Call this method to see available assertions availableAOSAssertion- Overrides:
assertThatin classorg.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
-
withJMX
- Returns:
- JMX DSL for this wrapper
-
usingNetworkDrive
- Specified by:
usingNetworkDrivein classorg.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<AOSWrapper>- Throws:
Exception
-
unmountNetworkDrive
- Throws:
Exception
-
getContent
public String getContent(String filePath) throws org.alfresco.utility.exception.TestConfigurationException, IOException - Throws:
org.alfresco.utility.exception.TestConfigurationExceptionIOException
-
getDefaultFileContent
-
setDefaultFileContent
-
setFileModel
public void setFileModel(org.alfresco.utility.model.FileModel fileModel) -
getFileModel
public org.alfresco.utility.model.FileModel getFileModel() -
getFileType
public org.alfresco.utility.model.FileType getFileType() -
setFileType
public void setFileType(org.alfresco.utility.model.FileType fileType) -
getAosLocation
-
setAosLocation
-
checkOutDocument
- Throws:
InterruptedException
-
cancelCheckOutDocument
- Throws:
InterruptedException
-