Examples of IUserManager


Examples of com.agiletec.aps.system.services.user.IUserManager

  }
 
    protected void init() throws Exception {
      try {
        this._newsletterManager = (INewsletterManager) this.getService(JpnewsletterSystemConstants.NEWSLETTER_MANAGER);
        IUserManager userManager = (IUserManager) this.getService(SystemConstants.USER_MANAGER);
        IUserProfileManager profileManager = (IUserProfileManager) this.getService(SystemConstants.USER_PROFILE_MANAGER);
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._helper = new JpnewsletterTestHelper(userManager, profileManager, configManager);
        DataSource dataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
        this._helper.setDataSource(dataSource);
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

    assertNotNull(action.getContent());
  }
 
    protected void init() throws Exception {
      try {
        IUserManager userManager = (IUserManager) this.getService(SystemConstants.USER_MANAGER);
        IUserProfileManager profileManager = (IUserProfileManager) this.getService(SystemConstants.USER_PROFILE_MANAGER);
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._helper = new JpnewsletterTestHelper(userManager, profileManager, configManager);
        DataSource dataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
        this._helper.setDataSource(dataSource);
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

  }
 
    protected void init() throws Exception {
      try {
        this._newsletterManager = (INewsletterManager) this.getService(JpnewsletterSystemConstants.NEWSLETTER_MANAGER);
        IUserManager userManager = (IUserManager) this.getService(SystemConstants.USER_MANAGER);
        IUserProfileManager profileManager = (IUserProfileManager) this.getService(SystemConstants.USER_PROFILE_MANAGER);
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._helper = new JpnewsletterTestHelper(userManager, profileManager, configManager);
        DataSource dataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
        this._helper.setDataSource(dataSource);
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

  }
 
    protected void init() throws Exception {
      try {
        this._newsletterManager = (INewsletterManager) this.getService(JpnewsletterSystemConstants.NEWSLETTER_MANAGER);
        IUserManager userManager = (IUserManager) this.getService(SystemConstants.USER_MANAGER);
        IUserProfileManager profileManager = (IUserProfileManager) this.getService(SystemConstants.USER_PROFILE_MANAGER);
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._helper = new JpnewsletterTestHelper(userManager, profileManager, configManager);
        DataSource dataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
        this._helper.setDataSource(dataSource);
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

    assertEquals("Separatore text della mail", config.getTextSeparator());
  }
 
    protected void init() throws Exception {
      try {
        IUserManager userManager = (IUserManager) this.getService(SystemConstants.USER_MANAGER);
        IUserProfileManager profileManager = (IUserProfileManager) this.getService(SystemConstants.USER_PROFILE_MANAGER);
        ConfigInterface configManager = (ConfigInterface) this.getService(SystemConstants.BASE_CONFIG_MANAGER);
        this._helper = new JpnewsletterTestHelper(userManager, profileManager, configManager);
        DataSource dataSource = (DataSource) this.getApplicationContext().getBean("servDataSource");
        this._helper.setDataSource(dataSource);
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

  }

  @Override
  public void activateUser(String username, String password, String token) throws ApsSystemException {
    try {
      IUserManager userManager = this.getUserManager();
      this.clearOldAccountRequests();
      User user = (User) userManager.getUser(username);
      user.setLastPasswordChange(new Date());
      user.setPassword(password);
      user.setDisabled(false);
      this.loadUserDefaultRoles(user);
      this.loadUserDefaultGroups(user);
      userManager.updateUser(user);
      userManager.changePassword(username, password);// Per salvare password non in chiaro
      this.getUserRegDAO().removeConsumedToken(token);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "activateUser");
      throw new ApsSystemException("Error in Account activation", t);
    }
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

  }

  @Override
  public void reactivateUser(String username, String password, String token) throws ApsSystemException {
    try {
      IUserManager userManager = this.getUserManager();
      this.clearOldAccountRequests();
      User user = (User) userManager.getUser(username);
      user.setLastPasswordChange(new Date());
      user.setPassword(password);
      user.setDisabled(false);
      userManager.updateUser(user);
      userManager.changePassword(username, password);// Per salvare password non in chiaro
      this.getUserRegDAO().removeConsumedToken(token);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "reactivateUser");
      throw new ApsSystemException("Error in Account activation", t);
    }
View Full Code Here

Examples of com.agiletec.aps.system.services.user.IUserManager

    }
  }

  protected List<UserDetails> findContentOperators() throws ApsSystemException {
    IAuthorizationManager authManager = this.getAuthorizationManager();
    IUserManager userManager = this.getUserManager();
    IUserProfileManager profileManager = this.getProfileManager();
    List<UserDetails> systemUsers = userManager.getUsers();
    List<UserDetails> allowedUsers = new ArrayList<UserDetails>();
    for (UserDetails user : systemUsers){
      user.addAutorities(this.getRoleManager().getAuthorizationsByUser(user));
      if (authManager.isAuthOnPermission(user, Permission.SUPERVISOR) || authManager.isAuthOnPermission(user, "editContents")) {
        try {
View Full Code Here

Examples of com.gitblit.manager.IUserManager

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();

    RedisTicketService service = new RedisTicketService(
        runtimeManager,
        pluginManager,
View Full Code Here

Examples of com.gitblit.manager.IUserManager

    IStoredSettings settings = getSettings(deleteAll);

    IRuntimeManager runtimeManager = new RuntimeManager(settings).start();
    IPluginManager pluginManager = new PluginManager(runtimeManager).start();
    INotificationManager notificationManager = new NotificationManager(settings).start();
    IUserManager userManager = new UserManager(runtimeManager).start();
    IRepositoryManager repositoryManager = new RepositoryManager(runtimeManager, userManager).start();

    FileTicketService service = new FileTicketService(
        runtimeManager,
        pluginManager,
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.