Hi,
i’m a new user of this incredibile platform … i’m trying all features of platform that I’m trying to plan several projects, so, i have a couple of questions
my actual scenario is customizing the sales sample application (added a bunch of new entity, modified some existing entities, enabled RESP API modules etc etc)
how can i
enable administrative menu only for admin users ?
limits the user session up to 20
add custom rest controller (i have to enable “portal module” into Cuba Studio project ?)
add soap service
deploy application to “remote tomcat server”
I apologize for the many questions but I’m really excited by this platform
Hi, 1. enable administrative menu only for admin users ?
Screen restrictions could be set up for roles. To deny Administrative menu for users:
a) create a role (administration->Roles)
b) on the Screens tab set “Deny” for the Administration menu
c) assign the role to new users
For more info see the following documentation:
[url=https://doc.cuba-platform.com/manual-6.2/roles.html]https://doc.cuba-platform.com/manual-6.2/roles.html[/url]
[url=https://doc.cuba-platform.com/manual-6.2/roles_example.html]https://doc.cuba-platform.com/manual-6.2/roles_example.html[/url]
2. limits the user session up to 20
The sample project, which illustrates login restrictions is available here [url=https://github.com/cuba-platform/sample-login-restrictions]https://github.com/cuba-platform/sample-login-restrictions[/url]
It also could be downloaded by Studio: find it on the Samples tab.
As we see, count of already logged in users could be determined by calling the UserSessionsAPI.getUserSessionInfo().size()
3. add custom rest controller (i have to enable “portal module” into Cuba Studio project ?)
Information about CUBA REST API you can find in the documentation:
[url=https://doc.cuba-platform.com/manual-6.2/rest_api.html]https://doc.cuba-platform.com/manual-6.2/rest_api.html[/url]
Also, Studio has an instrument for deployment straight to the Jelastic cloud: [url=https://doc.cuba-platform.com/manual-6.2/jelastic_deployment.html]https://doc.cuba-platform.com/manual-6.2/jelastic_deployment.html[/url]
Two cloud providers (Mirhosting and Layershift) give special conditions of trial period for users registered via the Studio (open the Cloud deployment settings page and you will see the registration panel): trial period is enlarged to 30 days and more cloud resources are available for free. So more powerful environments might be used to test and run your CUBA-applications.
enable administrative menu only for admin users ?
ok
limits the user session up to 20
ok
add custom rest controller (i have to enable “portal module” into Cuba Studio project ?)
ok
add soap service
ok, here I expressed myself badly … I meant how to add a SOAP interface to my web application, and then what class i have to override or add into projct via IDE ?
anyway, for consuming SOAP o REST service i have to create a bean for my application ?
deploy application to "remote tomcat server"
thanks, i will try