Class SpaceConfigStorageImpl
- java.lang.Object
-
- org.guvnor.structure.backend.organizationalunit.config.SpaceConfigStorageImpl
-
- All Implemented Interfaces:
org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
public class SpaceConfigStorageImpl extends Object implements org.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
-
Field Summary
Fields Modifier and Type Field Description static StringBRANCH_PERMISSIONSstatic StringFILE_FORMATstatic StringSPACE_INFO
-
Constructor Summary
Constructors Constructor Description SpaceConfigStorageImpl()SpaceConfigStorageImpl(org.uberfire.backend.server.io.object.ObjectStorage objectStorage, org.uberfire.io.IOService ioService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voiddeleteAllChangeRequestComments(String repositoryAlias, Long changeRequestId)voiddeleteAllChangeRequests(String repositoryAlias)voiddeleteBranchPermissions(String branchName, String projectIdentifier)voiddeleteChangeRequest(String repositoryAlias, Long changeRequestId)voiddeleteChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)voiddeleteRepository(String repositoryAlias)voidendBatch()List<Long>getChangeRequestCommentIds(String repositoryAlias, Long changeRequestId)List<Long>getChangeRequestIds(String repositoryAlias)org.uberfire.java.nio.file.PathgetPath()booleanisInitialized()org.guvnor.structure.organizationalunit.config.BranchPermissionsloadBranchPermissions(String branchName, String projectIdentifier)org.guvnor.structure.repositories.changerequest.portable.ChangeRequestloadChangeRequest(String repositoryAlias, Long changeRequestId)org.guvnor.structure.repositories.changerequest.portable.ChangeRequestCommentloadChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)List<org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment>loadChangeRequestComments(String repositoryAlias, Long changeRequestId)List<org.guvnor.structure.repositories.changerequest.portable.ChangeRequest>loadChangeRequests(String repositoryAlias)org.guvnor.structure.organizationalunit.config.SpaceInfoloadSpaceInfo()voidsaveBranchPermissions(String branchName, String projectIdentifier, org.guvnor.structure.organizationalunit.config.BranchPermissions branchPermissions)voidsaveChangeRequest(String repositoryAlias, org.guvnor.structure.repositories.changerequest.portable.ChangeRequest changeRequest)voidsaveChangeRequestComment(String repositoryAlias, Long changeRequestId, org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment changeRequestComment)voidsaveSpaceInfo(org.guvnor.structure.organizationalunit.config.SpaceInfo spaceInfo)voidsetup(String spaceName)voidstartBatch()
-
-
-
Field Detail
-
FILE_FORMAT
public static final String FILE_FORMAT
- See Also:
- Constant Field Values
-
BRANCH_PERMISSIONS
public static final String BRANCH_PERMISSIONS
- See Also:
- Constant Field Values
-
SPACE_INFO
public static final String SPACE_INFO
- See Also:
- Constant Field Values
-
-
Method Detail
-
setup
public void setup(String spaceName)
- Specified by:
setupin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
loadBranchPermissions
public org.guvnor.structure.organizationalunit.config.BranchPermissions loadBranchPermissions(String branchName, String projectIdentifier)
- Specified by:
loadBranchPermissionsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
saveBranchPermissions
public void saveBranchPermissions(String branchName, String projectIdentifier, org.guvnor.structure.organizationalunit.config.BranchPermissions branchPermissions)
- Specified by:
saveBranchPermissionsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
deleteBranchPermissions
public void deleteBranchPermissions(String branchName, String projectIdentifier)
- Specified by:
deleteBranchPermissionsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
deleteRepository
public void deleteRepository(String repositoryAlias)
- Specified by:
deleteRepositoryin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
loadChangeRequests
public List<org.guvnor.structure.repositories.changerequest.portable.ChangeRequest> loadChangeRequests(String repositoryAlias)
- Specified by:
loadChangeRequestsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
loadChangeRequest
public org.guvnor.structure.repositories.changerequest.portable.ChangeRequest loadChangeRequest(String repositoryAlias, Long changeRequestId)
- Specified by:
loadChangeRequestin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
saveChangeRequest
public void saveChangeRequest(String repositoryAlias, org.guvnor.structure.repositories.changerequest.portable.ChangeRequest changeRequest)
- Specified by:
saveChangeRequestin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
deleteAllChangeRequests
public void deleteAllChangeRequests(String repositoryAlias)
- Specified by:
deleteAllChangeRequestsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
deleteChangeRequest
public void deleteChangeRequest(String repositoryAlias, Long changeRequestId)
- Specified by:
deleteChangeRequestin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
getChangeRequestIds
public List<Long> getChangeRequestIds(String repositoryAlias)
- Specified by:
getChangeRequestIdsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
loadChangeRequestComments
public List<org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment> loadChangeRequestComments(String repositoryAlias, Long changeRequestId)
- Specified by:
loadChangeRequestCommentsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
loadChangeRequestComment
public org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment loadChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)
- Specified by:
loadChangeRequestCommentin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
saveChangeRequestComment
public void saveChangeRequestComment(String repositoryAlias, Long changeRequestId, org.guvnor.structure.repositories.changerequest.portable.ChangeRequestComment changeRequestComment)
- Specified by:
saveChangeRequestCommentin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
deleteAllChangeRequestComments
public void deleteAllChangeRequestComments(String repositoryAlias, Long changeRequestId)
- Specified by:
deleteAllChangeRequestCommentsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
deleteChangeRequestComment
public void deleteChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)
- Specified by:
deleteChangeRequestCommentin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
getChangeRequestCommentIds
public List<Long> getChangeRequestCommentIds(String repositoryAlias, Long changeRequestId)
- Specified by:
getChangeRequestCommentIdsin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
loadSpaceInfo
public org.guvnor.structure.organizationalunit.config.SpaceInfo loadSpaceInfo()
- Specified by:
loadSpaceInfoin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
saveSpaceInfo
public void saveSpaceInfo(org.guvnor.structure.organizationalunit.config.SpaceInfo spaceInfo)
- Specified by:
saveSpaceInfoin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
startBatch
public void startBatch()
- Specified by:
startBatchin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
endBatch
public void endBatch()
- Specified by:
endBatchin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
close
public void close()
- Specified by:
closein interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
isInitialized
public boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.guvnor.structure.organizationalunit.config.SpaceConfigStorage
-
getPath
public org.uberfire.java.nio.file.Path getPath()
-
-