Package eu.planets_project.ifr.core.security.impl.model

Examples of eu.planets_project.ifr.core.security.impl.model.RoleImpl


   * {@inheritDoc}
   * @see eu.planets_project.ifr.core.security.api.services.UserManager#assignRoleToUser(eu.planets_project.ifr.core.security.api.model.User, java.lang.String)
   */
  @RolesAllowed( { "admin", "testbed.admin" })
  public void assignRoleToUser(User user, String role) {
    user.addRole(new RoleImpl(role));
    saveUser(user);
  }
View Full Code Here


   * {@inheritDoc}
   * @see eu.planets_project.ifr.core.security.api.services.UserManager#revokeRoleFromUser(eu.planets_project.ifr.core.security.api.model.User, java.lang.String)
   */
  @RolesAllowed( { "admin", "testbed.admin" })
  public void revokeRoleFromUser(User user, String role) {
    user.removeRole(new RoleImpl(role));
    saveUser(user);
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.ifr.core.security.impl.model.RoleImpl

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.