I use Fisheye and Crucible 4.5.1 and I am writing plugin for them.
I want to synchronize the directory forcibly. I use the following method for that in my plugin:
com.atlassian.crowd.manager.directory.DirectoryManager.synchroniseCache(dirId, SynchronisationMode.INCREMENTAL, true);
And this works, nessesary directory is synchronised. But I use "true" for the third parameter here. According to https://docs.atlassian.com/atlassian-crowd/2.9.5/com/atlassian/crowd/manager/directory/DirectoryManager.html#synchroniseCache-long-com.atlassian.crowd.manager.directory.SynchronisationMode-boolean- that means that "the synchronise will happen asynchronously".
I do not need to synchronise in background. In other word I need wait, while directory synchronisation is complete and only then do me next activities.
The problem is that when I use "false" instead of "true" the "synchroniseCache" method not work. I recive SocketTimeoutException, directory is not synchronized.
I use "DirectoryManager.synchroniseCache" with "false" in my Jira and Confluence plugins. It works here, directories are synchronised.
Is there some bug in Fisheye\Crucible or do I do something wrong?
How can I synchronize the directory to receive the information that synchronisation is complete?
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
...; ## Developed by: Alana Fernando ## Shared with love ## @param style:title=style type|type=enum|required=true|desc=Choose a style.|enumValues=Style1,Style2,Style3,Style4,Style5 ## @param alignment:title...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs