@Override
@Async
public Future<Void> processBusinessObjectDataNotificationEventAsync(NotificationEventTypeEntity.EventTypesBdata notificationEventType,
BusinessObjectDataKey businessObjectDataKey, String newBusinessObjectDataStatus, String oldBusinessObjectDataStatus)
{
/*
* Need to clear the security context here since the current thread may have been reused, which may might have left over its security context. If we do
* not clear the security context, any subsequent calls may be restricted by the permissions given to the previous thread's security context.
*/
SecurityContextHolder.clearContext();
processBusinessObjectDataNotificationEventSync(notificationEventType, businessObjectDataKey, newBusinessObjectDataStatus, oldBusinessObjectDataStatus);
// Return an AsyncResult so callers will know the future is "done". They can call "isDone" to know when this method has completed and they
// can call "get" to see if any exceptions were thrown.
return new AsyncResult<>(null);
}
NotificationEventServiceImpl.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:herd
作者:
评论列表
文章目录