public class SpaceConfigStorageImpl extends Object implements SpaceConfigStorage
| Modifier and Type | Field and Description |
|---|---|
static String |
BRANCH_PERMISSIONS |
static String |
FILE_FORMAT |
static String |
SPACE_INFO |
| Constructor and Description |
|---|
SpaceConfigStorageImpl() |
SpaceConfigStorageImpl(ObjectStorage objectStorage,
IOService ioService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deleteAllChangeRequestComments(String repositoryAlias,
Long changeRequestId) |
void |
deleteAllChangeRequests(String repositoryAlias) |
void |
deleteBranchPermissions(String branchName,
String projectIdentifier) |
void |
deleteChangeRequest(String repositoryAlias,
Long changeRequestId) |
void |
deleteChangeRequestComment(String repositoryAlias,
Long changeRequestId,
Long changeRequestCommentId) |
void |
deleteRepository(String repositoryAlias) |
void |
endBatch() |
List<Long> |
getChangeRequestCommentIds(String repositoryAlias,
Long changeRequestId) |
List<Long> |
getChangeRequestIds(String repositoryAlias) |
Path |
getPath() |
boolean |
isInitialized() |
BranchPermissions |
loadBranchPermissions(String branchName,
String projectIdentifier) |
ChangeRequest |
loadChangeRequest(String repositoryAlias,
Long changeRequestId) |
ChangeRequestComment |
loadChangeRequestComment(String repositoryAlias,
Long changeRequestId,
Long changeRequestCommentId) |
List<ChangeRequestComment> |
loadChangeRequestComments(String repositoryAlias,
Long changeRequestId) |
List<ChangeRequest> |
loadChangeRequests(String repositoryAlias) |
SpaceInfo |
loadSpaceInfo() |
void |
saveBranchPermissions(String branchName,
String projectIdentifier,
BranchPermissions branchPermissions) |
void |
saveChangeRequest(String repositoryAlias,
ChangeRequest changeRequest) |
void |
saveChangeRequestComment(String repositoryAlias,
Long changeRequestId,
ChangeRequestComment changeRequestComment) |
void |
saveSpaceInfo(SpaceInfo spaceInfo) |
void |
setup(String spaceName) |
void |
startBatch() |
public static final String FILE_FORMAT
public static final String BRANCH_PERMISSIONS
public static final String SPACE_INFO
public SpaceConfigStorageImpl()
@Inject public SpaceConfigStorageImpl(ObjectStorage objectStorage, @Named(value="configIO") IOService ioService)
public void setup(String spaceName)
setup in interface SpaceConfigStoragepublic BranchPermissions loadBranchPermissions(String branchName, String projectIdentifier)
loadBranchPermissions in interface SpaceConfigStoragepublic void saveBranchPermissions(String branchName, String projectIdentifier, BranchPermissions branchPermissions)
saveBranchPermissions in interface SpaceConfigStoragepublic void deleteBranchPermissions(String branchName, String projectIdentifier)
deleteBranchPermissions in interface SpaceConfigStoragepublic void deleteRepository(String repositoryAlias)
deleteRepository in interface SpaceConfigStoragepublic List<ChangeRequest> loadChangeRequests(String repositoryAlias)
loadChangeRequests in interface SpaceConfigStoragepublic ChangeRequest loadChangeRequest(String repositoryAlias, Long changeRequestId)
loadChangeRequest in interface SpaceConfigStoragepublic void saveChangeRequest(String repositoryAlias, ChangeRequest changeRequest)
saveChangeRequest in interface SpaceConfigStoragepublic void deleteAllChangeRequests(String repositoryAlias)
deleteAllChangeRequests in interface SpaceConfigStoragepublic void deleteChangeRequest(String repositoryAlias, Long changeRequestId)
deleteChangeRequest in interface SpaceConfigStoragepublic List<Long> getChangeRequestIds(String repositoryAlias)
getChangeRequestIds in interface SpaceConfigStoragepublic List<ChangeRequestComment> loadChangeRequestComments(String repositoryAlias, Long changeRequestId)
loadChangeRequestComments in interface SpaceConfigStoragepublic ChangeRequestComment loadChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)
loadChangeRequestComment in interface SpaceConfigStoragepublic void saveChangeRequestComment(String repositoryAlias, Long changeRequestId, ChangeRequestComment changeRequestComment)
saveChangeRequestComment in interface SpaceConfigStoragepublic void deleteAllChangeRequestComments(String repositoryAlias, Long changeRequestId)
deleteAllChangeRequestComments in interface SpaceConfigStoragepublic void deleteChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)
deleteChangeRequestComment in interface SpaceConfigStoragepublic List<Long> getChangeRequestCommentIds(String repositoryAlias, Long changeRequestId)
getChangeRequestCommentIds in interface SpaceConfigStoragepublic SpaceInfo loadSpaceInfo()
loadSpaceInfo in interface SpaceConfigStoragepublic void saveSpaceInfo(SpaceInfo spaceInfo)
saveSpaceInfo in interface SpaceConfigStoragepublic void startBatch()
startBatch in interface SpaceConfigStoragepublic void endBatch()
endBatch in interface SpaceConfigStoragepublic void close()
close in interface SpaceConfigStoragepublic boolean isInitialized()
isInitialized in interface SpaceConfigStoragepublic Path getPath()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.