Interface IAuditManager

  • All Known Implementing Classes:
    LocalAuditManager

    public interface IAuditManager
    This interface describes all the things you can do with a history manager
    • Method Detail

      • findEvents

        List<AuditEvent> findEvents​(String group,
                                    String type,
                                    boolean unique)
                             throws HopException
        Find all the events for a certain group and of a given type.
        Parameters:
        group - The event group
        type - The event type
        unique - Set to true if you want to have a unique list by name
        Returns:
        The matching events reverse sorted by event date (last events first).
        Throws:
        HopException
      • storeList

        void storeList​(String group,
                       String type,
                       AuditList auditList)
                throws HopException
        Store a list
        Parameters:
        group - The group to which the list belongs
        type - The type of list you want to store
        auditList - The list to be stored
        Throws:
        HopException
      • retrieveList

        AuditList retrieveList​(String group,
                               String type)
                        throws HopException
        Retrieve a list of items of a certain group and type
        Parameters:
        group - The group to which the list belongs
        type - The type of list you want retrieved
        Returns:
        The list
        Throws:
        HopException
      • storeState

        void storeState​(String group,
                        String type,
                        AuditState auditState)
                 throws HopException
        Store the state of an object
        Parameters:
        group - the group to which the state belongs (namespace, environment, ...)
        type - the type of state (shell, perspective, ...)
        auditState - The audit state
        Throws:
        HopException - In case something goes wrong
      • retrieveState

        AuditState retrieveState​(String group,
                                 String type,
                                 String name)
                          throws HopException
        Retrieve the state of an object with a particular name
        Parameters:
        group - The group (namespace, environment)
        type - The type (file, window, perspective,...)
        name - filename, shell name, ...
        Returns:
        The state
        Throws:
        HopException - in case something goes wrong