Interface StalePermissionRequestRepository<T extends PermissionRequest>

All Known Subinterfaces:
AiidaPermissionRequestViewRepository, BePermissionRequestRepository, CdsPermissionRequestRepository, DePermissionRequestRepository, EsPermissionRequestRepository, FiPermissionRequestRepository, FrPermissionRequestRepository, FullPermissionRequestRepository<T>, NlPermissionRequestRepository, UsPermissionRequestRepository
All Known Implementing Classes:
DePermissionRequestRepositoryImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StalePermissionRequestRepository<T extends PermissionRequest>
  • Method Summary

    Modifier and Type
    Method
    Description
    findStalePermissionRequests(int stalenessDuration)
    Finds all permission request that are older than the stalenessDuration and have either the status VALIDATED or SENT_TO_PERMISSION_ADMINISTRATOR.
  • Method Details

    • findStalePermissionRequests

      Collection<T> findStalePermissionRequests(int stalenessDuration)
      Finds all permission request that are older than the stalenessDuration and have either the status VALIDATED or SENT_TO_PERMISSION_ADMINISTRATOR.
      Parameters:
      stalenessDuration - the max amount of hours the permission request has to be created ago to not be considered stale.
      Returns:
      all permission request created now - stalenessDuration hours ago, with above specified status.