Package com.avoka.fc.core.dao
Class SecurityManagerDao
java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.SecurityManagerDao
Provides a DAO for the SecurityManager entity.
- Since:
- 3.5.0
- See Also:
-
Field Summary
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Deprecated.Return the default active Security Manager.Gets the security manager for name.Return the Security Manager instance for the given id.getSecurityManagerForPortal
(Portal portal) Return the Security Manager for the given portal, or the default Security Manager if non associated.Return the list of Security Managers.getSecurityManagerList
(String keyword, boolean activeOnly) Return the list of Security Managers for the given keyword and active statusMethods 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
-
Constructor Details
-
SecurityManagerDao
public SecurityManagerDao()
-
-
Method Details
-
clearThreadLocalCache
Deprecated.Clear the thread local security manager cache.- Since:
- 4.3.2
-
getSecurityManagerForPK
Return the Security Manager instance for the given id.- Parameters:
id
- the security manager identifier- Returns:
- the Security Manager instance for the given id
-
getSecurityManagerForPortal
Return the Security Manager for the given portal, or the default Security Manager if non associated.- Parameters:
portal
- the request portal- Returns:
- the Security Manager for the given portal, or the default Security Manager if non associated
- Throws:
ApplicationException
- if the security manager could not be resolved (implying that there is no global default security manager defined)
-
getSecurityManagerList
Return the list of Security Managers.- Returns:
- the list of Security Managers
-
getSecurityManagerList
Return the list of Security Managers for the given keyword and active status- Parameters:
keyword
- the search keywordactiveOnly
- specify whether to only show active security manager- Returns:
- the list of Security Managers
-
getSecurityManagerForName
Gets the security manager for name.- Parameters:
name
- the name- Returns:
- the security manager for name
-
getDefaultSecurityManager
Return the default active Security Manager.- Returns:
- the default active Security Manager, or null if none is defined (this may be an error case but this needs to be checked by the caller - this method is used in circumstances where there might legitimately not be a security manager)
-