Package org.alfresco.utility.dsl
Class DSLProtocolWithNetworkDrive<Client>
java.lang.Object
org.alfresco.utility.dsl.DSLWrapper<Client>
org.alfresco.utility.dsl.DSLProtocol<Client>
org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<Client>
- All Implemented Interfaces:
DSL<Client>
- Author:
- Paul Brodner Extend this class if you are implementing a protocol that can be used within one mapped network drive see CifsWrapper.java protocol implementation
-
Field Summary
Fields inherited from class org.alfresco.utility.dsl.DSLWrapper
contentService, dataContent, jmxBuilder, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidsetActionExecutedOnMappedDrive(boolean actionExecutedOnMappedDrive) abstract ClientDefine the code for initializing the network drive using your Client protocol public CifsWrapper usingNetworkDrive() throws Exception { if (!cifsNetworkDrive.inOSEnvironment().isNetworkDriveMounted()) cifsNetworkDrive.inOSEnvironment().mount(); setCurrentSpace(cifsNetworkDrive.inOSEnvironment().getLocalVolumePath()); setActionExecutedOnMappedDrive(true); return this; }Methods inherited from class org.alfresco.utility.dsl.DSLProtocol
and, assertThat, authenticateUser, buildPath, buildSiteDocumentLibraryPath, buildUserHomePath, closeJmxConnection, disconnect, getCurrentSpace, getCurrentUser, getDataDictionaryPath, getLastContentModel, getLastResource, getLastResourceWithoutPrefix, getPrefixSpace, getProtocolJMXConfigurationStatus, getProtocolName, getRootPath, getSitesPath, getUserHomesPath, isProtocolEnabled, setCurrentSpace, setLastContentModel, setLastResource, then, usingAdmin, usingResource, usingRoot, usingSite, usingSite, usingUser, usingUserHome, usingUserHome, waitSeconds, whenMethods inherited from class org.alfresco.utility.dsl.DSLWrapper
getDataContentService, getTestUser, setTestUser
-
Constructor Details
-
DSLProtocolWithNetworkDrive
public DSLProtocolWithNetworkDrive()
-
-
Method Details
-
isActionExecutedOnMappedDrive
public boolean isActionExecutedOnMappedDrive() -
setActionExecutedOnMappedDrive
protected void setActionExecutedOnMappedDrive(boolean actionExecutedOnMappedDrive) -
usingNetworkDrive
Define the code for initializing the network drive using your Client protocol public CifsWrapper usingNetworkDrive() throws Exception { if (!cifsNetworkDrive.inOSEnvironment().isNetworkDriveMounted()) cifsNetworkDrive.inOSEnvironment().mount(); setCurrentSpace(cifsNetworkDrive.inOSEnvironment().getLocalVolumePath()); setActionExecutedOnMappedDrive(true); return this; }- Returns:
- Throws:
Exception
-