Package org.jresearch.flexess.umi.provider

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


  private ApplicationContext applicationContext;

  @Override
  public IUmiUserManager createManager(final ISettings settings) throws UmiException {
    assert settings != null;
    final IPropertyGroup group = settings.getPropertyGroups().get(GROUP_NAME);
    if (group == null) {
      throw new UmiException("Can''t find property {0} in group {1}.", PROPERTY, GROUP_NAME); //$NON-NLS-1$
    }
    final String beanId = group.getPropertyValue(PROPERTY);
    final IUmiUserManager manager = singleUserManagers.get(beanId);
    if (manager == null) {
      throw new UmiException("User manager with id {0} doesn''t exists. Check the Spring beans definitions if bean with such id exists", beanId); //$NON-NLS-1$
    }
    return manager;
View Full Code Here


   */
  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());
View Full Code Here

    return result;
  }

  private static boolean exists(final String beanId, final Collection<ISettings> existSettings) {
    for (final ISettings settings : existSettings) {
      final IPropertyGroup group = settings.getPropertyGroups().get(GROUP_NAME);
      if (group != null) {
        if (beanId.equals(group.getPropertyValue(PROPERTY))) {
          return true;
        }
      }
    }
    return false;
View Full Code Here

TOP

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

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.