Package org.jresearch.flexess.core.model.impl

Examples of org.jresearch.flexess.core.model.impl.UserRole


        removeUserRole(userId, applicationId, roleId);
      }
    }

    for (IRoleInstanceMetaInfo role : rm) {
      UserRole urole = new UserRole();
      urole.setRoleInstance((RoleInstanceMetaInfo) role);
      urole.setUserID(userId);
      urole.setApplication(applicationMetaInfo);
      if (!userRole.contains(urole)) {
        em.merge(urole);
        // getHibernateTemplate().save(urole);
      }
    }
View Full Code Here


  public void addUserRole(String userId, IApplicationMetaInfo application, IRoleInstanceMetaInfo rm) throws DataModelException {
    IUserRole role = userRoleDao.findRole(userId, application.getId(), rm.getId());
    if (role != null) {
      throw new DataModelException("Role is already assigned"); //$NON-NLS-1$
    }
    UserRole ur = new UserRole();
    ur.setRoleInstanceMetaInfo(rm);
    ur.setUserID(userId);
    ur.setApplicationInfo(application);
    userRoleDao.addUserRole(ur);
  }
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.core.model.impl.UserRole

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.