Package com.skava.auth.util
Class AuthorizationEventUtil
java.lang.Object
com.skava.auth.util.AuthorizationEventUtil
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
buildClientEventData
(com.skava.core.event.EventClientComponent eventClientComponent, List<ClientRolesVO> clientroles, CollectionVO collectionVO, String authToken, long storeId) This method used to build event datastatic void
buildClientEventData
(com.skava.core.event.EventClientComponent eventClientComponent, List<ClientRolesVO> addedClientroles, List<ClientRolesVO> removedClientroles, List<ClientRolesVO> updatedClientRoles, Collection collection, String authToken, long storeId) This method used to build event datastatic void
buildEventData
(com.skava.core.event.EventClientComponent eventClientComponent, List<UserRolesVO> userroles, CollectionVO collectionVO, String authToken, long storeId) This method used to build event datastatic void
buildEventData
(com.skava.core.event.EventClientComponent eventClientComponent, List<UserRolesVO> addedUserroles, List<UserRolesVO> removedUserroles, List<UserRolesVO> updatedUserRoles, Collection collection, String authToken, long storeId) This method used to build event datastatic <T> void
sendingNotificationForRole
(com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.event.Message<T> authMessage, String routingKey, Collection collection, long storeId) This method is used to send Notification to user if any user or client roles added or updated.
-
Method Details
-
sendingNotificationForRole
public static <T> void sendingNotificationForRole(com.skava.core.event.EventClientComponent eventClientComponent, com.skava.core.event.Message<T> authMessage, String routingKey, Collection collection, long storeId) This method is used to send Notification to user if any user or client roles added or updated. This will send an event to Notification services through message queue.- Type Parameters:
T
- type of the event PayLoad.- Parameters:
eventClientComponent
- HoldsEventClientComponent
object which is used send event to topic which is used to send notification.authMessage
- HoldsMessage
object which contains payload details.routingKey
- Indicates the routing key of the event triggered.collection
- HoldsCollection
object which is used to get collection id and business id for events.storeId
- Indicates the store id.
-
buildEventData
public static void buildEventData(com.skava.core.event.EventClientComponent eventClientComponent, List<UserRolesVO> userroles, CollectionVO collectionVO, String authToken, long storeId) This method used to build event data- Parameters:
eventClientComponent
- the eventClientComponentuserroles
- the userrolescollectionVO
- the collectionVOauthToken
- token of the user who adds the roles to the user.storeId
- the storeId
-
buildClientEventData
public static void buildClientEventData(com.skava.core.event.EventClientComponent eventClientComponent, List<ClientRolesVO> clientroles, CollectionVO collectionVO, String authToken, long storeId) This method used to build event data- Parameters:
eventClientComponent
- eventClientComponentclientroles
- the clientrolescollectionVO
- the collectionVOauthToken
- token of the user who adds the roles to the user.storeId
- the storeId
-
buildEventData
public static void buildEventData(com.skava.core.event.EventClientComponent eventClientComponent, List<UserRolesVO> addedUserroles, List<UserRolesVO> removedUserroles, List<UserRolesVO> updatedUserRoles, Collection collection, String authToken, long storeId) This method used to build event data- Parameters:
eventClientComponent
- eventClientComponentaddedUserroles
- addedUserrolesremovedUserroles
- removedUserrolesupdatedUserRoles
- updatedUserRolescollection
- collectionauthToken
- token of the user who adds the roles to the user.storeId
- storeId
-
buildClientEventData
public static void buildClientEventData(com.skava.core.event.EventClientComponent eventClientComponent, List<ClientRolesVO> addedClientroles, List<ClientRolesVO> removedClientroles, List<ClientRolesVO> updatedClientRoles, Collection collection, String authToken, long storeId) This method used to build event data- Parameters:
eventClientComponent
- eventClientComponentaddedClientroles
- addedClientrolesremovedClientroles
- removedClientrolesupdatedClientRoles
- updatedClientRolescollection
- collectionauthToken
- token of the user who adds the roles to the user.storeId
- storeId
-