[#1651] Add SoftwareModule and DistributionSet unlock (Mgmt) (#1676)

Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-03-08 09:19:11 +02:00
committed by GitHub
parent 1640025a25
commit 4d104873de
8 changed files with 94 additions and 0 deletions

View File

@@ -144,6 +144,17 @@ public interface DistributionSetManagement
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_REPOSITORY)
void lock(final long id);
/**
* Unlocks a distribution set.<br/>
* Use it with extreme care! In general once distribution set is locked
* it shall not be unlocked. Note that it could have been assigned / deployed to targets.
*
* @param id the distribution set id
* @throws EntityNotFoundException if distribution set with given ID does not exist
*/
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_REPOSITORY)
void unlock(final long id);
/**
* Retrieves the distribution set for a given action.
*

View File

@@ -336,6 +336,17 @@ public interface SoftwareModuleManagement
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_REPOSITORY)
void lock(long id);
/**
* Unlocks a software module.<br/>
* Use it with extreme care! In general once software module is locked
* it shall not be unlocked. Note that it could have been assigned / deployed to targets.
*
* @param id the software module id
* @throws EntityNotFoundException if software module with given ID does not exist
*/
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_REPOSITORY)
void unlock(long id);
/**
* Updates a distribution set meta data value if corresponding entry exists.
*