Interface AuditEventService

    • Method Detail

      • getEvents

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"})
        List<AuditEvent> getEvents​(Auditable auditable)
      • getCreateEvents

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_COLLECTION_READ"})
        <T extends AuditableMap<T,​AuditEvent> getCreateEvents​(Collection<T> auditable)
      • getLastEvents

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_COLLECTION_READ"})
        <T extends AuditableMap<Class<? extends AuditEventType>,​Map<T,​AuditEvent>> getLastEvents​(Collection<T> auditables,
                                                                                                               Collection<Class<? extends AuditEventType>> types)
        Fast method to retrieve auditEventTypes of multiple classes.
        Parameters:
        types - types
        auditables - auditables
        Returns:
        map of AuditEventType to a Map of Auditable to the AuditEvent matching that type. Note: cannot secure this very easily since map key is a Class.
      • getNewSinceDate

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"})
        <T extends AuditableCollection<T> getNewSinceDate​(Class<T> auditableClass,
                                                            Date date)
      • getUpdatedSinceDate

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","AFTER_ACL_COLLECTION_READ"})
        <T extends AuditableCollection<T> getUpdatedSinceDate​(Class<T> auditableClass,
                                                                Date date)
        Parameters:
        date - date
        Returns:
        a collection of Auditable objects that were updated since the date entered. Note that this security setting works even though auditables aren't necessarily securable; non-securable auditables will be returned. See AclEntryAfterInvocationCollectionFilteringProvider and applicationContext-security.xml
      • hasEvent

        @Secured({"IS_AUTHENTICATED_ANONYMOUSLY","ACL_SECURABLE_READ"})
        boolean hasEvent​(Auditable a,
                         Class<? extends AuditEventType> type)