Package au.com.motodetail.poi.entity

Examples of au.com.motodetail.poi.entity.AccountRole


    }

    public void DebugAddPersonAdminRole()
    {
        //one time to establish structure
        AccountRole accountRole = new AccountRole();
        accountRole.setLoginName(BaseUtil.GenerateRandomString(10));
        accountRole.setLoginPassword(BaseUtil.GenerateRandomString(10));

        //type relationship .. get it from DB
        try
        {
            List<BasicRoleType> basicRoleType = basicRoleTypeService.getAll();
            for(BasicRoleType brt:basicRoleType)
            {
                if(brt.getType() == RoleType.ADMIN_ACCOUNT)
                {
                    accountRole.setRoleType(brt);
                    accountRoleService.create(accountRole);
                    break;
                }
            }
        }
View Full Code Here

TOP

Related Classes of au.com.motodetail.poi.entity.AccountRole

Copyright © 2018 www.massapicom. 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.