Package org.jresearch.flexess.umi.api

Examples of org.jresearch.flexess.umi.api.UmiException


  @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


    try {
      return getUserManager(applicationId).getUser(userId);
    } catch (final RuntimeException e) {
      final String message = MessageFormat.format("Can''t get user {0} for application {1}: {2}. See server logs for detailed information.", userId, applicationId, e.getLocalizedMessage()); //$NON-NLS-1$
      logger.error(message, e);
      throw new UmiException(e, message);
    }
  }
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.umi.api.UmiException

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.