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
-
public class SecurityManagerDao extends AbstractDao
Provides a DAO for the SecurityManager entity.- Since:
- 3.5.0
- See Also:
SecurityManager
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description SecurityManagerDao()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
clearThreadLocalCache()
Deprecated.SecurityManager
getDefaultSecurityManager()
Return the default active Security Manager.SecurityManager
getSecurityManagerForName(String name)
Gets the security manager for name.SecurityManager
getSecurityManagerForPK(Object id)
Return the Security Manager instance for the given id.SecurityManager
getSecurityManagerForPortal(Portal portal)
Return the Security Manager for the given portal, or the default Security Manager if non associated.List<SecurityManager>
getSecurityManagerList()
Return the list of Security Managers.List<SecurityManager>
getSecurityManagerList(String keyword, boolean activeOnly)
Return the list of Security Managers for the given keyword and active status-
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
-
clearThreadLocalCache
@Deprecated public static void clearThreadLocalCache()
Deprecated.Clear the thread local security manager cache.- Since:
- 4.3.2
-
getSecurityManagerForPK
public SecurityManager getSecurityManagerForPK(Object id)
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
public SecurityManager getSecurityManagerForPortal(Portal portal) throws ApplicationException
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
public List<SecurityManager> getSecurityManagerList()
Return the list of Security Managers.- Returns:
- the list of Security Managers
-
getSecurityManagerList
public List<SecurityManager> getSecurityManagerList(String keyword, boolean activeOnly)
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
public SecurityManager getSecurityManagerForName(String name)
Gets the security manager for name.- Parameters:
name
- the name- Returns:
- the security manager for name
-
getDefaultSecurityManager
public SecurityManager 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)
-
-