Re: setting parameters by REST in 3.0.0 ?
On 03/02/23 11:49, Lionel SCHWARZ wrote: - Le 18 Nov 22, à 11:44, Francesco Chicchiriccò ilgro...@apache.org a écrit : Please note anyway that the preferred way to deal with configuration parameters from within Java code running inside a Syncope component is via the ConfParamOps interface [3]. Hi Francesco, I would like to use ConfParamOps to read configuration parameters from within a LogicActions implementation. Do you have an example how to use it? Hi, it should be to declare @Autowired private ConfParamOps confParamOps; in your LogicActions implementation. HTH Regards. -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail http://home.apache.org/~ilgrosso/
Re: setting parameters by REST in 3.0.0 ?
- Le 18 Nov 22, à 11:44, Francesco Chicchiriccò ilgro...@apache.org a écrit : > > Please note anyway that the preferred way to deal with configuration > parameters > from within Java code running inside a Syncope component is via the > ConfParamOps interface [3]. > Hi Francesco, I would like to use ConfParamOps to read configuration parameters from within a LogicActions implementation. Do you have an example how to use it? Cheers Lionel smime.p7s Description: S/MIME Cryptographic Signature
Re: setting parameters by REST in 3.0.0 ?
- Le 18 Nov 22, à 11:44, Francesco Chicchiriccò ilgro...@apache.org a écrit : > On 18/11/22 10:25, Lionel SCHWARZ wrote: >> Hi List, >> >> Does anyone know which 3.0.0 REST endpoint has replaced the 2.1 >> /configuration >> endpoint? > Hi Lionel, > as you can read from [1], in Syncope 3.0 the new component Keymaster is used > for: > > 1. dynamic service discovery > 2. key / value store for configuration parameters > 3. directory for defined domains > > (2) seems to be what you are looking for. > > In [1] it is also reported that Keymaster comes in two flavors: additional > REST > services for Core, or Zookeeper. > > Assuming you are with former option, the WADL description for such additional > services is available under > > /syncope/rest/keymaster?_wadl Thanks Francesco, this is what I was looking for (I had indeed noticed that the params are manageable via the AdminUI in the Keymaster menu...) Cheers Lionel smime.p7s Description: S/MIME Cryptographic Signature
Re: setting parameters by REST in 3.0.0 ?
On 18/11/22 10:25, Lionel SCHWARZ wrote: Hi List, Does anyone know which 3.0.0 REST endpoint has replaced the 2.1 /configuration endpoint? Hi Lionel, as you can read from [1], in Syncope 3.0 the new component Keymaster is used for: 1. dynamic service discovery 2. key / value store for configuration parameters 3. directory for defined domains (2) seems to be what you are looking for. In [1] it is also reported that Keymaster comes in two flavors: additional REST services for Core, or Zookeeper. Assuming you are with former option, the WADL description for such additional services is available under /syncope/rest/keymaster?_wadl See [2] for reference. Please note anyway that the preferred way to deal with configuration parameters from within Java code running inside a Syncope component is via the ConfParamOps interface [3]. HTH Regards. [1] https://syncope.apache.org/docs/3.0/reference-guide.html#keymaster [2] https://syncope-vm.apache.org/syncope/rest/keymaster?_wadl [3] https://syncope.apache.org/apidocs/3.0/org/apache/syncope/common/keymaster/client/api/ConfParamOps.html -- Francesco Chicchiriccò Tirasa - Open Source Excellence http://www.tirasa.net/ Member at The Apache Software Foundation Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail http://home.apache.org/~ilgrosso/
setting parameters by REST in 3.0.0 ?
Hi List, Does anyone know which 3.0.0 REST endpoint has replaced the 2.1 /configuration endpoint? Cheers Lionel smime.p7s Description: S/MIME Cryptographic Signature