Package com.avoka.fc.core.dao
Class SecurityManagerLogDao
- java.lang.Object
-
- com.avoka.core.dao.BaseDao
-
- com.avoka.fc.core.dao.AbstractDao
-
- com.avoka.fc.core.dao.SecurityManagerLogDao
-
public class SecurityManagerLogDao extends AbstractDao
Provides a DAO for the SecurityManagerLog entity.- Since:
- 5.1.0
- See Also:
SecurityManagerLog
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description SecurityManagerLogDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityManagerLog
createLog(SecurityManager sm, Portal portal, HttpServletRequest request, Integer responseStatus, String responseRedirect, ErrorLog errorLog, StringBuilder logMessage)
Create a SecurityManagerLog object from the given parameters.List<SecurityManagerLog>
getLog(String clientId, String securityManagerId, String portalId, Date startDate, Date endDate, int pageSize, Integer fetchLimit)
Provides a security manager log search page.int
purgeLog(int maxAgeDays, int fetchLimit, long maxTimeMs)
Delete SecurityManagerLog records older than a specified number of days.-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
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 idsecurityManagerId
- the security manager idportalId
- the security manager idstartDate
- the start dateendDate
- the end datepageSize
- the paging sizefetchLimit
- the fetch limit- Returns:
- security manager log list
-
-