Package org.alfresco.webdav
Class WebDavWrapper
java.lang.Object
org.alfresco.utility.dsl.DSLWrapper<Client>
org.alfresco.utility.dsl.DSLProtocol<Client>
org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<WebDavWrapper>
org.alfresco.webdav.WebDavWrapper
- All Implemented Interfaces:
org.alfresco.utility.dsl.DSL<WebDavWrapper>,org.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>,org.alfresco.utility.dsl.DSLFile<WebDavWrapper>,org.alfresco.utility.dsl.DSLFolder<WebDavWrapper>
@Service
@Scope("prototype")
public class WebDavWrapper
extends org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<WebDavWrapper>
implements org.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>, org.alfresco.utility.dsl.DSLFolder<WebDavWrapper>, org.alfresco.utility.dsl.DSLFile<WebDavWrapper>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Stringstatic Stringintstatic Stringorg.alfresco.utility.TasPropertiesprotected WebDavNetworkDriveFields inherited from class org.alfresco.utility.dsl.DSLWrapper
contentService, dataContent, jmxBuilder, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAssertion DSL.authenticateUser(org.alfresco.utility.model.UserModel userModel) copyTo(org.alfresco.utility.model.ContentModel destinationModel) createFile(org.alfresco.utility.model.FileModel fileModel) createFolder(org.alfresco.utility.model.FolderModel folderModel) delete()download()Download the last file resource in target folder.List<org.alfresco.utility.model.FileModel>getFiles()List<org.alfresco.utility.model.FolderModel>org.apache.commons.httpclient.HttpClientprotected StringgetResponseHeaderValue(String headerName) Get the response header value for a certain header.lock()Lock filemoveTo(org.alfresco.utility.model.ContentModel destinationModel) unlock()Unlock fileuploadFile(File fileToUpload) Upload a local file to webdav locationusingResource(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
-
tasProperties
@Autowired public org.alfresco.utility.TasProperties tasProperties -
webDavNetworkDrive
-
STEP_PREFIX
-
RESPONSE_HEADER_CONTENT_TYPE
-
RESPONSE_HEADER_CONTENT_DISPOSITION
-
status
public int status
-
-
Constructor Details
-
WebDavWrapper
public WebDavWrapper()
-
-
Method Details
-
authenticateUser
public WebDavWrapper authenticateUser(org.alfresco.utility.model.UserModel userModel) throws Exception - Specified by:
authenticateUserin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
getHttpClient
public org.apache.commons.httpclient.HttpClient getHttpClient() -
disconnect
- Specified by:
disconnectin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
getFiles
- Specified by:
getFilesin interfaceorg.alfresco.utility.dsl.DSLFile<WebDavWrapper>- Throws:
Exception
-
buildPath
- Overrides:
buildPathin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>
-
createFolder
public WebDavWrapper createFolder(org.alfresco.utility.model.FolderModel folderModel) throws Exception - Specified by:
createFolderin interfaceorg.alfresco.utility.dsl.DSLFolder<WebDavWrapper>- Throws:
Exception
-
getFolders
- Specified by:
getFoldersin interfaceorg.alfresco.utility.dsl.DSLFolder<WebDavWrapper>- Throws:
Exception
-
getPrefixSpace
- Specified by:
getPrefixSpacein classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>
-
getProtocolJMXConfigurationStatus
- Specified by:
getProtocolJMXConfigurationStatusin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
usingSite
public WebDavWrapper usingSite(String siteId) throws org.alfresco.utility.exception.TestStepException - Specified by:
usingSitein interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
usingSitein classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
org.alfresco.utility.exception.TestStepException
-
usingSite
- Specified by:
usingSitein interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
usingSitein classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
usingUserHome
- Specified by:
usingUserHomein interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
usingUserHomein classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
usingUserHome
- Specified by:
usingUserHomein interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
usingUserHomein classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
usingRoot
- Specified by:
usingRootin interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Overrides:
usingRootin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
getRootPath
- Specified by:
getRootPathin interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
getRootPathin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getSitesPath
- Specified by:
getSitesPathin interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
getSitesPathin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getUserHomesPath
- Specified by:
getUserHomesPathin interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
getUserHomesPathin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
getDataDictionaryPath
public String getDataDictionaryPath() throws org.alfresco.utility.exception.TestConfigurationException- Specified by:
getDataDictionaryPathin interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
getDataDictionaryPathin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
org.alfresco.utility.exception.TestConfigurationException
-
usingResource
- Specified by:
usingResourcein interfaceorg.alfresco.utility.dsl.DSL<WebDavWrapper>- Specified by:
usingResourcein classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>- Throws:
Exception
-
rename
- Specified by:
renamein interfaceorg.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>- Throws:
Exception
-
update
- Specified by:
updatein interfaceorg.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>- Throws:
Exception
-
delete
- Specified by:
deletein interfaceorg.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>- Throws:
Exception
-
copyTo
public WebDavWrapper copyTo(org.alfresco.utility.model.ContentModel destinationModel) throws Exception - Specified by:
copyToin interfaceorg.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>- Throws:
Exception
-
uploadFile
Upload a local file to webdav location- Parameters:
fileToUpload- a local file stored on the disk- Returns:
- Throws:
Exception
-
moveTo
public WebDavWrapper moveTo(org.alfresco.utility.model.ContentModel destinationModel) throws Exception - Specified by:
moveToin interfaceorg.alfresco.utility.dsl.DSLContentModelAction<WebDavWrapper>- Throws:
Exception
-
overwriteIfExists
-
doNotOverwriteIfExists
-
createFile
- Specified by:
createFilein interfaceorg.alfresco.utility.dsl.DSLFile<WebDavWrapper>- Throws:
Exception
-
assertThat
Assertion DSL. Call this method to see available assertions availableWebDavAssertion- Overrides:
assertThatin classorg.alfresco.utility.dsl.DSLProtocol<WebDavWrapper>
-
withJMX
- Returns:
- JMX DSL for this wrapper
-
withWebDavUtil
-
download
Download the last file resource in target folder. File is deleted after execution.- Returns:
- Throws:
Exception
-
getResponseHeaderValue
Get the response header value for a certain header.- Parameters:
headerName-- Returns:
- Throws:
Exception
-
lock
Lock file- Returns:
- Throws:
Exception
-
unlock
Unlock file- Returns:
- Throws:
Exception
-
usingNetworkDrive
- Specified by:
usingNetworkDrivein classorg.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<WebDavWrapper>- Throws:
Exception
-
unmountNetworkDrive
- Throws:
Exception
-