Class SpaceConfigStorageImpl

  • All Implemented Interfaces:
    org.guvnor.structure.organizationalunit.config.SpaceConfigStorage

    public class SpaceConfigStorageImpl
    extends Object
    implements org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
    • Constructor Detail

      • SpaceConfigStorageImpl

        public SpaceConfigStorageImpl()
      • SpaceConfigStorageImpl

        @Inject
        public SpaceConfigStorageImpl​(org.uberfire.backend.server.io.object.ObjectStorage objectStorage,
                                      @Named("configIO")
                                      org.uberfire.io.IOService ioService)
    • Method Detail

      • setup

        public void setup​(String spaceName)
        Specified by:
        setup in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • loadBranchPermissions

        public org.guvnor.structure.organizationalunit.config.BranchPermissions loadBranchPermissions​(String branchName,
                                                                                                      String projectIdentifier)
        Specified by:
        loadBranchPermissions in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • saveBranchPermissions

        public void saveBranchPermissions​(String branchName,
                                          String projectIdentifier,
                                          org.guvnor.structure.organizationalunit.config.BranchPermissions branchPermissions)
        Specified by:
        saveBranchPermissions in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • deleteBranchPermissions

        public void deleteBranchPermissions​(String branchName,
                                            String projectIdentifier)
        Specified by:
        deleteBranchPermissions in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • deleteRepository

        public void deleteRepository​(String repositoryAlias)
        Specified by:
        deleteRepository in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • loadChangeRequests

        public List<org.guvnor.structure.repositories.changerequest.portable.ChangeRequest> loadChangeRequests​(String repositoryAlias)
        Specified by:
        loadChangeRequests in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • loadChangeRequest

        public org.guvnor.structure.repositories.changerequest.portable.ChangeRequest loadChangeRequest​(String repositoryAlias,
                                                                                                        Long changeRequestId)
        Specified by:
        loadChangeRequest in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • saveChangeRequest

        public void saveChangeRequest​(String repositoryAlias,
                                      org.guvnor.structure.repositories.changerequest.portable.ChangeRequest changeRequest)
        Specified by:
        saveChangeRequest in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • deleteAllChangeRequests

        public void deleteAllChangeRequests​(String repositoryAlias)
        Specified by:
        deleteAllChangeRequests in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • deleteChangeRequest

        public void deleteChangeRequest​(String repositoryAlias,
                                        Long changeRequestId)
        Specified by:
        deleteChangeRequest in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • getChangeRequestIds

        public List<Long> getChangeRequestIds​(String repositoryAlias)
        Specified by:
        getChangeRequestIds in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • loadChangeRequestComments

        public List<org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment> loadChangeRequestComments​(String repositoryAlias,
                                                                                                                             Long changeRequestId)
        Specified by:
        loadChangeRequestComments in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • loadChangeRequestComment

        public org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment loadChangeRequestComment​(String repositoryAlias,
                                                                                                                      Long changeRequestId,
                                                                                                                      Long changeRequestCommentId)
        Specified by:
        loadChangeRequestComment in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • saveChangeRequestComment

        public void saveChangeRequestComment​(String repositoryAlias,
                                             Long changeRequestId,
                                             org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment changeRequestComment)
        Specified by:
        saveChangeRequestComment in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • deleteAllChangeRequestComments

        public void deleteAllChangeRequestComments​(String repositoryAlias,
                                                   Long changeRequestId)
        Specified by:
        deleteAllChangeRequestComments in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • deleteChangeRequestComment

        public void deleteChangeRequestComment​(String repositoryAlias,
                                               Long changeRequestId,
                                               Long changeRequestCommentId)
        Specified by:
        deleteChangeRequestComment in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • getChangeRequestCommentIds

        public List<Long> getChangeRequestCommentIds​(String repositoryAlias,
                                                     Long changeRequestId)
        Specified by:
        getChangeRequestCommentIds in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • loadSpaceInfo

        public org.guvnor.structure.organizationalunit.config.SpaceInfo loadSpaceInfo()
        Specified by:
        loadSpaceInfo in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • saveSpaceInfo

        public void saveSpaceInfo​(org.guvnor.structure.organizationalunit.config.SpaceInfo spaceInfo)
        Specified by:
        saveSpaceInfo in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • startBatch

        public void startBatch()
        Specified by:
        startBatch in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • endBatch

        public void endBatch()
        Specified by:
        endBatch in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • close

        public void close()
        Specified by:
        close in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • isInitialized

        public boolean isInitialized()
        Specified by:
        isInitialized in interface org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
      • getPath

        public org.uberfire.java.nio.file.Path getPath()