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 voidafterPropertiesSet()AuthorizationMenugetMenuTree(String menuId)AuthorizationMenugetMenuTree(String menuRoot, String userId)AuthorizationMenugetMenuTreeByName(String menuRoot, String userId)AuthorizationMenugetMenuTreeForUserId(String menuId, String menuName, String userId)booleanisUserAuthenticatedToMenuWithURL(String userId, String url, String menuId, boolean defaultResult)voidsetApplicationContext(org.springframework.context.ApplicationContext ctx)voidsweep()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:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
getMenuTree
@Transactional(readOnly=true) public AuthorizationMenu getMenuTree(String menuId)
- Specified by:
getMenuTreein interfaceAuthorizationManagerMenuService- Overrides:
getMenuTreein 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:SweepablePlaceholder for Spring to call via Quartz. Required for @Transactional sweeper methods.
-
getMenuTree
public AuthorizationMenu getMenuTree(String menuRoot, String userId)
- Specified by:
getMenuTreein interfaceAuthorizationManagerMenuService
-
getMenuTreeByName
public AuthorizationMenu getMenuTreeByName(String menuRoot, String userId)
- Specified by:
getMenuTreeByNamein interfaceAuthorizationManagerMenuService
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
isUserAuthenticatedToMenuWithURL
public boolean isUserAuthenticatedToMenuWithURL(String userId, String url, String menuId, boolean defaultResult)
- Specified by:
isUserAuthenticatedToMenuWithURLin interfaceAuthorizationManagerMenuService
-
getMenuTreeForUserId
@Transactional(readOnly=true) public AuthorizationMenu getMenuTreeForUserId(String menuId, String menuName, String userId)
- Specified by:
getMenuTreeForUserIdin interfaceAuthorizationManagerMenuService
-
-