Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Permission revocation
Permission revocation [message #1069912] Tue, 16 July 2013 17:37 Go to next message
Eclipse UserFriend
Hi!

How could one for example at closing session time revoke all permissions of the current user, since the proxy implementation of IAccessControlService is nop at clearCacheOfUserIds(String... userIds)?
Re: Permission revocation [message #1070317 is a reply to message #1069912] Wed, 17 July 2013 14:15 Go to previous message
Eclipse UserFriend
Ok, I found the solution,

one should do something like this in AbstractClientSession :

@Override
protected void execStoreSession() throws ProcessingException {

	...
	SERVICES.getService(IAccessControlService.class).clearCache();// Proxy call!
	...
}


The clearCache() call will just clear the currentUser's cache and then afterwards a call to the remote IAccessControlService#getPermissions() will be made on the Scout server.

So that if one gets its permissions from a custom store as I do, he has to give the Scout server side's AbstractAccessControlService#m_accessControlStore a chance to to reset the currentUser's permissions, by calling AbstractAccessControlService#clearCacheOfUserIds(String... userIds) otherwise he will wait for 3600 seconds that is the store's TTL

Thanks
Previous Topic:Multiline Text Table for Images with RAP
Next Topic:Set Font on GroupBox Expandable
Goto Forum:
  


Current Time: Tue Jul 22 18:01:15 EDT 2025

Powered by FUDForum. Page generated in 0.04363 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top