Class UnifiedRepositoryToWebServiceAdapter

  • All Implemented Interfaces:
    org.pentaho.platform.api.repository2.unified.IUnifiedRepository

    public class UnifiedRepositoryToWebServiceAdapter
    extends Object
    implements org.pentaho.platform.api.repository2.unified.IUnifiedRepository
    Converts calls to IUnifiedRepository into IUnifiedRepositoryWebService. This is how client code remains unaware of server code location.
    Author:
    mlowery
    • Method Detail

      • createFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile createFile​(Serializable parentFolderId,
                                                                                      org.pentaho.platform.api.repository2.unified.RepositoryFile file,
                                                                                      org.pentaho.platform.api.repository2.unified.IRepositoryFileData data,
                                                                                      String versionMessage)
        Specified by:
        createFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • createFolder

        public org.pentaho.platform.api.repository2.unified.RepositoryFile createFolder​(Serializable parentFolderId,
                                                                                        org.pentaho.platform.api.repository2.unified.RepositoryFile file,
                                                                                        String versionMessage)
        Specified by:
        createFolder in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • deleteFile

        public void deleteFile​(Serializable fileId,
                               boolean permanent,
                               String versionMessage)
        Specified by:
        deleteFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • deleteFile

        public void deleteFile​(Serializable fileId,
                               String versionMessage)
        Specified by:
        deleteFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • deleteFileAtVersion

        public void deleteFileAtVersion​(Serializable fileId,
                                        Serializable versionId)
        Specified by:
        deleteFileAtVersion in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getAcl

        public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl getAcl​(Serializable fileId)
        Specified by:
        getAcl in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getChildren

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren​(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
        Specified by:
        getChildren in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getChildren

        @Deprecated
        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren​(Serializable folderId)
        Deprecated.
        Specified by:
        getChildren in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getChildren

        @Deprecated
        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren​(Serializable folderId,
                                                                                             String filter)
        Deprecated.
        Specified by:
        getChildren in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getChildren

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getChildren​(Serializable folderId,
                                                                                             String filter,
                                                                                             Boolean showHiddenFiles)
        Specified by:
        getChildren in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDataForExecute

        public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataForExecute​(Serializable fileId,
                                                                                                                Class<T> dataClass)
        Specified by:
        getDataForExecute in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDataForExecuteInBatch

        public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> List<T> getDataForExecuteInBatch​(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files,
                                                                                                                             Class<T> dataClass)
        Specified by:
        getDataForExecuteInBatch in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDataAtVersionForExecute

        public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataAtVersionForExecute​(Serializable fileId,
                                                                                                                         Serializable versionId,
                                                                                                                         Class<T> dataClass)
        Specified by:
        getDataAtVersionForExecute in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDataForRead

        public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataForRead​(Serializable fileId,
                                                                                                             Class<T> dataClass)
        Specified by:
        getDataForRead in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDataForReadInBatch

        public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> List<T> getDataForReadInBatch​(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files,
                                                                                                                          Class<T> dataClass)
        Specified by:
        getDataForReadInBatch in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDataAtVersionForRead

        public <T extends org.pentaho.platform.api.repository2.unified.IRepositoryFileData> T getDataAtVersionForRead​(Serializable fileId,
                                                                                                                      Serializable versionId,
                                                                                                                      Class<T> dataClass)
        Specified by:
        getDataAtVersionForRead in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDeletedFiles

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles​(String origParentFolderPath)
        Specified by:
        getDeletedFiles in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDeletedFiles

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles​(String origParentFolderPath,
                                                                                                 String filter)
        Specified by:
        getDeletedFiles in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getDeletedFiles

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getDeletedFiles()
        Specified by:
        getDeletedFiles in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getEffectiveAces

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFileAce> getEffectiveAces​(Serializable fileId)
        Specified by:
        getEffectiveAces in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getEffectiveAces

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFileAce> getEffectiveAces​(Serializable fileId,
                                                                                                     boolean forceEntriesInheriting)
        Specified by:
        getEffectiveAces in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile​(String path)
        Specified by:
        getFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFileAtVersion

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileAtVersion​(Serializable fileId,
                                                                                            Serializable versionId)
        Specified by:
        getFileAtVersion in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFileById

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById​(Serializable fileId)
        Specified by:
        getFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile​(String path,
                                                                                   boolean loadLocaleMaps)
        Specified by:
        getFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFileById

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById​(Serializable fileId,
                                                                                       boolean loadLocaleMaps)
        Specified by:
        getFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile​(String path,
                                                                                   org.pentaho.platform.api.locale.IPentahoLocale locale)
        Specified by:
        getFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFileById

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById​(Serializable fileId,
                                                                                       org.pentaho.platform.api.locale.IPentahoLocale locale)
        Specified by:
        getFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile​(String path,
                                                                                   boolean loadLocaleMaps,
                                                                                   org.pentaho.platform.api.locale.IPentahoLocale locale)
        Specified by:
        getFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFileById

        public org.pentaho.platform.api.repository2.unified.RepositoryFile getFileById​(Serializable fileId,
                                                                                       boolean loadLocaleMaps,
                                                                                       org.pentaho.platform.api.locale.IPentahoLocale locale)
        Specified by:
        getFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getVersionSummaries

        public List<org.pentaho.platform.api.repository2.unified.VersionSummary> getVersionSummaries​(Serializable fileId)
        Specified by:
        getVersionSummaries in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getVersionSummary

        public org.pentaho.platform.api.repository2.unified.VersionSummary getVersionSummary​(Serializable fileId,
                                                                                             Serializable versionId)
        Specified by:
        getVersionSummary in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getVersionSummaryInBatch

        public List<org.pentaho.platform.api.repository2.unified.VersionSummary> getVersionSummaryInBatch​(List<org.pentaho.platform.api.repository2.unified.RepositoryFile> files)
        Specified by:
        getVersionSummaryInBatch in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • hasAccess

        public boolean hasAccess​(String path,
                                 EnumSet<org.pentaho.platform.api.repository2.unified.RepositoryFilePermission> permissions)
        Specified by:
        hasAccess in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • lockFile

        public void lockFile​(Serializable fileId,
                             String message)
        Specified by:
        lockFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • moveFile

        public void moveFile​(Serializable fileId,
                             String destAbsPath,
                             String versionMessage)
        Specified by:
        moveFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • copyFile

        public void copyFile​(Serializable fileId,
                             String destAbsPath,
                             String versionMessage)
        Specified by:
        copyFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • undeleteFile

        public void undeleteFile​(Serializable fileId,
                                 String versionMessage)
        Specified by:
        undeleteFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • unlockFile

        public void unlockFile​(Serializable fileId)
        Specified by:
        unlockFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • updateAcl

        public org.pentaho.platform.api.repository2.unified.RepositoryFileAcl updateAcl​(org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl)
        Specified by:
        updateAcl in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • updateFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile updateFile​(org.pentaho.platform.api.repository2.unified.RepositoryFile file,
                                                                                      org.pentaho.platform.api.repository2.unified.IRepositoryFileData data,
                                                                                      String versionMessage)
        Specified by:
        updateFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • restoreFileAtVersion

        public void restoreFileAtVersion​(Serializable fileId,
                                         Serializable versionId,
                                         String versionMessage)
        Specified by:
        restoreFileAtVersion in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • canUnlockFile

        public boolean canUnlockFile​(Serializable fileId)
        Specified by:
        canUnlockFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getTree

        public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree​(org.pentaho.platform.api.repository2.unified.RepositoryRequest repositoryRequest)
        Specified by:
        getTree in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getTree

        @Deprecated
        public org.pentaho.platform.api.repository2.unified.RepositoryFileTree getTree​(String path,
                                                                                       int depth,
                                                                                       String filter,
                                                                                       boolean showHidden)
        Deprecated.
        Specified by:
        getTree in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • createFile

        public org.pentaho.platform.api.repository2.unified.RepositoryFile createFile​(Serializable parentFolderId,
                                                                                      org.pentaho.platform.api.repository2.unified.RepositoryFile file,
                                                                                      org.pentaho.platform.api.repository2.unified.IRepositoryFileData data,
                                                                                      org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl,
                                                                                      String versionMessage)
        Specified by:
        createFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • createFolder

        public org.pentaho.platform.api.repository2.unified.RepositoryFile createFolder​(Serializable parentFolderId,
                                                                                        org.pentaho.platform.api.repository2.unified.RepositoryFile file,
                                                                                        org.pentaho.platform.api.repository2.unified.RepositoryFileAcl acl,
                                                                                        String versionMessage)
        Specified by:
        createFolder in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getReferrers

        public List<org.pentaho.platform.api.repository2.unified.RepositoryFile> getReferrers​(Serializable fileId)
        Specified by:
        getReferrers in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • setFileMetadata

        public void setFileMetadata​(Serializable fileId,
                                    Map<String,​Serializable> metadataMap)
        Specified by:
        setFileMetadata in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getFileMetadata

        public Map<String,​Serializable> getFileMetadata​(Serializable fileId)
        Specified by:
        getFileMetadata in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getReservedChars

        public List<Character> getReservedChars()
        Specified by:
        getReservedChars in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getAvailableLocalesForFileById

        public List<Locale> getAvailableLocalesForFileById​(Serializable fileId)
        Specified by:
        getAvailableLocalesForFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getAvailableLocalesForFileByPath

        public List<Locale> getAvailableLocalesForFileByPath​(String relPath)
        Specified by:
        getAvailableLocalesForFileByPath in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getAvailableLocalesForFile

        public List<Locale> getAvailableLocalesForFile​(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile)
        Specified by:
        getAvailableLocalesForFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getLocalePropertiesForFileById

        public Properties getLocalePropertiesForFileById​(Serializable fileId,
                                                         String locale)
        Specified by:
        getLocalePropertiesForFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getLocalePropertiesForFileByPath

        public Properties getLocalePropertiesForFileByPath​(String relPath,
                                                           String locale)
        Specified by:
        getLocalePropertiesForFileByPath in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • getLocalePropertiesForFile

        public Properties getLocalePropertiesForFile​(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
                                                     String locale)
        Specified by:
        getLocalePropertiesForFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • setLocalePropertiesForFileById

        public void setLocalePropertiesForFileById​(Serializable fileId,
                                                   String locale,
                                                   Properties properties)
        Specified by:
        setLocalePropertiesForFileById in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • setLocalePropertiesForFileByPath

        public void setLocalePropertiesForFileByPath​(String relPath,
                                                     String locale,
                                                     Properties properties)
        Specified by:
        setLocalePropertiesForFileByPath in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • setLocalePropertiesForFile

        public void setLocalePropertiesForFile​(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
                                               String locale,
                                               Properties properties)
        Specified by:
        setLocalePropertiesForFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • deleteLocalePropertiesForFile

        public void deleteLocalePropertiesForFile​(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
                                                  String locale)
        Specified by:
        deleteLocalePropertiesForFile in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository
      • updateFolder

        public org.pentaho.platform.api.repository2.unified.RepositoryFile updateFolder​(org.pentaho.platform.api.repository2.unified.RepositoryFile folder,
                                                                                        String versionMessage)
        Specified by:
        updateFolder in interface org.pentaho.platform.api.repository2.unified.IUnifiedRepository