Examples of Role


Examples of org.appfuse.model.Role

    @Autowired
    private RoleManager roleManager;
   
    public Role create(Class<? extends Role> clazz) {
        return new Role();
    }
View Full Code Here

Examples of org.atomojo.auth.service.db.Role

                  }
               } else if (facet.equals(ROLE_FACET)) {
                  if (facetId!=null) {
                     try {
                        UUID id = UUID.fromString(facetId);
                        Role role = db.getRole(id);
                        if (role!=null) {
                           Representation entity = new DBObjectRepresentation(MediaType.APPLICATION_XML,role);
                           entity.setCharacterSet(CharacterSet.UTF_8);
                           return entity;
                        } else {
                           getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                           return null;
                        }
                     } catch (SQLException ex) {
                        getContext().getLogger().log(Level.SEVERE,"Cannot get role with id "+facetId+" from database.",ex);
                        getResponse().setStatus(Status.SERVER_ERROR_INTERNAL);
                        return new StringRepresentation("Exception during processing, see logs.");
                     } catch (IllegalArgumentException ex) {
                        getResponse().setStatus(Status.CLIENT_ERROR_BAD_REQUEST);
                        return new StringRepresentation("Bad UUID value "+facetId);
                     }
                    
                  } else if (facetName!=null) {
                     try {
                        Role role = db.getRole(facetName);
                        if (role!=null) {
                           Representation entity = new DBObjectRepresentation(MediaType.APPLICATION_XML,role);
                           entity.setCharacterSet(CharacterSet.UTF_8);
                           return entity;
                        } else {
View Full Code Here

Examples of org.baeldung.persistence.model.Role

    User user = new User();
    user.setFirstName(accountDto.getFirstName());
    user.setLastName(accountDto.getLastName());
    user.setPassword(accountDto.getPassword());
    user.setEmail(accountDto.getEmail());
    user.setRole(new Role(Integer.valueOf(1), user));
    return repository.save(user);
  }
View Full Code Here

Examples of org.brixcms.rmiserver.Role

        protected String load() {
            User user = delegate.getObject();
            StringBuilder buff = new StringBuilder();
            Iterator<Role> it = user.getRoles().iterator();
            while (it.hasNext()) {
                Role role = it.next();
                buff.append(roleToString(role));
                if (it.hasNext()) {
                    buff.append(", ");
                }
            }
View Full Code Here

Examples of org.broadleafcommerce.profile.core.domain.Role

     * Subclassed implementations can assign unique roles for various customer types
     *
     * @param customer
     */
    protected void createRegisteredCustomerRoles(Customer customer) {
        Role role = roleDao.readRoleByName("ROLE_USER");
        CustomerRole customerRole = new CustomerRoleImpl();
        customerRole.setRole(role);
        customerRole.setCustomer(customer);
        roleDao.addRoleToCustomer(customerRole);
    }
View Full Code Here

Examples of org.butor.auth.common.role.Role

    if (desc == null) {
      rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
      return;
    }

    Role role = new Role();
    role.setId(roleId);
    role.setDescription(desc.getDescription());
    role.setRevNo(desc.getRevNo());
    role.setStamp(desc.getStamp());
    role.setUserId(role.getUserId());
    role.setItems(roleDao.readRole(roleId, cra));
    rh.addRow(role);
  }
View Full Code Here

Examples of org.cafesip.jiplet.realms.memory.users.Role

       
        // next initialize the tables
        Iterator iter = config.getRole().iterator();
        while (iter.hasNext() == true)
        {
            Role role = (Role)iter.next();
            allRoles.add(role.getRolename());
        }
       
        iter = config.getUser().iterator();
        next:
        while (iter.hasNext() == true)
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.Role

    }
  }

  protected void initializeTaskDefinitionAssignee(CmmnElement element, TaskDefinition taskDefinition, CmmnHandlerContext context) {
    HumanTask definition = getDefinition(element);
    Role performer = definition.getPerformer();

    String assignee = null;
    if (performer != null) {
      assignee = performer.getName();
    } else {
      assignee = definition.getCamundaAssignee();
    }

    if (assignee != null) {
View Full Code Here

Examples of org.candlepin.model.Role

        userResource.createUser(user);

        Owner owner1 = createOwner();
        Owner owner2 = createOwner();

        Role owner1Role = new Role(owner1.getKey() + " role");
        Role owner2Role = new Role(owner2.getKey() + " role");
        owner1Role.addPermission(new PermissionBlueprint(PermissionType.OWNER, owner1,
            Access.ALL));
        owner1Role.addPermission(new PermissionBlueprint(PermissionType.OWNER, owner2,
            Access.READ_ONLY));
        owner1Role.addUser(user);
        owner2Role.addUser(user);
        roleCurator.create(owner1Role);
        roleCurator.create(owner2Role);

        Set<Permission> perms = new HashSet<Permission>();
        perms.add(new OwnerPermission(owner1, Access.ALL));
View Full Code Here

Examples of org.cast.cwm.data.Role

    }

    @Override
    protected void onBeforeSave(HibernateObjectModel<User> mUser) {
      User user = mUser.getObject();
      Role userRole = (Role) radioGroup.getDefaultModelObject();
      user.setRole(userRole);
      user.setCreateDate(new Date());
      user.setValid(false);
      user.generateSecurityToken();
      user.setPassword(password.getConvertedInput());
      String url = "/register?username=" + user.getUsername() + "&key=" + user.getSecurityToken();
      if (userRole.equals(Role.STUDENT)) {
        // add user to the default period
        user.getPeriods().clear();
        user.getPeriods().add(ISIApplication.get().getMDefaultPeriod().getObject());       
        ISIEmailService.get().sendXmlEmail(mUser, ISIEmailService.EMAIL_CONFIRM, url);
      } else {
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.