Package org.jresearch.flexess.umi.provider

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


    return managers.get(id);
  }

  @Override
  public IUmiUserManager createUserManager(ISettings settings) throws UmiUserManagementException {
    IProviderInfo providerInfo = registry.getProviderInfo(settings.getProviderId());
    if (providerInfo == null) {
      throw new UmiUserManagementException(MessageFormat.format("Can''t find provider information with id {0}", settings.getProviderId())); //$NON-NLS-1$
    }
    try {
      IUserManagerFactory factory = providerInfo.getFactory();
      return factory.createManager(settings);
    } catch (Exception ex) {
      throw new UmiUserManagementException(MessageFormat.format("Unable to create IUserManager: {0}", ex.getLocalizedMessage()), ex); //$NON-NLS-1$
    }
  }
View Full Code Here


  }

  @Override
  public ISettings getSettingsImpl(String providerId) {

    IProviderInfo providerInfo = registry.getProviderInfo(providerId);
    if (providerInfo == null) {
      throw new UmiSettingsManagerException("There is no registered provider found  by id= " + providerId); //$NON-NLS-1$
    }

    Settings settings = new Settings();
    settings.setProviderId(providerInfo.getId());
    Collection<? extends IProviderPropertyGroupInfo> groups = providerInfo.getPropertyGroups();

    for (IProviderPropertyGroupInfo group : groups) {

      Collection<? extends IProviderPropertyInfo> properties = group.getConfigurationInfo();
      PropertyGroup propertyGroup = new PropertyGroup();
View Full Code Here

TOP

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

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.