Package org.openiam.srvc.am
Class AuthorizationManagerMenuWebServiceImpl
- java.lang.Object
-
- org.openiam.srvc.AbstractApiService
-
- org.openiam.srvc.am.AuthorizationManagerMenuWebServiceImpl
-
- All Implemented Interfaces:
AuthorizationManagerMenuWebService
@Service("authorizationManagerMenuWebService") public class AuthorizationManagerMenuWebServiceImpl extends AbstractApiService implements AuthorizationManagerMenuWebService
-
-
Field Summary
-
Fields inherited from class org.openiam.srvc.AbstractApiService
applicationContext, rabbitMQSender
-
-
Constructor Summary
Constructors Constructor Description AuthorizationManagerMenuWebServiceImpl(AMMenuQueue queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MenuSaveResponsedeleteMenuTree(String rootId)Responseentitle(MenuEntitlementsRequest menuEntitlementsRequest)AuthorizationMenugetMenuTree(String menuId)AuthorizationMenugetMenuTreeForUserId(MenuRequest request)AuthorizationMenugetNonCachedMenuTree(String menuId, String principalId, String principalType)This method gets a non-cached version of a user's, group's, role's, or resource's entitlements to a particular tree.booleanisUserAuthenticatedToMenuWithURL(String userId, String url, String menuId, boolean defaultResult)MenuSaveResponsesaveMenuTree(AuthorizationMenu root)Called after the menu tree has been validatedResponsesweep()-
Methods inherited from class org.openiam.srvc.AbstractApiService
broadcast, crudRequest, getBooleanValue, getIntValue, getIntValue, getRabbitMqQueue, getResponse, getResponse, getValue, getValue, getValueList, getValueList, idRequest, manageApiRequest, manageApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, manageCrudApiRequest, membershipRequestProcessing, membershipRequestProcessing, publish, publish, sendAsync, sendAsync
-
-
-
-
Constructor Detail
-
AuthorizationManagerMenuWebServiceImpl
@Autowired public AuthorizationManagerMenuWebServiceImpl(AMMenuQueue queue)
-
-
Method Detail
-
getMenuTreeForUserId
public AuthorizationMenu getMenuTreeForUserId(MenuRequest request)
- Specified by:
getMenuTreeForUserIdin interfaceAuthorizationManagerMenuWebService
-
getMenuTree
public AuthorizationMenu getMenuTree(String menuId)
- Specified by:
getMenuTreein interfaceAuthorizationManagerMenuWebService
-
getNonCachedMenuTree
public AuthorizationMenu getNonCachedMenuTree(String menuId, String principalId, String principalType)
Description copied from interface:AuthorizationManagerMenuWebServiceThis method gets a non-cached version of a user's, group's, role's, or resource's entitlements to a particular tree. It should NOT be called by anything that requires good performance, as this method will make lots and lots of DB calls before completing. It is designed for use ONLY for Admin purposes, nothing more. If you call this method outside of an Administrative console - don't call it.- Specified by:
getNonCachedMenuTreein interfaceAuthorizationManagerMenuWebService- Parameters:
menuId- - ID of the menuprincipalId- - the "id" of the user, group, role, or resourceprincipalType- - the "type" represented by theprincipalId
. Valid values are 'group', 'role', 'user', or 'resource'- Returns:
- An AuthorizationMenu representing the tree, and the entity's entitlements to this tree. Returns null if the menu can't be found, or of the principal of the type can't be found.
-
deleteMenuTree
public MenuSaveResponse deleteMenuTree(String rootId)
- Specified by:
deleteMenuTreein interfaceAuthorizationManagerMenuWebService
-
isUserAuthenticatedToMenuWithURL
public boolean isUserAuthenticatedToMenuWithURL(String userId, String url, String menuId, boolean defaultResult)
- Specified by:
isUserAuthenticatedToMenuWithURLin interfaceAuthorizationManagerMenuWebService
-
sweep
public Response sweep()
- Specified by:
sweepin interfaceAuthorizationManagerMenuWebService
-
saveMenuTree
public MenuSaveResponse saveMenuTree(AuthorizationMenu root)
Description copied from interface:AuthorizationManagerMenuWebServiceCalled after the menu tree has been validated- Specified by:
saveMenuTreein interfaceAuthorizationManagerMenuWebService- Parameters:
root- - root of the menu tree- Returns:
-
entitle
public Response entitle(MenuEntitlementsRequest menuEntitlementsRequest)
- Specified by:
entitlein interfaceAuthorizationManagerMenuWebService
-
-