You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@atlas.apache.org by Emiliano Carlesi <em...@itattitude.com> on 2018/11/22 15:52:23 UTC

How to create custom properties

Hi,
I'm studying Atlas and I have a question that I cannot find an answer to, is it possible to define custom properties? I saw that the AttributeDefinition class defines properties (name, dataTypeName, multiplicity, etc), is there any way to add some of my own?

Thanks!

Ciao

Emiliano Carlesi

Email: emiliano.carlesi@itattitude.com
Skype for Business: emiliano.carlesi@itattitude.com
Skype: emiliano.carlesi
Mobile: +39 3487837153
Phone: +39 0650939115

Le informazioni contenute nella presente comunicazione e i relativi allegati contenuti in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato. Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietata. Nel caso in cui aveste ricevuto questa mail per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p. , che ai sensi del Regolamento UE 679/2016.



RE: How to create custom properties

Posted by Emiliano Carlesi <em...@itattitude.com>.
Hi Madhan,
Thanks for your time, as first 😊

Your answer seems to solve my doubt. I do some tests and eventually update you.

Thank you so much

Best Regards

Emiliano Carlesi

Email: emiliano.carlesi@itattitude.com
Skype for Business: emiliano.carlesi@itattitude.com
Skype: emiliano.carlesi
Mobile: +39 3487837153
Phone: +39 0650939115

Le informazioni contenute nella presente comunicazione e i relativi allegati contenuti in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato. Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietata. Nel caso in cui aveste ricevuto questa mail per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell’art. 616 c.p. , che ai sensi del Regolamento UE 679/2016.


-----Original Message-----
From: Madhan Neethiraj <ma...@apache.org> 
Sent: Sunday, November 25, 2018 9:47 PM
To: user@atlas.apache.org; Emiliano Carlesi <em...@itattitude.com>
Subject: Re: How to create custom properties

Hello,

Consider using V2 APIs to work with types. AtlasAttributeDef, V2 equivalent of AttributeDefintion, has a field named 'options' (of type 'Map<String, String>') where you can store additional properties.

AtlasAttributeDef: https://github.com/apache/atlas/blob/master/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java#L261
V2 Types API: http://atlas.apache.org/api/v2/resource_TypesREST.html

Hope this helps. If this doesn't address your needs, can you please add details of the requirement with an example?

Thanks,
Madhan

On 11/22/18, 7:52 AM, "Emiliano Carlesi" <em...@itattitude.com> wrote:

    Hi,
    I'm studying Atlas and I have a question that I cannot find an answer to, is it possible to define custom properties? I saw that the AttributeDefinition class defines properties (name, dataTypeName, multiplicity, etc), is there any way to add some of my own?
    
    Thanks!
    
    Ciao
    
    Emiliano Carlesi
    
    Email: emiliano.carlesi@itattitude.com
    Skype for Business: emiliano.carlesi@itattitude.com
    Skype: emiliano.carlesi
    Mobile: +39 3487837153
    Phone: +39 0650939115
    
    Le informazioni contenute nella presente comunicazione e i relativi allegati contenuti in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato. Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietata. Nel caso in cui aveste ricevuto questa mail per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p. , che ai sensi del Regolamento UE 679/2016.
    
    
    



Re: How to create custom properties

Posted by Madhan Neethiraj <ma...@apache.org>.
Hello,

Consider using V2 APIs to work with types. AtlasAttributeDef, V2 equivalent of AttributeDefintion, has a field named 'options' (of type 'Map<String, String>') where you can store additional properties.

AtlasAttributeDef: https://github.com/apache/atlas/blob/master/intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java#L261
V2 Types API: http://atlas.apache.org/api/v2/resource_TypesREST.html

Hope this helps. If this doesn't address your needs, can you please add details of the requirement with an example?

Thanks,
Madhan

On 11/22/18, 7:52 AM, "Emiliano Carlesi" <em...@itattitude.com> wrote:

    Hi,
    I'm studying Atlas and I have a question that I cannot find an answer to, is it possible to define custom properties? I saw that the AttributeDefinition class defines properties (name, dataTypeName, multiplicity, etc), is there any way to add some of my own?
    
    Thanks!
    
    Ciao
    
    Emiliano Carlesi
    
    Email: emiliano.carlesi@itattitude.com
    Skype for Business: emiliano.carlesi@itattitude.com
    Skype: emiliano.carlesi
    Mobile: +39 3487837153
    Phone: +39 0650939115
    
    Le informazioni contenute nella presente comunicazione e i relativi allegati contenuti in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato. Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietata. Nel caso in cui aveste ricevuto questa mail per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio. La diffusione, distribuzione e/o copiatura del documento trasmesso da parte di qualsiasi soggetto diverso dal destinatario è proibita, sia ai sensi dell'art. 616 c.p. , che ai sensi del Regolamento UE 679/2016.