Package org.alfresco.utility.dsl
Interface DSL<Data>
- All Known Implementing Classes:
DataCalendarEvent,DataContent,DataEmail,DataGroup,DataLink,DataSite,DataUser,DataUserAIS,DataWiki,DataWorkflow,DSLProtocol,DSLProtocolWithNetworkDrive,TestData
public interface DSL<Data>
-
Method Summary
Modifier and TypeMethodDescriptiongets the current test usersetCurrentSpace(String currentRepositorySpace) getSitesPath(), getUserHomesPath(),getDataDictionaryPath(), etc If nothing is specified, the root folder is usedDefines the current user to be AdminusingResource(ContentModel model) Defines the current file/folder that is under testDefines the current test site to be usedDefines the current test site to be used based onSiteModelDefines the current test user that will be usedusingUserHome(String username) Defines the current User Home to be used Example: /User Homes/
-
Method Details
-
usingUser
Defines the current test user that will be used- Throws:
Exception
-
usingAdmin
Defines the current user to be Admin- Returns:
- Throws:
Exception
-
getCurrentUser
UserModel getCurrentUser()gets the current test user- Returns:
-
usingRoot
- Returns:
- the rootPath
- Throws:
Exception
-
getCurrentSpace
- Returns:
- the current Repository Space
- Throws:
TestConfigurationException
-
setCurrentSpace
getSitesPath(), getUserHomesPath(),getDataDictionaryPath(), etc If nothing is specified, the root folder is used -
usingResource
Defines the current file/folder that is under test- Parameters:
model-- Returns:
- Throws:
Exception
-
usingSite
Defines the current test site to be used- Parameters:
siteId-- Returns:
- Throws:
Exception
-
usingSite
Defines the current test site to be used based onSiteModel- Parameters:
siteModel-- Returns:
- Throws:
Exception
-
usingUserHome
Defines the current User Home to be used Example: /User Homes/- Parameters:
username-- Returns:
- Throws:
Exception
-
usingUserHome
- Returns:
- the userhome path based on
getCurrentUser() - Throws:
Exception
-
getRootPath
- Returns:
- the root path
- Throws:
TestConfigurationException
-
getSitesPath
- Returns:
- the Sites path Example: /Sites
- Throws:
TestConfigurationException
-
getUserHomesPath
- Returns:
- user home path Example: /User Homes
- Throws:
TestConfigurationException
-
getDataDictionaryPath
- Returns:
- the Data Dictionary path /Data Dictionary
- Throws:
TestConfigurationException
-