UserManager supported?

Forum to discuss the new web client version of Servoy.

UserManager supported?

Postby rieder » Tue Nov 08, 2016 1:04 pm

Hi

Can we use the UserManager Plugin for an NGClient?

Thanks and regards
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby patrick » Tue Nov 08, 2016 1:17 pm

It's a plugin, not a bean, so why not? Some features are obviously deployment specific and might just not work as in other clients. What specifically are you interested in using?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: UserManager supported?

Postby edwin.boon » Tue Nov 08, 2016 2:23 pm

Sorry for interrupting in this topic but I was going to ask the same question about this plugin. I add it to my plugins and made a war export.
When I deploy my war I get the following error on the admin page: 'Error occured loading server plugin class com.drmaison.plugin.usermanager.UserManagerServer'

My main question was about compatibility with the NGclient but maybe I'm doing something wrong with the install of the plugin?
edwin.boon
 
Posts: 19
Joined: Fri Jul 29, 2016 11:40 am

Re: UserManager supported?

Postby patrick » Tue Nov 08, 2016 2:35 pm

What is likely the problem is that some libraries required by the plugin are not automatically included in the war export (see https://forum.servoy.com/viewtopic.php?p=113448).

This should be possible with 8.1.1 (see https://support.servoy.com/browse/SVY-10434)
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: UserManager supported?

Postby edwin.boon » Tue Nov 08, 2016 2:50 pm

thank you for the reply. I was missing a library in the export.
edwin.boon
 
Posts: 19
Joined: Fri Jul 29, 2016 11:40 am

Re: UserManager supported?

Postby patrick » Tue Nov 08, 2016 2:56 pm

So now all is fine?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: UserManager supported?

Postby rieder » Tue Nov 08, 2016 4:00 pm

I asked because we couldn't get it working. And we didn't know if we should investigate more in finding the right configuration, or if there are problems not related to us.

Thanks for the reply. Do you know when 8.1.1 will be available?
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby edwin.boon » Tue Nov 08, 2016 5:10 pm

patrick wrote:So now all is fine?


Yes its all working right now. I got the plugin from a colleagues and that one failed so i reinstalled it with the Servoy Plugin installer and got the extra option to select when I was export the war.
After I select the missing plugin everything worked just fine.
edwin.boon
 
Posts: 19
Joined: Fri Jul 29, 2016 11:40 am

Re: UserManager supported?

Postby rieder » Tue Nov 08, 2016 7:20 pm

What version of Servoy did you use to get it work?
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby steve1376656734 » Wed Nov 09, 2016 12:05 pm

Hi,

I am using the UserManager plugin with version 8.1.0 in a web client environment without any issues. I have also tried using the NGClient for our solution and although there are many styling issues to be resolved the UserManager element of it works just fine.

Steve
Steve
SAN Developer
There are 10 types of people in the world - those that understand binary and those that don't
steve1376656734
 
Posts: 330
Joined: Fri Aug 16, 2013 2:38 pm
Location: Ashford, UK

Re: UserManager supported?

Postby rieder » Wed Nov 09, 2016 4:11 pm

Thank you, Steve. So it's worth to give it another try in 8.1.0.

Best regards to everyone who answered
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby rieder » Thu Jul 06, 2023 11:11 am

Is it ready for Servoy 2022.09 and further (entry point defined)?
Regards
Birgit
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby mboegem » Thu Jul 06, 2023 2:23 pm

rieder wrote:Is it ready for Servoy 2022.09 and further (entry point defined)?


I've asked Patrick Ruhsert about this recently and he is not supporting it anymore and recommends to use substitute functions.

Some of its functionality is already possible using the clientmanager plugin though.
Any stream/download of files should also be possible using the file plugin (considering you're on (Ti)NG)

Maybe you can determine which functions you need substitutes for and publish it here?
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1750
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: UserManager supported?

Postby rieder » Thu Jul 06, 2023 2:47 pm

Hi Marc

Thank you for the answer. Good to know that we should replace the functions. I just checked, we use
Server.getSettingsProperty(key)
Client.maxIdleTime(minutes)
Client.applicationType()
.getSmartClients()

Best regards
Birgit
Birgit Rieder
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
rieder
 
Posts: 177
Joined: Thu Jan 26, 2012 5:18 pm

Re: UserManager supported?

Postby patrick » Thu Jul 06, 2023 3:21 pm

Hello Birgit,

you should replace the plugin with basically the following:

- Client.applicationType()
-> when asked in the client your are in: application.getApplicationType()
-> when asked for any other client: plugins.clientmanager has a method getConnectedClients() which gives you an array of JSClientInformation, where you have getApplicationType() again

- .getSmartClients()
-> as above plugins.clientmanager.getConnectedClients() and then filter out the smart clients

- Client.maxIdleTime(minutes)
-> JSClientInformation also has getIdleTime() for each client and plugins.clientmanager also has a shutDownClient(clientId), so you can quite easily run a batch job for example that goes over all clients and disconnects idle ones

- Server.getSettingsProperty(key)
-> which property are you interested in and why / what do you do with it?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Next

Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 6 guests