Examples of UserManager


Examples of com.opensymphony.user.UserManager

      String password = (String) PropertyUtils.getSimpleProperty(form, "password");

      request.setAttribute("username", username);
     

      UserManager userManager = UserManager.getInstance();

      boolean validPassword = false;
      try {
        validPassword = userManager.getUser(username).authenticate(password);
      } catch (EntityNotFoundException e) {
        validPassword = false;
      }
      if (!validPassword) {
        log.debug("bad password");
View Full Code Here

Examples of com.vst.service.UserManager

        ctx.refresh();
    }

    protected void setUp() throws Exception {
        // populate the userForm and place into session
        UserManager userMgr = (UserManager) ctx.getBean("userManager");
        user = (User) userMgr.getUserByUsername("tomcat");

        // change the port on the mailSender so it doesn't conflict with an
        // existing SMTP server on localhost
        JavaMailSenderImpl mailSender = (JavaMailSenderImpl) ctx.getBean("mailSender");
        mailSender.setPort(2525);
View Full Code Here

Examples of com.zerowaste.manager.UserManager

  public static ModelManager<Role> getRoleManager() {
    return new ModelManager<Role>(Role.class);
  }
 
  public static UserManager getUserManager() {
    return new UserManager();
  }
View Full Code Here

Examples of de.iritgo.aktera.usergroupmgr.UserManager

    return "";
  }

  public List getAllowedDomains(String loginName)
  {
    UserManager um = null;
    GroupManager gm = null;

    ArrayList returnList = new ArrayList();

    try
    {
      um = (UserManager) getService(UserManager.ROLE, svcConfig.getHint(UserManager.ROLE));
      gm = (GroupManager) getService(GroupManager.ROLE, svcConfig.getHint(GroupManager.ROLE));

      User u = um.find(User.Property.NAME, loginName);
      Configuration[] domains = configuration.getChildren("domain");

      for (int i = 0; i < domains.length; i++)
      {
        Configuration oneDomain = domains[i];
View Full Code Here

Examples of de.novanic.eventservice.service.registry.user.UserManager

    @Test
    public void testResetEventRegistry() throws Exception {
        final String theTestUserId = "TestUser1";

        UserManager theUserManager = UserManagerFactory.getInstance().getUserManager(100);
        theUserManager.getUserActivityScheduler().stop();

        theUserManager.addUser(theTestUserId);
        assertNotNull(theUserManager.getUser(theTestUserId));

        EventRegistry theEventRegistry = EventRegistryFactory.getInstance().getEventRegistry();
        assertNotNull(theEventRegistry);
        Thread.sleep(400);
        assertNull(theUserManager.getUser(theTestUserId)); //cleaned-up by the user-activity scheduler which is activated by the EventRegistry

        EventRegistryFactory.getInstance().resetEventRegistry();
        theUserManager.addUser(theTestUserId);

        Thread.sleep(400);
        assertNotNull(theUserManager.getUser(theTestUserId)); //not cleaned-up by the user-activity scheduler, because the EventRegistry got stopped
    }
View Full Code Here

Examples of edu.uga.galileo.voci.model.UserManager

      } catch (NoSuchProjectException e) {
        Logger.warn("Couldn't get project ID for handle '"
            + command.getProject() + "'");
      }

      (new UserManager()).setUserPreference((User) request.getSession()
          .getAttribute("user"), command.getProject() + "-"
          + contentType.toString().toLowerCase() + "BlurbFields",
          StringUtils.join(newFieldsToBlurbFrom, "|"));
    }
  }
View Full Code Here

Examples of edu.wpi.cs.wpisuitetng.modules.core.entitymanagers.UserManager

    map = new HashMap<String, EntityManager>();
    sessions = new SessionManager();
   
    //TODO pull these mappings from some config file and reflect them
    map.put("coreproject", new ProjectManager(data));
    map.put("coreuser", new UserManager(data));
    map.put("defecttrackerdefect", new DefectManager(data));
    map.put("defecttrackercomment", new CommentManager(data));
    map.put("postboardpostboardmessage", new PostBoardEntityManager(data));

    //add just your module to this list
View Full Code Here

Examples of eu.planets_project.ifr.core.security.api.services.UserManager

   * @return A UserManager, as discovered via JNDI.
   */
  public static UserManager getPlanetsUserManager() {
    try{
      Context jndiContext = new javax.naming.InitialContext();
      UserManager um = (UserManager) PortableRemoteObject.narrow(
          jndiContext.lookup("planets-project.eu/UserManager/remote"), UserManager.class);
      return um;
    }catch (NamingException e) {
      log.severe("Failure during lookup of the UserManager PortableRemoteObject: "+e.toString());
      return null;
View Full Code Here

Examples of evolaris.framework.um.business.UserManager

    }
     
    // execute the commands 
    Set<CommandEntry> commandEntries = invocation.getCommandEntries();
    // table-driven action evaluation
    UserManager userManager = new UserManager(locale,session);
    User user = userManager.registerUserByMsisdn(Long.parseLong(msisdn), null, invocation.getGroup());
   
    InteractionLogManager interactionLogManager = new InteractionLogManager(locale, session);   
    EventParameters eventParameters = null;
   
    ReceivedSms receivedSms = new ReceivedSms();
View Full Code Here

Examples of org.apache.archiva.redback.users.UserManager

        List<UserManagerImplementationInformation> informations = new ArrayList<>( beans.size() );

        for ( Map.Entry<String, UserManager> entry : beans.entrySet() )
        {
            UserManager userManager = applicationContext.getBean( entry.getKey(), UserManager.class );
            if ( userManager.isFinalImplementation() )
            {
                UserManagerImplementationInformation information = new UserManagerImplementationInformation();
                information.setBeanId( StringUtils.substringAfter( entry.getKey(), "#" ) );
                information.setDescriptionKey( userManager.getDescriptionKey() );
                information.setReadOnly( userManager.isReadOnly() );
                informations.add( information );
            }
        }

        return informations;
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.