Interface LoginHistoryService


  • public interface LoginHistoryService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(long start, long end)
      Deletes history for a period.
      java.util.List<com.flower.docs.domain.report.LoginHistory> findByProfile​(com.flower.docs.domain.common.Id profile, long start, long end)
      Finds users by their profile who have been authenticated during a period.
      void store​(com.flower.docs.domain.report.LoginHistory history)
      Stores an object standing for a user authentication.
    • Method Detail

      • store

        void store​(com.flower.docs.domain.report.LoginHistory history)
            throws com.flower.docs.domain.exception.FunctionalException,
                   com.flower.docs.domain.exception.TechnicalException
        Stores an object standing for a user authentication. This operation requires Roles.SECURITY_ADMIN.
        Parameters:
        history -
        Throws:
        com.flower.docs.domain.exception.FunctionalException
        com.flower.docs.domain.exception.TechnicalException
      • findByProfile

        java.util.List<com.flower.docs.domain.report.LoginHistory> findByProfile​(com.flower.docs.domain.common.Id profile,
                                                                                 long start,
                                                                                 long end)
                                                                          throws com.flower.docs.domain.exception.FunctionalException,
                                                                                 com.flower.docs.domain.exception.TechnicalException
        Finds users by their profile who have been authenticated during a period. This operation requires Roles.SECURITY_ADMIN.
        Parameters:
        profile - The profile identifier
        start - The start date to check the connection history
        end - The end date to check the connection history
        Returns:
        The connection history by profile
        Throws:
        com.flower.docs.domain.exception.FunctionalException - If a functional error occurs
        com.flower.docs.domain.exception.TechnicalException - If a technical error occurs
      • delete

        void delete​(long start,
                    long end)
             throws com.flower.docs.domain.exception.FunctionalException,
                    com.flower.docs.domain.exception.TechnicalException
        Deletes history for a period. This operation requires Roles.ADMIN.
        Parameters:
        start -
        end -
        Throws:
        com.flower.docs.domain.exception.FunctionalException
        com.flower.docs.domain.exception.TechnicalException