Examples of Role


Examples of org.kie.api.definition.type.Role

        boolean propertyReactive = propertySpecificOption.isPropSpecific(cls.isAnnotationPresent(PropertyReactive.class),
                                                                         cls.isAnnotationPresent(ClassReactive.class));

        kbuilder.setPropertyReactive( null, typeDeclaration, propertyReactive );

        Role role = cls.getAnnotation(Role.class);
        if (role != null && role.value() == Role.Type.EVENT) {
            typeDeclaration.setRole(TypeDeclaration.Role.EVENT);
        }

        return typeDeclaration;
    }
View Full Code Here

Examples of org.krams.domain.Role

  public String create(UserDto dto) {
    if (dto.getId() != null)  {
      User existingUser = new User(dto.getUsername(),
        dto.getFirstName(),
        dto.getLastName(),
        new Role(dto.getRole()));
      service.update(existingUser);
    } else {
      User newUser = new User(dto.getUsername(),
        null,
        dto.getFirstName(),
        dto.getLastName(),
        new Role(dto.getRole()));
      service.create(newUser);
    }
   
    return "redirect:/users";
  }
View Full Code Here

Examples of org.ldv.sio.getap.app.Role

  // TODO trouver un tri pour les méthodes suivantes.

  public List<Role> getAllRole() {
    List<Role> listeRoles = new ArrayList<Role>();
    listeRoles.add(new Role(1, "eleve"));
    listeRoles.add(new Role(2, "prof-intervenant"));
    listeRoles.add(new Role(3, "prof-principal"));
    listeRoles.add(new Role(4, "admin"));

    return listeRoles;
  }
View Full Code Here

Examples of org.lealone.dbobject.Role

        systemUser = new User(this, 0, SYSTEM_USER_NAME, true);
        mainSchema = new Schema(this, 0, Constants.SCHEMA_MAIN, systemUser, true);
        infoSchema = new Schema(this, -1, "INFORMATION_SCHEMA", systemUser, true);
        schemas.put(mainSchema.getName(), mainSchema);
        schemas.put(infoSchema.getName(), infoSchema);
        publicRole = new Role(this, 0, Constants.PUBLIC_ROLE_NAME, true);
        roles.put(Constants.PUBLIC_ROLE_NAME, publicRole);
        systemUser.setAdmin(true);
        systemSession = createSystemSession(systemUser, ++nextSessionId);

        openMetaTable(true);
View Full Code Here

Examples of org.makersoft.shards.domain.Role

    User user = this.insertUser("makersoft-vertical", "makersoft-vertical", 18, User.SEX_MALE);

    assertNotNull("Insert User does not success!", user);
   
   
    Role role = this.insertRole("ADMIN", "ROLE_ADMIN");

    assertNotNull("Insert Role does not success!", role);
  }
View Full Code Here

Examples of org.mctourney.autoreferee.AutoRefMatch.Role

    if (match == null || match.getCurrentState() == MatchStatus.NONE) return true;

    // if we are in practice mode, whatever...
    if (match.isPracticeMode()) return true;

    Role role = match.getRole(player);

    // if the player is a referee or is flying, nothing is off-limits
    if (role == Role.REFEREE || (match.getCurrentState().inProgress()
      && player.isFlying() && role == Role.PLAYER)) return true;
View Full Code Here

Examples of org.mifosplatform.useradministration.domain.Role

        try {
            this.context.authenticatedUser();

            this.roleCommandFromApiJsonDeserializer.validateForCreate(command.json());

            final Role entity = Role.fromJson(command);

            this.roleRepository.save(entity);

            return new CommandProcessingResultBuilder().withCommandId(command.commandId()).withEntityId(entity.getId()).build();
        } catch (final DataIntegrityViolationException dve) {
            handleDataIntegrityIssues(command, dve);
            return new CommandProcessingResultBuilder() //
                    .withCommandId(command.commandId()) //
                    .build();
View Full Code Here

Examples of org.mindswap.pellet.Role

    private void applyGuessingRule(Individual x, ATermAppl mc) {
    // max(r, n) is in normalized form not(min(p, n + 1))
    ATermAppl max = (ATermAppl) mc.getArgument(0);

    Role r = strategy.getABox().getRole(max.getArgument(0));
    int n = ((ATermInt) max.getArgument(1)).getInt() - 1;
    ATermAppl c = (ATermAppl) max.getArgument(2);

    // obviously if r is a datatype role then there can be no r-predecessor
    // and we cannot apply the rule
    if (r.isDatatypeRole())
      return;

    // FIXME instead of doing the following check set a flag when the edge is added
    // check that x has to have at least one r neighbor y
    // which is blockable and has successor x
    // (so y is an inv(r) predecessor of x)
    boolean apply = false;
    EdgeList edges = x.getRPredecessorEdges(r.getInverse());
    for (int e = 0; e < edges.size(); e++) {
      Edge edge = edges.edgeAt(e);
      Individual pred = edge.getFrom();
      if (pred.isBlockable()) {
        apply = true;
View Full Code Here

Examples of org.multibit.mbm.client.domain.model.model.Role

  /**
   * Provides the default client HMAC authentication settings (not a Customer)
   */
  protected User setUpClientHmacAuthenticator() {

    Role clientRole = DatabaseLoader.buildClientRole();
    User storeClient = DatabaseLoader.buildStoreClient(clientRole);

    return setUpHmacAuthenticator(storeClient);
  }
View Full Code Here

Examples of org.ngrinder.model.Role

  @RequestMapping(value = {"/home", "/"})
  public String home(User user, @RequestParam(value = "exception", defaultValue = "") String exception,
             @RequestParam(value = "region", defaultValue = "") String region, ModelMap model,
             HttpServletResponse response, HttpServletRequest request) {
    try {
      Role role;
      try {
        recordReferrer(region);
        // set local language
        setLanguage(getCurrentUser().getUserLanguage(), response, request);
        setLoginPageDate(model);
        role = user.getRole();
      } catch (AuthenticationCredentialsNotFoundException e) {
        return "login";
      }
      setPanelEntries(model);
      model.addAttribute("handlers", scriptHandlerFactory.getVisibleHandlers());

      if (StringUtils.isNotBlank(exception)) {
        model.addAttribute("exception", exception);
      }
      if (role == Role.ADMIN || role == Role.SUPER_USER || role == Role.USER) {
        return "index";
      } else {
        LOG.info("Invalid user role:{}", role.getFullName());
        return "login";
      }
    } catch (Exception e) {
      // Make the home reliable...
      model.addAttribute("exception", e.getMessage());
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.