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>
public abstract class DSLProtocolWithNetworkDrive<Client> extends DSLProtocol<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 Constructor Description DSLProtocolWithNetworkDrive()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisActionExecutedOnMappedDrive()protected voidsetActionExecutedOnMappedDrive(boolean actionExecutedOnMappedDrive)abstract ClientusingNetworkDrive()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; }-
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, when
-
Methods inherited from class org.alfresco.utility.dsl.DSLWrapper
getDataContentService, getTestUser, setTestUser
-
-
-
-
Method Detail
-
isActionExecutedOnMappedDrive
public boolean isActionExecutedOnMappedDrive()
-
setActionExecutedOnMappedDrive
protected void setActionExecutedOnMappedDrive(boolean actionExecutedOnMappedDrive)
-
usingNetworkDrive
public abstract Client usingNetworkDrive() throws java.lang.Exception
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:
java.lang.Exception
-
-