Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Using email id as Node name

hptarora
Level 2
Level 2

Hi,

 

I have a form to grab email id and other info for registration and saving as nodes.

 

I just want an advice on how right or safe to use email id as Node name.

 

Thanks

1 Accepted Solution
asutosh_jena
Correct answer by
Community Advisor
Community Advisor

Hi @hptarora 

If your application requires any specific logic to create node based on certain name you can use that else you can generate node name using UUID:

UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString();

 

Now all the form values can be stored as a node property in the node so it will be something like below:

asutosh_jena_0-1621231196403.png

 

Thanks! 

View solution in original post

5 Replies
asutosh_jena
Correct answer by
Community Advisor
Community Advisor

Hi @hptarora 

If your application requires any specific logic to create node based on certain name you can use that else you can generate node name using UUID:

UUID uuid = UUID.randomUUID();
String nodeName = uuid.toString();

 

Now all the form values can be stored as a node property in the node so it will be something like below:

asutosh_jena_0-1621231196403.png

 

Thanks! 

View solution in original post

asutosh_jena
Community Advisor
Community Advisor

@hptarora There is no such documentation, but this might be helpful where it says 150 chars.

https://issues.apache.org/jira/browse/OAK-2644

 

You can put upto 350 characters (500 characters is max) as per the above ticket.

 

But using the GUID should not be an issue as I am using already this on my system and it works perfectly fine.

Arun_Patidar
Community Advisor
Community Advisor

Hi,

you can encode an email to get a unique node name and use that as a node name.

https://www.base64encode.org/ 

Varun_Shakya
Community Advisor
Community Advisor