Class AccessHistory


  • public class AccessHistory
    extends Object
    A singleton utility for retrieving AccessHistory data, even in versions of IIQ less than 8.4.

    This is useful for creating multi-version plugins.

    • Method Detail

      • get

        public static AccessHistory get()
                                 throws sailpoint.tools.GeneralException
        Gets an instance of the utility class with version-specific implementation classes already configured.
        Returns:
        An instance of AccessHistory
        Throws:
        sailpoint.tools.GeneralException - on failures
      • getAccessHistoryContext

        public Optional<sailpoint.api.SailPointContext> getAccessHistoryContext()
                                                                         throws sailpoint.tools.GeneralException
        Returns the SailPointContext associated with Access History
        Returns:
        The access history context, or an empty optional if not available
        Throws:
        sailpoint.tools.GeneralException
      • getAccessHistoryEnvironment

        public Optional<sailpoint.server.Environment> getAccessHistoryEnvironment()
                                                                           throws sailpoint.tools.GeneralException
        Returns the Environment associated with Access History
        Returns:
        The access history environment, or an empty optional if not available
        Throws:
        sailpoint.tools.GeneralException
      • isAccessHistoryEnabled

        public boolean isAccessHistoryEnabled()
        Returns true if access history is enabled.

        The result will be cached so that reflection is not used for every call of this method.

        Returns:
        True, if this is 8.4 and access history is enabled