Class AuthorizationManagerMenuServiceImpl
- java.lang.Object
-
- org.openiam.common.authmanager.service.AbstractAuthorizationManagerService
-
- org.openiam.authmanager.service.impl.AuthorizationManagerMenuServiceImpl
-
- All Implemented Interfaces:
AuthorizationManagerMenuService
,Sweepable
,org.springframework.beans.factory.Aware
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.ApplicationContextAware
@Service("authorizationManagerMenuService") public class AuthorizationManagerMenuServiceImpl extends AbstractAuthorizationManagerService implements AuthorizationManagerMenuService, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
-
-
Field Summary
-
Fields inherited from class org.openiam.common.authmanager.service.AbstractAuthorizationManagerService
membershipDAO, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description AuthorizationManagerMenuServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
AuthorizationMenu
getMenuTree(String menuId)
AuthorizationMenu
getMenuTree(String menuRoot, String userId)
AuthorizationMenu
getMenuTreeByName(String menuRoot, String userId)
AuthorizationMenu
getMenuTreeForUserId(String menuId, String menuName, String userId)
boolean
isUserAuthenticatedToMenuWithURL(String userId, String url, String menuId, boolean defaultResult)
void
setApplicationContext(org.springframework.context.ApplicationContext ctx)
void
sweep()
Placeholder for Spring to call via Quartz.-
Methods inherited from class org.openiam.common.authmanager.service.AbstractAuthorizationManagerService
createMenuTrees, getAccessRight, getAccessRight, getAllMenuTrees, getMembershipMapByEntityId, getMembershipMapByMemberEntityId, getMenus, getRightMap, localize
-
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
getMenuTree
@Transactional(readOnly=true) public AuthorizationMenu getMenuTree(String menuId)
- Specified by:
getMenuTree
in interfaceAuthorizationManagerMenuService
- Overrides:
getMenuTree
in classAbstractAuthorizationManagerService
-
sweep
@Transactional @Scheduled(fixedRateString="${org.openiam.authorization.manager.menu.threadsweep}", initialDelayString="${org.openiam.authorization.manager.menu.threadsweep}") public void sweep()
Description copied from interface:Sweepable
Placeholder for Spring to call via Quartz. Required for @Transactional sweeper methods.
-
getMenuTree
public AuthorizationMenu getMenuTree(String menuRoot, String userId)
- Specified by:
getMenuTree
in interfaceAuthorizationManagerMenuService
-
getMenuTreeByName
public AuthorizationMenu getMenuTreeByName(String menuRoot, String userId)
- Specified by:
getMenuTreeByName
in interfaceAuthorizationManagerMenuService
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
isUserAuthenticatedToMenuWithURL
public boolean isUserAuthenticatedToMenuWithURL(String userId, String url, String menuId, boolean defaultResult)
- Specified by:
isUserAuthenticatedToMenuWithURL
in interfaceAuthorizationManagerMenuService
-
getMenuTreeForUserId
@Transactional(readOnly=true) public AuthorizationMenu getMenuTreeForUserId(String menuId, String menuName, String userId)
- Specified by:
getMenuTreeForUserId
in interfaceAuthorizationManagerMenuService
-
-