Added findactions method.
Signed-off-by: Kai Zimmermann <kai.zimmermann@bosch-si.com>
This commit is contained in:
@@ -286,6 +286,16 @@ public interface DeploymentManagement {
|
|||||||
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_READ_TARGET)
|
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_READ_TARGET)
|
||||||
Slice<Action> findActionsByTarget(@NotNull Pageable pageable, @NotNull Target target);
|
Slice<Action> findActionsByTarget(@NotNull Pageable pageable, @NotNull Target target);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves all {@link Action}s from repository.
|
||||||
|
*
|
||||||
|
* @param pageable
|
||||||
|
* pagination parameter
|
||||||
|
* @return a paged list of {@link Action}s
|
||||||
|
*/
|
||||||
|
@PreAuthorize(SpringEvalExpressions.HAS_AUTH_READ_TARGET)
|
||||||
|
Slice<Action> findActionsAll(@NotNull Pageable pageable);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves all {@link Action} which assigned to a specific
|
* Retrieves all {@link Action} which assigned to a specific
|
||||||
* {@link DistributionSet}.
|
* {@link DistributionSet}.
|
||||||
|
|||||||
@@ -706,4 +706,9 @@ public class JpaDeploymentManagement implements DeploymentManagement {
|
|||||||
public Slice<Action> findActionsByDistributionSet(final Pageable pageable, final DistributionSet ds) {
|
public Slice<Action> findActionsByDistributionSet(final Pageable pageable, final DistributionSet ds) {
|
||||||
return actionRepository.findByDistributionSet(pageable, (JpaDistributionSet) ds);
|
return actionRepository.findByDistributionSet(pageable, (JpaDistributionSet) ds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Slice<Action> findActionsAll(final Pageable pageable) {
|
||||||
|
return convertAcPage(actionRepository.findAll(pageable), pageable);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user