Syncope docker images are harder to customize respect to the simple java artifacts generated with the "preferred method" for installation [4]. For this reason if you want to customize Syncope though Java classes, I suggest to you to get Syncope from archetype and deploy wars on your preferred application server.

Another solution, in order to continue working on docker, would be to implement your transformer (like other implementations) in Groovy that allows you to plugin scripts at runtime. So consider using a Groovy implementation for your transformer. The code is likely to be the identical to the Java one.

Best regards,
Andrea

Il 31/07/19 13:39, Noah Hansen . ha scritto:
We were able to get the class created but we are still struggling with finding where org.apache.syncope.core.provisioning.java.data is properly located within the docker instance.
Some help would be greatly appreciated

thanks,
-Noah

On Tue, Jul 30, 2019 at 10:45 AM Andrea Patricelli <[email protected] <mailto:[email protected]>> wrote:

    You should create your own transformer class and place it in your
    sources in the right path (class package). Like described here [2]:

    /"transformers -//JEXL
    <http://commons.apache.org/proper/commons-jexl/>//expression or
    Java class implementing//ItemTransformer
    
<https://github.com/apache/syncope/blob/syncope-2.1.4/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java>//;
    the purpose is to transform values before they are sent to or
    received from the underlying connector"
    /

    So basically you need to implement the interface [3] with your
    custom transformer and place it under
    org.apache.syncope.core.provisioning.java.data

    Best regards,
    Andrea
    //

    [2] https://syncope.apache.org/docs/2.1/reference-guide.html#mapping

    [3]
    
https://github.com/apache/syncope/blob/syncope-2.1.4/core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/data/ItemTransformer.java

    Il 30/07/19 16:28, Noah Hansen . ha scritto:
    There are no classes showing up while creating it. That's the
    problem I'm having
    -Noah

    On Tue, Jul 30, 2019 at 10:03 AM Andrea Patricelli
    <[email protected]
    <mailto:[email protected]>> wrote:

        Hi Noah,

        if you are using 2.1.X version you should first create an
        implementation
        [1] of ITEM_TRANSFORMER and while creating the implementation
        you will
        be asked for the class. Then you can use the just created
        implementation
        into item transformer field while editing provisioning rules.

        HTH,
        Andrea

        [1]
        https://syncope.apache.org/docs/2.1/reference-guide.html#implementations

        Il 30/07/19 15:55, Noah Hansen . ha scritto:
        > Hi All,
        >
        > I'm trying to user item_transformers in the implementation
        section and
        > can't figure out how? When I try to create a new
        transformer it won't
        > let me choose a class. How do I add a class?
        >
        > Thanks
        > -Noah

-- Dott. Andrea Patricelli
        Tel. +39 3204524292

        Engineer @ Tirasa S.r.l.
        Viale Vittoria Colonna 97 - 65127 Pescara
        Tel +39 0859116307 / FAX +39 0859111173
        http://www.tirasa.net

        Apache Syncope PMC Member

-- Dott. Andrea Patricelli
    Tel. +39 3204524292

    Engineer @ Tirasa S.r.l.
    Viale Vittoria Colonna 97 - 65127 Pescara
    Tel +39 0859116307 / FAX +39 0859111173
    http://www.tirasa.net

    Apache Syncope PMC Member

--
Dott. Andrea Patricelli
Tel. +39 3204524292

Engineer @ Tirasa S.r.l.
Viale Vittoria Colonna 97 - 65127 Pescara
Tel +39 0859116307 / FAX +39 0859111173
http://www.tirasa.net

Apache Syncope PMC Member

Reply via email to