Examples of User


Examples of org.exoplatform.sample.webui.component.bean.User

   private List<User> makeUserList()
   {
      List<User> userList = new ArrayList<User>();          
      for (int i = 0; i < 30; i++) {
         userList.add(new User("user " + i, "color " + i, "position " + i, new Date()));
      }
      return userList;
   }
View Full Code Here

Examples of org.exoplatform.services.organization.User

      {
         log.info("Cannot cleanup user relationships: " + userName + "; ", e);

      }

      User exoUser = getPopulatedUser(userName, session);

      if (broadcast)
      {
         preDelete(exoUser);
      }
View Full Code Here

Examples of org.fao.geonet.domain.User

   * @throws UserNotFoundEx  if the id does not reference a user
   */
  public static User updatePasswordWithNew(boolean matchOldPassword, String oldPassword,
      String newPassword, Integer iUserId, ApplicationContext appContext) throws SQLException, UserNotFoundEx {
      UserRepository repo = appContext.getBean(UserRepository.class);
        User user = repo.findOne(iUserId);
        if (user == null) {
            throw new UserNotFoundEx(""+iUserId);
        }

        PasswordEncoder encoder = encoder(appContext);
View Full Code Here

Examples of org.fenixedu.bennu.core.domain.User

        } else if (showOccupation instanceof InfoOccupation) {

            InfoOccupation infoGenericEvent = (InfoOccupation) showOccupation;
            strBuffer.append("<span title=\"").append(infoGenericEvent.getDescription()).append("\">");
            final User userView = Authenticate.getUser();
            if (infoGenericEvent.getOccupation().isActive() && userView != null
                    && userView.getPerson().hasRole(RoleType.RESOURCE_ALLOCATION_MANAGER)) {
                strBuffer.append("<a href=\"");
                strBuffer.append(context).append("/resourceAllocationManager/");
                strBuffer.append("roomsPunctualScheduling.do?method=prepareView&genericEventID=")
                        .append(infoGenericEvent.getExternalId()).append("\">");
                strBuffer.append(infoGenericEvent.getTitle());
View Full Code Here

Examples of org.gamejolt.User

  public void testGetServerTime(){
    assertNotNull(api.getServerTime());
  }
  @Test
  public void testGetUser(){
    User u = api.getUser(1);
    assertNotNull(u);
    u = api.getUser(u.getName());
    assertNotNull(u);
    assertEquals(1,u.getId());
  }
View Full Code Here

Examples of org.gatein.api.security.User

    private PortalRequestImpl(PortalRequestContext context) {
        this.context = context;
        String userId = context.getRemoteUser();

        this.user = (userId == null) ? User.anonymous() : new User(userId);
        this.siteId = Util.from(context.getSiteKey());
        this.nodePath = NodePath.fromString(context.getNodePath());

        ExoContainer exoContainer = context.getApplication().getApplicationServiceContainer();
        this.portal = (Portal)exoContainer.getComponentInstanceOfType(Portal.class);
View Full Code Here

Examples of org.glyptodon.guacamole.net.auth.User

            // For each entry, write corresponding user element
            for (String username : users) {

                // Get user
                User user = directory.get(username);

                // Write user
                xml.writeEmptyElement("user");
                xml.writeAttribute("name", user.getUsername());

            }

            // End document
            xml.writeEndElement();
View Full Code Here

Examples of org.goat.caprabank.shared.entity.User

  @Override
  public User login(String username, String password) throws CaprabankException {
    validateNotEmpty(username, "username");
    validateNotEmpty(password, "password");
    User user = dataStore.findUserByUsername(username);
    if (user == null || !Arrays.equals(user.passwordHash, hash(password))) {
      log.warning("Failed login attempt: " + username + "/" + password + ": " + (user == null ? "user not found." : "incorrect password."));
      throw new CaprabankException("Login failed - incorrect username or password.");
    }
    log.info("Logged in user " + username + ".");
View Full Code Here

Examples of org.graylog2.restclient.models.User

    public static SessionService sessionService;

    @Override
    public String getUsername(Context ctx) {
        try {
            final User sessionUser = pipelineAuths(authenticateSessionUser(), authenticateBasicAuthUser());
            if (sessionUser == null) {
                return null;
            }
            return sessionUser.getName();
        } catch (Graylog2ServerUnavailableException e) {
            ctx.args.put(GRAYLOG_2_SERVER_MISSING_KEY, e);
            return null;
        }
    }
View Full Code Here

Examples of org.graylog2.users.User

    @Path("{username}")
    @RequiresPermissions(USERS_EDIT)
    @ApiOperation("Removes a user account.")
    @ApiResponses({@ApiResponse(code = 400, message = "When attempting to remove a read only user (e.g. built-in or LDAP user).")})
    public Response deleteUser(@ApiParam(name = "username", value = "The name of the user to delete.", required = true) @PathParam("username") String username) {
        final User user = userService.load(username);
        if (user == null) {
            return status(NOT_FOUND).build();
        }
        if (user.isReadOnly()) {
            throw new BadRequestException("Cannot delete readonly user " + username);
        }

        userService.destroy(user);
        return Response.noContent().build();
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.