Package org.jresearch.flexess.umi.provider

Examples of org.jresearch.flexess.umi.provider.ISettings


    return dao.getSettingsList();
  }

  @Override
  public ISettings saveSettings(ISettings settings) {
    ISettings dbsettings = dao.saveSettings(settings);
    managers.remove(dbsettings.getId());
    return dbsettings;
  }
View Full Code Here


    managers.remove(id);
  }

  @Override
  public IUmiUserManager getUserManager(String id) throws UmiUserManagementException {
    ISettings settings = getSettings(id);
    if (settings == null) {
      String message = "unable to retrive settings by id= " + id; //$NON-NLS-1$
      logger.debug(message);
      throw new UmiUserManagementException(message);
    }
View Full Code Here

   * @param existSettings
   */
  private void check(final Collection<ISettings> existSettings) {
    final Iterator<ISettings> iterator = existSettings.iterator();
    while (iterator.hasNext()) {
      final ISettings settings = iterator.next();
      final IPropertyGroup group = settings.getPropertyGroups().get(GROUP_NAME);
      if (group != null) {
        final String beanId = group.getPropertyValue(PROPERTY);
        if (beanId != null && applicationContext.containsBean(beanId)) {
          continue;
        }
      }
      umiManagement.deleteSettings(settings.getId());
      iterator.remove();
    }
  }
View Full Code Here

  }

  private String getUserManagerId() throws AuthenticationException {
    final List<IApplicationMetaInfo> applications = applicationService.getApplications();
    for (final IApplicationMetaInfo app : applications) {
      final ISettings umiSettings = app.getUmiSettings();
      if (umiSettings != null) {
        return umiSettings.getId();
      }
    }
    throw new AuthenticationException("No usermanager specified in any application model"); //$NON-NLS-1$
  }
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.umi.provider.ISettings

Copyright © 2018 www.massapicom. 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.