Package evolaris.framework.smsservices.business

Examples of evolaris.framework.smsservices.business.CommandEntryManager.evict()


      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }

    ImageRecognitionCommandEntry commentCommandEntry = (ImageRecognitionCommandEntry)commandEntry;
    checkAccessRights(req, commentCommandEntry.getGroup());
    commandEntryManager.evict(commentCommandEntry)// do not modify in this session yet (might be erroneous)

    commentCommandEntry.setSortLabel(f.getSortLabel());
    commentCommandEntry.setFolderSuffix(Integer.parseInt(f.getFolderSuffix()));
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": comment entry #" + commandEntryId + " has been modified;");
    setCommandEntryInRequest(req, commentCommandEntry);
View Full Code Here


    if (commandEntry == null || !(commandEntry instanceof AccessCheckCommandEntry)){
      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
    AccessCheckCommandEntry accessCheckCommandEntry = (AccessCheckCommandEntry)commandEntry;
    checkAccessRights(req, accessCheckCommandEntry.getGroup());
    commandEntryManager.evict(accessCheckCommandEntry)// do not modify in this session yet (might be erroneous)
    accessCheckForm.toEntry(accessCheckCommandEntry, accessCheckCommandEntry.getGroup(), locale, session, resources);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Command Entry with id: " + commandEntryId + " has been modified");
    setCommandEntryInRequest(req, accessCheckCommandEntry);
    return mapping.findForward("modified");
  }
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
   
    SimpleCommandEntry simpleCommandEntry = (SimpleCommandEntry)commandEntry;
    checkAccessRights(req, simpleCommandEntry.getGroup());
    commandEntryManager.evict(simpleCommandEntry)// do not modify in this session yet (might be erroneous)

    simpleCommandEntry.setSimpleCommandEntryType(simpleInteractionForm.getCommandTypeSelection());
    simpleCommandEntry.setSortLabel(simpleInteractionForm.getSortLabel());
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": simple command entry with id: " + commandEntryId + " has been modified");
    setCommandEntryInRequest(req, simpleCommandEntry);
View Full Code Here

    if (commandEntry == null || !(commandEntry instanceof UserSetCommandEntry)){
      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
    UserSetCommandEntry userSetCommandEntry = (UserSetCommandEntry)commandEntry;
    checkAccessRights(req, userSetCommandEntry.getGroup());
    commandEntryManager.evict(userSetCommandEntry)// do not modify in this session yet (might be erroneous)
   
    UserSetManager userSetManager = new UserSetManager(locale,session);
    UserSet userSet = f.getUserSetId() == -2 ? null : userSetManager.getUserSet(f.getUserSetId());
    if (f.getUserSetId() != -2
      && (userSet == null || userSet.getGroup() != userSetCommandEntry.getGroup())) {
View Full Code Here

      throw new InputException(getResources(req).getMessage(locale, "smssvc.editedInteractionDoesNotExistAnymore"))// may have been deleted
    }
    EmailCommandEntry emailCommandEntry = (EmailCommandEntry)commandEntry;
    Group group = emailCommandEntry.getGroup();
    checkAccessRights(req, group);
    commandEntryManager.evict(emailCommandEntry)// do not modify in this session yet (might be erroneous)
    f.toEntry(emailCommandEntry, locale, session, getResources(req));
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase()
        + ": Modified message command entry #" + emailCommandEntry.getId()
        + "; label: " + emailCommandEntry.getSortLabel() + "; subject: " + emailCommandEntry.getSubject());
    setCommandEntryInRequest(req, emailCommandEntry);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.