Class SecurityManagerLogDao


  • public class SecurityManagerLogDao
    extends AbstractDao
    Provides a DAO for the SecurityManagerLog entity.
    Since:
    5.1.0
    See Also:
    SecurityManagerLog
    • Constructor Detail

      • SecurityManagerLogDao

        public SecurityManagerLogDao()
    • Method Detail

      • createLog

        public SecurityManagerLog createLog​(SecurityManager sm,
                                            Portal portal,
                                            HttpServletRequest request,
                                            Integer responseStatus,
                                            String responseRedirect,
                                            ErrorLog errorLog,
                                            StringBuilder logMessage)
        Create a SecurityManagerLog object from the given parameters.
        Parameters:
        sm - the security manager (required)
        portal - the associated portal (required)
        request - the servlet request (required)
        responseStatus - the response HTTP status (optional)
        responseRedirect - the response redirect target (optional)
        errorLog - the associated error log (optional)
        logMessage - the security manager log data (optional)
        Returns:
        a new SecurityManagerLog object
      • purgeLog

        public int purgeLog​(int maxAgeDays,
                            int fetchLimit,
                            long maxTimeMs)
        Delete SecurityManagerLog records older than a specified number of days.
        Parameters:
        maxAgeDays - The age in days above which records will be deleted.
        fetchLimit - the maximum number of records to delete (only used if > 0)
        maxTimeMs - the maximum time that can be used to purge records
        Returns:
        the number of records that were deleted
      • getLog

        public List<SecurityManagerLog> getLog​(String clientId,
                                               String securityManagerId,
                                               String portalId,
                                               Date startDate,
                                               Date endDate,
                                               int pageSize,
                                               Integer fetchLimit)
        Provides a security manager log search page.
        Parameters:
        clientId - the client id
        securityManagerId - the security manager id
        portalId - the security manager id
        startDate - the start date
        endDate - the end date
        pageSize - the paging size
        fetchLimit - the fetch limit
        Returns:
        security manager log list