Package evolaris.framework.um.datamodel

Examples of evolaris.framework.um.datamodel.Group


   */
  @SuppressWarnings("unchecked")
  @Override
  protected ActionForward defaultMethod(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    EnterEditDuplicateForm<ET> f = (EnterEditDuplicateForm<ET>)form;
    Group group = groupPreparation(req,f.getGroupId());
    f.setApplicationId(applicationPreparation(req, group, f.getApplicationId()).getId())// update
    return mapping.findForward("continue");
  }
View Full Code Here


   *      javax.servlet.http.HttpServletResponse)
   */
  public ActionForward create(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    BlogEnterOrEditForm f = (BlogEnterOrEditForm)form;
    Blog blog = new Blog();
    Group group = this.getCurrentGroup(req);
    checkAccessRights(req, group);
    formToBlog(f, blog);
    blog.setGroup(group);
    ensureUniqueCodePerGroup(blog, req);
    BlogManager mgr = new BlogManager(locale, session);
View Full Code Here

   *      javax.servlet.http.HttpServletRequest,
   *      javax.servlet.http.HttpServletResponse)
   */
  public ActionForward create(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    UserSetEnterOrEditForm userSetEnterOrEditForm = (UserSetEnterOrEditForm) form;
    Group group = this.getCurrentGroup(req);
    UserSet userSet = new UserSet();
    userSet.setGroup(group);
    userSet.setDescription(userSetEnterOrEditForm.getDescription());
    userSet.setName(userSetEnterOrEditForm.getUserSetName());
    userSet.setHidden(userSetEnterOrEditForm.getHidden()==true?1:0);
    checkAccessRights(req, userSet.getGroup());
    UserSetManager userSetManager = new UserSetManager(locale,session);
    userSetManager.createUserSet(userSet);
    LOGGER.info("User " + req.getUserPrincipal().getName().toLowerCase() + ": Created user set `"+ userSet.getName() + "`" + " in group `" + group.getGroupname() + "`");
    return mapping.findForward("created");
  }
View Full Code Here

    }
    application.setId(getId());
    application.setName(getName());
    application.setDescription(getDescription());
    GroupManager groupManager = new GroupManager(locale, session);
    Group group = groupManager.getGroup(getGroupId());
    application.setGroup(group);
    return application;
  }
View Full Code Here

    allowedAllowedInvocation.setId(f.getId());
    allowedAllowedInvocation.setMsisdn(isProvided("msisdn") ? Long.parseLong(f.getMsisdn().trim()) : null);
    allowedAllowedInvocation.setEmail(isProvided("email") ? f.getEmail().trim() : null);
    allowedAllowedInvocation.setKeywordBase(isProvided("keywordBase") ? f.getKeywordBase().trim() : null);
    GroupManager groupMgr = new GroupManager(locale, session);
    Group group = groupMgr.getGroup(f.getGroupId());
    allowedAllowedInvocation.setGroup(group);
    return allowedAllowedInvocation;
  }
View Full Code Here

    invocation.setKeywords(f.getKeywords() != null && f.getKeywords().trim().length() > 0 ? f.getKeywords().trim() : null);
    invocation.setMessagequeue(f.getMessageQueue());
    invocation.setServiceId(f.getService() != null && f.getService().trim().length() > 0 ? f.getService().trim() : null);
    invocation.setAuthenticationKey(f.getAuthenticationKey() != null && f.getAuthenticationKey().trim().length() > 0 ? f.getAuthenticationKey() : null);
    GroupManager groupMgr = new GroupManager(locale, session);
    Group group = groupMgr.getGroup(f.getGroupId());
    invocation.setGroup(group);

    // "logical" validations
    if (invocation.getBeginAt() != null && invocation.getEndAt() != null && invocation.getBeginAt().after(invocation.getEndAt())) {
      throw new InputException(resources.getMessage("admin.keywordBeginDateMustBeBeforeEndDate"));     
View Full Code Here

   *      javax.servlet.http.HttpServletResponse)
   */
  public ActionForward create(ActionMapping mapping, ActionForm form,HttpServletRequest req, HttpServletResponse resp)  {
    GroupEnterOrEditForm groupEnterOrEditForm = (GroupEnterOrEditForm) form;
    GroupManager manager = new GroupManager(locale,session);   
    Group group = new Group();
    groupEnterOrEditForm.modifyGroup(group, locale, session, getResources(req),req.isUserInRole(UserManagerBase.ADMINISTRATOR));
    checkAccessRights(req, group);
    manager.createGroup(group);
    return mapping.findForward("created");
  }
View Full Code Here

   */
  @SuppressWarnings("unused")
  public ActionForward modify(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    GroupEnterOrEditForm groupEnterOrEditForm = (GroupEnterOrEditForm) form;
    GroupManager groupManager = new GroupManager(locale,session);
    Group group = groupManager.getGroup(groupEnterOrEditForm.getGroupId())// groups never get deleted => always found
    groupEnterOrEditForm.modifyGroup(group, locale, session, getResources(req),req.isUserInRole(UserManagerBase.ADMINISTRATOR));
    checkAccessRights(req, group);
    groupManager.modifyGroup(group);
    return mapping.findForward("modified");
  }
View Full Code Here

   *      javax.servlet.http.HttpServletResponse)
   */
  public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse resp) {
    GroupEnterOrEditForm groupEnterOrEditForm = (GroupEnterOrEditForm) form;
    GroupManager groupMgm = new GroupManager(locale,session);
    Group group = groupMgm.getGroup(getGroupId(req))// groups never get deleted => always found
    checkAccessRights(req, group);
    groupEnterOrEditForm.initialize(group, locale, session, getResources(req));
    prepareSession(req, group);
    return mapping.findForward("edit");
  }
View Full Code Here

    }
    fragment.setId(f.getId());
    fragment.setFragmentName(f.getName());
    fragment.setDescription(f.getDescription() == null || f.getDescription().trim().length() == 0 ? null : f.getDescription());
    GroupManager groupMgr = new GroupManager(locale, session);
    Group group = groupMgr.getGroup(f.getGroupId());
    fragment.setGroup(group);
    return fragment;
  }
View Full Code Here

TOP

Related Classes of evolaris.framework.um.datamodel.Group

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.