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 requiresRoles.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 requiresRoles.SECURITY_ADMIN
.- Parameters:
profile
- The profile identifierstart
- The start date to check the connection historyend
- 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 occurscom.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 requiresRoles.ADMIN
.- Parameters:
start
-end
-- Throws:
com.flower.docs.domain.exception.FunctionalException
com.flower.docs.domain.exception.TechnicalException
-
-