Custom Operation for make ip address and port read only based on the user role
Is there any possibility to implementing a custom TCP Operation (or any other possible way) which can enable/disable (readonly) the controllers such as ipaddress and port. This need to be done based on the role of the user logged in to the management portal.
Appreciate if anyone can provide sample code around this...
Can you elaborate on that? What do you want to do?
I think the intent is to limit configuration control of business hosts in an Ensemble production based on user role. Effectively, prevent a Cache/Ensemble user from changing the IP address or port number of a TCP/IP Business Operation through the Management Console without restricting the ability to view the settings.
exactly, that's what I meant initially
You can give user %EnsRole_Operator role:
Role for operation staff managing the day-to-day status of a particular production. Users assigned to this role have the Read permission on the current configuration to determine what settings and code are in effect, but do not have permissions to modify the configuration. Operations staff may start and stop interfaces, and may start and stop the production. They do not have access to the contents of messages, but may resend messages which cause issues. Operators may view queue and job information, and may inspect the settings for purges, alerts, credentials, and lookup tables.
Other approach would be readonly access the tables of the Ens.Config package.
Can you please provide example of OnValidate?
Here's what I tried and it does not work:
Hi,
I had a closer look, and it is not actually an "OnValidate" method per se that exists for use,..- but the feature does exist...
You need to create a <setting>IsValid() method. something like this:
Hope this helps.
Steve
<Prop>IsValid is one of the autogenerated property methods.
It would fire on object save and work in this situation.
Nice.
Hi
I've not validate this suggestion by trying this myself yet,...so just an idea: I do know that when defining custom settings for an adapter, you are given an OnValidate callback of sorts to validate user input.
You could put security checks (check if user holds a custom resources) in that method.
You may need to do a simple subclass of your to adapter to implement correctly though.
Steve