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 SpaceConfigStorage
public BranchPermissions loadBranchPermissions(String branchName, String projectIdentifier)
loadBranchPermissions
in interface SpaceConfigStorage
public void saveBranchPermissions(String branchName, String projectIdentifier, BranchPermissions branchPermissions)
saveBranchPermissions
in interface SpaceConfigStorage
public void deleteBranchPermissions(String branchName, String projectIdentifier)
deleteBranchPermissions
in interface SpaceConfigStorage
public void deleteRepository(String repositoryAlias)
deleteRepository
in interface SpaceConfigStorage
public List<ChangeRequest> loadChangeRequests(String repositoryAlias)
loadChangeRequests
in interface SpaceConfigStorage
public ChangeRequest loadChangeRequest(String repositoryAlias, Long changeRequestId)
loadChangeRequest
in interface SpaceConfigStorage
public void saveChangeRequest(String repositoryAlias, ChangeRequest changeRequest)
saveChangeRequest
in interface SpaceConfigStorage
public void deleteAllChangeRequests(String repositoryAlias)
deleteAllChangeRequests
in interface SpaceConfigStorage
public void deleteChangeRequest(String repositoryAlias, Long changeRequestId)
deleteChangeRequest
in interface SpaceConfigStorage
public List<Long> getChangeRequestIds(String repositoryAlias)
getChangeRequestIds
in interface SpaceConfigStorage
public List<ChangeRequestComment> loadChangeRequestComments(String repositoryAlias, Long changeRequestId)
loadChangeRequestComments
in interface SpaceConfigStorage
public ChangeRequestComment loadChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)
loadChangeRequestComment
in interface SpaceConfigStorage
public void saveChangeRequestComment(String repositoryAlias, Long changeRequestId, ChangeRequestComment changeRequestComment)
saveChangeRequestComment
in interface SpaceConfigStorage
public void deleteAllChangeRequestComments(String repositoryAlias, Long changeRequestId)
deleteAllChangeRequestComments
in interface SpaceConfigStorage
public void deleteChangeRequestComment(String repositoryAlias, Long changeRequestId, Long changeRequestCommentId)
deleteChangeRequestComment
in interface SpaceConfigStorage
public List<Long> getChangeRequestCommentIds(String repositoryAlias, Long changeRequestId)
getChangeRequestCommentIds
in interface SpaceConfigStorage
public SpaceInfo loadSpaceInfo()
loadSpaceInfo
in interface SpaceConfigStorage
public void saveSpaceInfo(SpaceInfo spaceInfo)
saveSpaceInfo
in interface SpaceConfigStorage
public void startBatch()
startBatch
in interface SpaceConfigStorage
public void endBatch()
endBatch
in interface SpaceConfigStorage
public void close()
close
in interface SpaceConfigStorage
public boolean isInitialized()
isInitialized
in interface SpaceConfigStorage
public Path getPath()
Copyright © 2012–2021 JBoss by Red Hat. All rights reserved.