diff --git a/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/ActionRepository.java b/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/ActionRepository.java index bc2fda63e..512fb9b35 100644 --- a/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/ActionRepository.java +++ b/hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/repository/ActionRepository.java @@ -86,29 +86,6 @@ public interface ActionRepository extends BaseEntityRepository { void switchStatus(@Param("statusToSet") Action.Status statusToSet, @Param("targetsIds") List targetIds, @Param("active") boolean active, @Param("currentStatus") Action.Status currentStatus); - /** - * - * Retrieves all IDs for {@link Action}s referring to the given target IDs, - * active flag, current status and distribution set not requiring migration - * step. - *

- * No access control applied - * - * @deprecated will be removed - * @param targetIds - * the IDs of targets for the actions - * @param active - * flag to indicate active/inactive actions - * @param currentStatus - * the current status of the actions - * @return the found list of {@link Action} IDs - */ - @Deprecated(forRemoval = true) - @Query("SELECT a.id FROM JpaAction a WHERE a.target IN :targetsIds AND a.active = :active AND a.status = :currentStatus AND a.distributionSet.requiredMigrationStep = false") - List findByTargetIdInAndIsActiveAndActionStatusAndDistributionSetNotRequiredMigrationStep( - @Param("targetsIds") List targetIds, @Param("active") boolean active, - @Param("currentStatus") Action.Status currentStatus); - /** * Retrieves an {@link Action} that matches the queried externalRef. * @@ -118,31 +95,6 @@ public interface ActionRepository extends BaseEntityRepository { */ Optional findByExternalRef(@Param("externalRef") String externalRef); - /** - * Switches the status of actions from one specific status into another for - * given actions IDs, active flag and current status - *

- * No access control applied - * - * @deprecated will be removed - * @param statusToSet - * the new status the actions should get - * @param actionIds - * the IDs of the actions which are affected - * @param active - * flag to indicate active/inactive actions - * @param currentStatus - * the current status of the actions - * @return the amount of updated actions - */ - @Deprecated(forRemoval = true) - @Modifying - @Transactional - @Query("UPDATE JpaAction a SET a.status = :statusToSet WHERE a.id IN :actionIds AND a.active = :active AND a.status = :currentStatus") - int switchStatusForActionIdInAndIsActiveAndActionStatus(@Param("statusToSet") Action.Status statusToSet, - @Param("actionIds") List actionIds, @Param("active") boolean active, - @Param("currentStatus") Action.Status currentStatus); - /** * Counts all {@link Action}s referring to the given target. *