Examples of Role


Examples of org.uengine.kernel.Role

      fd.setInputter(parameterInput);

      fd = getFieldDescriptor("Role");   
      fd.setInputter(new RoleInput(pd, RoleInput.WEBSERVICE_ONLY){
        public void onValueChanged(){
          Role role = (Role)getValue();
          ServiceDefinition svcdef = (ServiceDefinition)role.getServiceType();
          serviceDefinitionInputter.setValue(svcdef);
          portTypeInputter.setServiceDefinition(svcdef);         
        }
      });
View Full Code Here

Examples of org.wicketstuff.pickwick.bean.Role

   
    form.add(new AjaxButton("submit", form){

      @Override
      protected void onSubmit(AjaxRequestTarget target, Form form) {
        Role role = new Role();
        role.setLabel(form.get("role").getDefaultModelObjectAsString());
        settings.getUserManagement().addRole(role);
        target.addComponent(form);
        onSave(target);
      }
     
View Full Code Here

Examples of org.woped.editor.controller.Role

           
            if (lm.allCompoundRoles.size() == 1) {
              boolean unrelatedRole = false;
              Iterator<?> it = lm.allRoles.iterator();
              while (it.hasNext()) {
                Role currentRole = (Role) it.next();
                Iterator<?> subit = currentRole.ancestors.iterator();
                while (subit.hasNext()) {
                  CompoundRole currentCompound = (CompoundRole) subit.next();
                  if (currentCompound.name == "") {
                    unrelatedRole = true;
                    break;
                  }
                }
                if (unrelatedRole == true ) {
                  break;
                }
              }
              if (unrelatedRole == true) {
                CompoundRole allRoles = new CompoundRole(Messages.getString("PetriNet.Resources.AllCompoundRolesName"));
                allRoles.children.addAll(lm.allRoles);
                it = lm.allRoles.iterator();
                while (it.hasNext()) {
                  Role currentRole = (Role) it.next();
                  currentRole.ancestors.add(allRoles);
                }
                lm.allCompoundRoles.add(allRoles);
              }
            }
           
            else if (lm.allCompoundRoles.size() == 0) {
              CompoundRole cr = new CompoundRole(Messages.getString("PetriNet.Resources.DefaultCompoundRoleName"));
              cr.children.addAll(lm.allRoles);
              Iterator<?> it = lm.allRoles.iterator();
              while (it.hasNext()) {
                Role currentRole = (Role) it.next();
                currentRole.ancestors.add(cr);
              }
              lm.allCompoundRoles.add(cr);
            }
         
            else {
              CompoundRole allRoles = new CompoundRole(Messages.getString("PetriNet.Resources.AllCompoundRolesName"));
              allRoles.children.addAll(lm.allRoles);
              Iterator<?> it = lm.allRoles.iterator();
              while (it.hasNext()) {
                Role currentRole = (Role) it.next();
                currentRole.ancestors.add(allRoles);
              }
              lm.allCompoundRoles.add(allRoles);
            }
         
View Full Code Here

Examples of org.zeroexchange.model.user.Role

    /**
     * {@inheritDoc}
     */
    @Override
    public Role getRole(String roleId) throws DAOOperationException {
        Role role = getById(roleId);
        if(role == null) {
            throw new DAOOperationException("Unknown role '" + roleId + "'", null);
        }
        return role;
    }
View Full Code Here

Examples of ru.portnyagin.helpdeskru.model.Role

    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        if (value == null || value.length() == 0){
            return null;
        }

        Role role = roleService.find(Long.valueOf(value));

        if (role == null) {
            throw new ConverterException(new FacesMessage("Unknown Role ID: " + value));
        }
View Full Code Here

Examples of ru.webcrafter.client.user.Role

    public Role getRole(long id) {
        return (Role) getHibernateTemplate().get(Role.class, id);
    }

    public Role getRole(String roleName) {
        Role r = null;
        if (roleName != null) {
            List list = getHibernateTemplate().find("from Role r where r.name=?", roleName);
            if (list != null && !list.isEmpty()) r = (Role) list.get(0);
        }
        return r;
View Full Code Here

Examples of server.hibernate.Role

     */
    @Test
    public void testGetRoleByName() {
        System.out.println("getRoleByName");
        String name = "manager";    
        Role result = this.serviceFacadeSmeny.getRoleByName(name);
        assertEquals(true, result!=null);      
    }
View Full Code Here

Examples of sivalabs.dashboard.entities.Role

  void initDatabase()
  {

    logger.info("Initializing Database with sample data");
   
    Role role1 = new Role("ROLE_USER");
    Role role2 = new Role("ROLE_ADMIN");
   
    role1 = roleRepository.save(role1);
    role2 = roleRepository.save(role2);
   
    User user1 = new User(1, "admin@gmail.com", "admin", "Administrator");
    User user2 = new User(2, "siva@gmail.com", "siva", "Siva");
   
    user1.addRoles(role1, role2);
    user2.addRoles(role1);
   
    role1.getUsers().add(user1);
    role1.getUsers().add(user2);
   
    role2.getUsers().add(user2);
   
    user1 = userRepository.save(user1);
    user2 = userRepository.save(user2);
   
   
View Full Code Here

Examples of ua.com.jpy.entity.role.Role

      customer = new Customer();
      customer.setId(new ObjectId());
      customer.setLogin(name);
      customer.setPassword(password);
 
      Role role = new Role();
      role.setRole(ROLE_USER);
      List<Role> roles = new ArrayList<Role>();
      roles.add(role);
     
      customer.setRoles(roles);
      customer.setActive(true);
View Full Code Here

Examples of unlp.edu.core.Role

    String  nombreUsuario = (String) agregarProyectoForm.get("nombre_usuario");
    String  claveUsuario = (String) agregarProyectoForm.get("clave_usuario");
    String  rol = (String) agregarProyectoForm.get("rol_usuario");
   
    Sistema sistema = Sistema.getInstance();
    Role savedRole = sistema.getRoleSistema(rol);
   
    sistema.nuevoUsuario(nombreUsuario,claveUsuario,savedRole);

    return mapping.findForward("ok");
   
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.