Package evolaris.framework.sys.business.exception

Examples of evolaris.framework.sys.business.exception.ConfigurationException


      groupnames[c] = new String[groups.length];
      formpropertynames[c] = new String[groups.length];
      criterianames[c] = new String[groups.length][];
      criteriaDescriptions[c] = new String[groups.length][];
      if (groups.length > MAX_NOF_GROUPS){
        throw new ConfigurationException("only up to " + MAX_NOF_GROUPS + " groups in a category can be displayed");
      }
      for (int i = 0; i < groups.length; i++) {
        CriteriaGroup group = groups[i];
        groupnames[c][i] = group.getGroupname();
        formpropertynames[c][i] = "criterias"+c+"_"+i;
View Full Code Here


   */
  protected Category[] prepareCategories(HttpServletRequest req) {
    CategoryManager categoryManager = new CategoryManager(req.getLocale(),session);
    Category[] categories = categoryManager.getSortedCategories();
    if (categories.length == 0){
      throw new ConfigurationException("No categories configured");
    }
    if (categories.length > MAX_NOF_CATEGORIES) {
      throw new ConfigurationException("Not more than "+MAX_NOF_CATEGORIES+" must be used.");
    }
    String[] categorynames = new String[categories.length];
    String[] categoryDescriptions = new String[categories.length];
    long[] categoryIds = new long[categories.length];
    for (int i = 0; i < categories.length; i++) {
View Full Code Here

        req.setAttribute("generalError",noUserSetSelectedString);
        return mapping.findForward("notSent");
      }
      UserSet userSet =  userSetManager.getUserSet(userSetId);
      if (userSet == null){
        throw new ConfigurationException("illegal user set id: " + userSetId);
      }
      users = userSet.getUsers();
      break;
    case 2: // user
      if (userId.longValue() == -1){
        String noUserSelectedString = getResources(req).getMessage(locale,"smssvc.MessageNotSentBecauseNoUserSelected");
        req.setAttribute("generalError",noUserSelectedString);
        return mapping.findForward("notSent");
      }
      UserManager userManager = new UserManager(locale,session);
      User user = userManager.getUserDetails(userId);
      if (user == null){
        throw new ConfigurationException("illegal user id: " + user);
      }
      Set<User> oneManSet = new HashSet<User>();
      oneManSet.add(user);
      users = oneManSet;
      break;
View Full Code Here

      throw new BugException("interactionList id -1 in session");
    }
    SmsDbManager smsDbManager = new SmsDbManager(locale,session);
    InteractionList interactionList = smsDbManager.getInteractionList(interactionListId);
    if(interactionList == null) {
      throw new ConfigurationException("There is no interactionList with id: " + interactionListId + " -> cannot add a new interaction");
    }
    if (!req.isUserInRole(UserManagerBase.ADMINISTRATOR) && (!req.isUserInRole(SmsDbManager.INTERACTION_ADMINISTRATOR) || webUser.getGroup() != interactionList.getGroup())){
      throw new InputException(getResources(req).getMessage(locale, "smssvc.insufficientRights"));
    }   
    return interactionList;
View Full Code Here

TOP

Related Classes of evolaris.framework.sys.business.exception.ConfigurationException

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.