Package com.baasbox.dao

Examples of com.baasbox.dao.UserDao.create()


      try{
          //because we have to create an OUser record and a User Object, we need a transaction
     
            DbHelper.requestTransaction();
           
            if (role==null) profile=dao.create(username, password);
            else profile=dao.create(username, password,role);
           
            ORID userRid = ((ORID)profile.field("user")).getIdentity();
            ORole friendRole=RoleDao.createFriendRole(username);
            friendRole.getDocument().field(RoleService.FIELD_ASSIGNABLE,true);
View Full Code Here


          //because we have to create an OUser record and a User Object, we need a transaction
     
            DbHelper.requestTransaction();
           
            if (role==null) profile=dao.create(username, password);
            else profile=dao.create(username, password,role);
           
            ORID userRid = ((ORID)profile.field("user")).getIdentity();
            ORole friendRole=RoleDao.createFriendRole(username);
            friendRole.getDocument().field(RoleService.FIELD_ASSIGNABLE,true);
            friendRole.getDocument().field(RoleService.FIELD_MODIFIABLE,false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.