{"id":229,"date":"2013-06-08T15:44:33","date_gmt":"2013-06-08T15:44:33","guid":{"rendered":"http:\/\/www.corrspt.com\/blog\/?p=229"},"modified":"2013-06-08T15:44:33","modified_gmt":"2013-06-08T15:44:33","slug":"creating-users-in-a-xeo-application","status":"publish","type":"post","link":"https:\/\/www.corrspt.com\/blog\/2013\/06\/08\/creating-users-in-a-xeo-application\/","title":{"rendered":"Creating users in a XEO Application"},"content":{"rendered":"<p>When building any web application, one of the first requirements is to have the concept of a user who can login to the application. In order create users in a new XEO Application you can do the following:<\/p>\n<p>If you only need a user without any application-specific attributes, you can use Ebo_Perf instances (a model that comes bundled with the XEO Framework). To create users, login with the SYUSER with the XEO Administration Profile and click on the &#8220;Users&#8221; menu. \u00a0It will list the current users and let you create new ones.<\/p>\n<p>Now, if you want to create new users, but you want them to have application-specific attributes? XEO comes bundled with an interface iXEOUser.ixeomodel that you can implement in your models. Whenever a Model implements the iXEOUser interface its instances become a user (the iXEOUser interface provides a username and password attribute).<\/p>\n<p>So, how do you implement an Interface? In Eclipse, open the Model that you want to make a user from and under the &#8220;general&#8221; section click the &#8220;edit&#8221; button. In the right pane find the implemented interfaces section and click the plus button, save and build.<\/p>\n<div id=\"attachment_230\" style=\"width: 666px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.corrspt.com\/blog\/wp-content\/uploads\/2013\/06\/interfaces.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-230\" class=\"size-full wp-image-230\" alt=\"Interfaces\" src=\"http:\/\/www.corrspt.com\/blog\/wp-content\/uploads\/2013\/06\/interfaces.png\" width=\"656\" height=\"140\" srcset=\"https:\/\/www.corrspt.com\/blog\/wp-content\/uploads\/2013\/06\/interfaces.png 656w, https:\/\/www.corrspt.com\/blog\/wp-content\/uploads\/2013\/06\/interfaces-300x64.png 300w, https:\/\/www.corrspt.com\/blog\/wp-content\/uploads\/2013\/06\/interfaces-500x106.png 500w\" sizes=\"auto, (max-width: 656px) 100vw, 656px\" \/><\/a><p id=\"caption-attachment-230\" class=\"wp-caption-text\">Interfaces<\/p><\/div>\n<p>After this you should probably use the Scaffolding tool to generate (or re-generate) the list\/edit viewer for this Model (don&#8217;t forget to check the &#8220;Include attributes from interfaces&#8221;). Create a new instance, give it a username and password and save. Logout and login with the newly created username<\/p>\n<p>Happy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When building any web application, one of the first requirements is to have the concept of a user who can login to the application. In order create users in a new XEO Application you can do the following: If you &hellip; <a href=\"https:\/\/www.corrspt.com\/blog\/2013\/06\/08\/creating-users-in-a-xeo-application\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-229","post","type-post","status-publish","format-standard","hentry","category-xeo"],"_links":{"self":[{"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/posts\/229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/comments?post=229"}],"version-history":[{"count":1,"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions"}],"predecessor-version":[{"id":231,"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/posts\/229\/revisions\/231"}],"wp:attachment":[{"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/media?parent=229"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/categories?post=229"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corrspt.com\/blog\/wp-json\/wp\/v2\/tags?post=229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}