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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCurrentSpace()UserModelgetCurrentUser()gets the current test userjava.lang.StringgetDataDictionaryPath()java.lang.StringgetRootPath()java.lang.StringgetSitesPath()java.lang.StringgetUserHomesPath()DatasetCurrentSpace(java.lang.String currentRepositorySpace)getSitesPath(), getUserHomesPath(),getDataDictionaryPath(), etc If nothing is specified, the root folder is usedDatausingAdmin()Defines the current user to be AdminDatausingResource(ContentModel model)Defines the current file/folder that is under testDatausingRoot()DatausingSite(java.lang.String siteId)Defines the current test site to be usedDatausingSite(SiteModel siteModel)Defines the current test site to be used based onSiteModelDatausingUser(UserModel user)Defines the current test user that will be usedDatausingUserHome()DatausingUserHome(java.lang.String username)Defines the current User Home to be used Example: /User Homes/
-
-
-
Method Detail
-
usingUser
Data usingUser(UserModel user) throws java.lang.Exception
Defines the current test user that will be used- Throws:
java.lang.Exception
-
usingAdmin
Data usingAdmin() throws java.lang.Exception
Defines the current user to be Admin- Returns:
- Throws:
java.lang.Exception
-
getCurrentUser
UserModel getCurrentUser()
gets the current test user- Returns:
-
usingRoot
Data usingRoot() throws java.lang.Exception
- Returns:
- the rootPath
- Throws:
java.lang.Exception
-
getCurrentSpace
java.lang.String getCurrentSpace() throws TestConfigurationException- Returns:
- the current Repository Space
- Throws:
TestConfigurationException
-
setCurrentSpace
Data setCurrentSpace(java.lang.String currentRepositorySpace)
getSitesPath(), getUserHomesPath(),getDataDictionaryPath(), etc If nothing is specified, the root folder is used
-
usingResource
Data usingResource(ContentModel model) throws java.lang.Exception
Defines the current file/folder that is under test- Parameters:
model-- Returns:
- Throws:
java.lang.Exception
-
usingSite
Data usingSite(java.lang.String siteId) throws java.lang.Exception
Defines the current test site to be used- Parameters:
siteId-- Returns:
- Throws:
java.lang.Exception
-
usingSite
Data usingSite(SiteModel siteModel) throws java.lang.Exception
Defines the current test site to be used based onSiteModel- Parameters:
siteModel-- Returns:
- Throws:
java.lang.Exception
-
usingUserHome
Data usingUserHome(java.lang.String username) throws java.lang.Exception
Defines the current User Home to be used Example: /User Homes/- Parameters:
username-- Returns:
- Throws:
java.lang.Exception
-
usingUserHome
Data usingUserHome() throws java.lang.Exception
- Returns:
- the userhome path based on
getCurrentUser() - Throws:
java.lang.Exception
-
getRootPath
java.lang.String getRootPath() throws TestConfigurationException- Returns:
- the root path
- Throws:
TestConfigurationException
-
getSitesPath
java.lang.String getSitesPath() throws TestConfigurationException- Returns:
- the Sites path Example: /Sites
- Throws:
TestConfigurationException
-
getUserHomesPath
java.lang.String getUserHomesPath() throws TestConfigurationException- Returns:
- user home path Example: /User Homes
- Throws:
TestConfigurationException
-
getDataDictionaryPath
java.lang.String getDataDictionaryPath() throws TestConfigurationException- Returns:
- the Data Dictionary path /Data Dictionary
- Throws:
TestConfigurationException
-
-