Class AOSWrapper

java.lang.Object
org.alfresco.utility.dsl.DSLWrapper<Client>
org.alfresco.utility.dsl.DSLProtocol<Client>
org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<AOSWrapper>
org.alfresco.aos.AOSWrapper
All Implemented Interfaces:
org.alfresco.utility.dsl.DSL<AOSWrapper>, org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>, org.alfresco.utility.dsl.DSLFile<AOSWrapper>, org.alfresco.utility.dsl.DSLFolder<AOSWrapper>

@Service @Scope("prototype") public class AOSWrapper extends org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<AOSWrapper> implements org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>, org.alfresco.utility.dsl.DSLFolder<AOSWrapper>, org.alfresco.utility.dsl.DSLFile<AOSWrapper>
  • Field Details

    • status

      public int status
  • Constructor Details

    • AOSWrapper

      public AOSWrapper()
  • Method Details

    • withNetworkDrive

      public AOSNetworkDrive withNetworkDrive()
    • withAosUtil

      public AOSUtil withAosUtil()
    • createFile

      public AOSWrapper createFile(org.alfresco.utility.model.FileModel fileModel) throws Exception
      Specified by:
      createFile in interface org.alfresco.utility.dsl.DSLFile<AOSWrapper>
      Throws:
      Exception
    • createFolder

      public AOSWrapper createFolder(org.alfresco.utility.model.FolderModel folderModel) throws Exception
      Specified by:
      createFolder in interface org.alfresco.utility.dsl.DSLFolder<AOSWrapper>
      Throws:
      Exception
    • getFiles

      public List<org.alfresco.utility.model.FileModel> getFiles() throws Exception
      Specified by:
      getFiles in interface org.alfresco.utility.dsl.DSLFile<AOSWrapper>
      Throws:
      Exception
    • getFolders

      public List<org.alfresco.utility.model.FolderModel> getFolders() throws Exception
      Specified by:
      getFolders in interface org.alfresco.utility.dsl.DSLFolder<AOSWrapper>
      Throws:
      Exception
    • rename

      public AOSWrapper rename(String newName) throws Exception
      Specified by:
      rename in interface org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>
      Throws:
      Exception
    • update

      public AOSWrapper update(String content) throws Exception
      Specified by:
      update in interface org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>
      Throws:
      Exception
    • deleteContent

      public AOSWrapper deleteContent(String content) throws Exception
      Throws:
      Exception
    • buildPath

      public String buildPath(String parent, String... paths)
      Overrides:
      buildPath in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
    • delete

      public AOSWrapper delete() throws Exception
      Specified by:
      delete in interface org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>
      Throws:
      Exception
    • copyTo

      public AOSWrapper copyTo(org.alfresco.utility.model.ContentModel destination) throws Exception
      Specified by:
      copyTo in interface org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>
      Throws:
      Exception
    • updateContent

      public AOSWrapper updateContent(String resourcePath, String content, AOSWrapper.Content contentAction) throws FileNotFoundException, IOException
      Throws:
      FileNotFoundException
      IOException
    • addNewDocumentPage

      public AOSWrapper addNewDocumentPage() throws IOException, org.alfresco.utility.exception.TestConfigurationException
      This method will add a new page for Word Documents, a new sheet for Excel Documents and a new slide for PowerPoint Documents
      Returns:
      Throws:
      IOException
      org.alfresco.utility.exception.TestConfigurationException
    • moveTo

      public AOSWrapper moveTo(org.alfresco.utility.model.ContentModel destination) throws Exception
      Specified by:
      moveTo in interface org.alfresco.utility.dsl.DSLContentModelAction<AOSWrapper>
      Throws:
      Exception
    • httpMoveTo

      public AOSWrapper httpMoveTo(org.alfresco.utility.model.ContentModel destination) throws IOException
      Throws:
      IOException
    • getProtocolJMXConfigurationStatus

      protected String getProtocolJMXConfigurationStatus() throws Exception
      Specified by:
      getProtocolJMXConfigurationStatus in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • authenticateUser

      public AOSWrapper authenticateUser(org.alfresco.utility.model.UserModel userModel) throws Exception
      Specified by:
      authenticateUser in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • disconnect

      public AOSWrapper disconnect() throws Exception
      Specified by:
      disconnect in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • usingSite

      public AOSWrapper usingSite(String siteId) throws Exception
      Specified by:
      usingSite in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      usingSite in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • usingSite

      public AOSWrapper usingSite(org.alfresco.utility.model.SiteModel siteModel) throws Exception
      Specified by:
      usingSite in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      usingSite in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • usingRoot

      public AOSWrapper usingRoot() throws org.alfresco.utility.exception.TestConfigurationException, Exception
      Specified by:
      usingRoot in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Overrides:
      usingRoot in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
      Exception
    • usingUserHome

      public AOSWrapper usingUserHome(String username) throws Exception
      Specified by:
      usingUserHome in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      usingUserHome in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • usingUserHome

      public AOSWrapper usingUserHome() throws Exception
      Specified by:
      usingUserHome in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      usingUserHome in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • getRootPath

      public String getRootPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getRootPath in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      getRootPath in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getSitesPath

      public String getSitesPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getSitesPath in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      getSitesPath in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getUserHomesPath

      public String getUserHomesPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getUserHomesPath in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      getUserHomesPath in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getDataDictionaryPath

      public String getDataDictionaryPath() throws org.alfresco.utility.exception.TestConfigurationException
      Specified by:
      getDataDictionaryPath in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      getDataDictionaryPath in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
    • getPrefixSpace

      public String getPrefixSpace()
      Specified by:
      getPrefixSpace in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
    • usingResource

      public AOSWrapper usingResource(org.alfresco.utility.model.ContentModel model) throws Exception
      Specified by:
      usingResource in interface org.alfresco.utility.dsl.DSL<AOSWrapper>
      Specified by:
      usingResource in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
      Throws:
      Exception
    • assertThat

      public AOSAssertion assertThat()
      Assertion DSL. Call this method to see available assertions available AOSAssertion
      Overrides:
      assertThat in class org.alfresco.utility.dsl.DSLProtocol<AOSWrapper>
    • withJMX

      public JmxUtil withJMX()
      Returns:
      JMX DSL for this wrapper
    • usingNetworkDrive

      public AOSWrapper usingNetworkDrive() throws Exception
      Specified by:
      usingNetworkDrive in class org.alfresco.utility.dsl.DSLProtocolWithNetworkDrive<AOSWrapper>
      Throws:
      Exception
    • unmountNetworkDrive

      public AOSWrapper unmountNetworkDrive() throws Exception
      Throws:
      Exception
    • getContent

      public String getContent(String filePath) throws org.alfresco.utility.exception.TestConfigurationException, IOException
      Throws:
      org.alfresco.utility.exception.TestConfigurationException
      IOException
    • getDefaultFileContent

      public String getDefaultFileContent()
    • setDefaultFileContent

      public void setDefaultFileContent(String content)
    • setFileModel

      public void setFileModel(org.alfresco.utility.model.FileModel fileModel)
    • getFileModel

      public org.alfresco.utility.model.FileModel getFileModel()
    • getFileType

      public org.alfresco.utility.model.FileType getFileType()
    • setFileType

      public void setFileType(org.alfresco.utility.model.FileType fileType)
    • getAosLocation

      public String getAosLocation()
    • setAosLocation

      public void setAosLocation(String aosLocation)
    • checkOutDocument

      public AOSWrapper checkOutDocument() throws InterruptedException
      Throws:
      InterruptedException
    • cancelCheckOutDocument

      public AOSWrapper cancelCheckOutDocument() throws InterruptedException
      Throws:
      InterruptedException