Package org.sete.service.admin

Examples of org.sete.service.admin.UserRoleService


       
        //prepare the data for the next screen
        final String selRoleKey = ((ModifyRoleForm)form).getUserRole();
        assert null != selRoleKey;
       
        final UserRoleService service = getUserRoleService();
            //find the selected role
        UserRoleVo selectedRole = null;
        {
            final List<UserRoleVo> userRoles = service.loadAllUserRoles();
           
            for(final UserRoleVo urvo: userRoles)
            {
                if( selRoleKey.equals(urvo.getUserRole()) )
                {
View Full Code Here


        return privTypes;
    }

    protected UserRoleService getUserRoleService()
    {
        final UserRoleService service = getService(UserRoleService.class);
        return service;
    }
View Full Code Here

        return service;
    }
   
    protected void saveUserRoleAssignments(final UserRoleVo urvo)
    {
        final UserRoleService service = getUserRoleService();
        service.updateUserRole(urvo);
    }     
View Full Code Here

       
        //prepare the data for the next screen
        final String selRoleKey = ((ModifyRoleForm)form).getUserRole();
        assert null != selRoleKey;
       
        final UserRoleService service = getService(UserRoleService.class);
            //find the selected role
        UserRoleVo selectedRole = null;
        {
            final List<UserRoleVo> userRoles = service.loadAllUserRoles();
           
            for(final UserRoleVo urvo: userRoles)
            {
                if( selRoleKey.equals(urvo.getUserRole()) )
                {
View Full Code Here

           
            urvo.setUserRolePrivileges(rolePrivList);
        }
       
        //save the asssigned privileges to the user role
        final UserRoleService service = getService(UserRoleService.class);
        service.updateUserRole(urvo);
       
        //and go to next screen
        request.setAttribute("selectedRole", ((ModifyRoleForm)form).getUserRoleLabel());
        return mapping.findForward("view");
   
View Full Code Here

       
        //prepare the data for the next screen
        final String selRoleKey = ((ModifyRoleForm)form).getUserRole();
        assert null != selRoleKey;
       
        final UserRoleService service = getUserRoleService();
            //find the selected role
        UserRoleVo selectedRole = null;
        {
            final List<UserRoleVo> userRoles = service.loadAllUserRoles();
           
            for(final UserRoleVo urvo: userRoles)
            {
                if( selRoleKey.equals(urvo.getUserRole()) )
                {
View Full Code Here

        return mapping.findForward( ((SaveRoleForm)form).getActionChosen() );
    }
   
    protected UserRoleService getUserRoleService()
    {
        final UserRoleService service = getService(UserRoleService.class);
        return service;
    }
View Full Code Here

        return service;
    }
   
    protected void saveUserRoleAssignments(final UserRoleVo urvo)
    {
        final UserRoleService service = getUserRoleService();
        service.updateUserRole(urvo);
    }     
View Full Code Here

    public void testModifyAssignedPrivileges() throws Exception
    {
        TestUtils.prepareTypes();
       
        //prepare the userRole mock object and init the objects and calls
        final UserRoleService urs = EasyMock.createMock( UserRoleService.class );
        final ModifyRolesAction mra = new ModifyRolesAction()
                                      {
                                        private UserRoleService urs2 = null;
                                        public ModifyRolesAction setUserRoleService(final UserRoleService urs2)
                                        {
View Full Code Here

    public void testSaveAssignedPrivileges() throws Exception
    {
        TestUtils.prepareTypes();
       
        //prepare the userRole mock object and init the objects and calls
        final UserRoleService urs = EasyMock.createMock( UserRoleService.class );
        final ModifyRolesActionEx mra = new ModifyRolesActionEx().setUserRoleService(urs);
       
        final ActionMapping am = new ActionMapping()
                                 {
                                    public ActionForward findForward(final String forwardName)
View Full Code Here

TOP

Related Classes of org.sete.service.admin.UserRoleService

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.