* Added to management intefaces (+ tests) Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -134,6 +134,16 @@ public interface DistributionSetManagement
|
||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_REPOSITORY)
|
||||
void deleteMetaData(long id, @NotEmpty String key);
|
||||
|
||||
/**
|
||||
* Locks a distribution set. From then on its functional properties could not be changed and
|
||||
* it could be assigned 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 lock(final long id);
|
||||
|
||||
/**
|
||||
* Retrieves the distribution set for a given action.
|
||||
*
|
||||
|
||||
@@ -322,13 +322,20 @@ public interface SoftwareModuleManagement
|
||||
* to be filtered on
|
||||
*
|
||||
* @return the found {@link SoftwareModule}s
|
||||
*
|
||||
* @throws EntityNotFoundException
|
||||
* if software module type with given ID does not exist
|
||||
* @throws EntityNotFoundException if software module type with given ID does not exist
|
||||
*/
|
||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_READ_REPOSITORY)
|
||||
Slice<SoftwareModule> findByType(@NotNull Pageable pageable, long typeId);
|
||||
|
||||
/**
|
||||
* Locks a software module.
|
||||
*
|
||||
* @param id the software module id
|
||||
* @throws EntityNotFoundException if software module with given ID does not exist
|
||||
*/
|
||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_UPDATE_REPOSITORY)
|
||||
void lock(long id);
|
||||
|
||||
/**
|
||||
* Updates a distribution set meta data value if corresponding entry exists.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user