Package com.jada.jpa.entity

Examples of com.jada.jpa.entity.IeProfileHeader


       
        Vector<IeProfileDetailDisplayForm> itemImageVector = new Vector<IeProfileDetailDisplayForm>();
       
        Vector<IeProfileDetailDisplayForm> otherVector = new Vector<IeProfileDetailDisplayForm>();

        IeProfileHeader header = IeProfileHeaderDAO.load(site.getSiteId(), Format.getLong(form.getIeProfileHeaderId()));
        form.setIeProfileHeaderName(header.getIeProfileHeaderName());
        form.setIeProfileType(String.valueOf(header.getIeProfileType()));
        form.setSystemRecord(String.valueOf(header.getSystemRecord()));
       
        for (IeProfileDetail detail : header.getIeProfileDetails()) {
          IeProfileDetailDisplayForm detailDisplayForm = new IeProfileDetailDisplayForm();
          detailDisplayForm.setIeProfileGroupName(detail.getIeProfileGroupName());
          if (detail.getIeProfileGroupIndex() != null) {
            detailDisplayForm.setIeProfileGroupIndex(detail.getIeProfileGroupIndex().toString());
          }
View Full Code Here


    sql = "from IeProfileHeader ieProfileHeader where ieProfileHeader.site.siteId = :siteId";
    query = em.createQuery(sql);
    query.setParameter("siteId", site.getSiteId());
    iterator = query.getResultList().iterator();
    while (iterator.hasNext()) {
      IeProfileHeader ieProfileHeader = (IeProfileHeader) iterator.next();
      for (IeProfileDetail ieProfileDetail : ieProfileHeader.getIeProfileDetails()) {
        em.remove(ieProfileDetail);
      }
        em.remove(ieProfileHeader);
    }
       
View Full Code Here

    throws Throwable {
   
    EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
        Site site = getAdminBean(request).getSite();
    IeProfileMaintActionForm form = (IeProfileMaintActionForm) actionForm;
    IeProfileHeader header = IeProfileHeaderDAO.load(site.getSiteId(), Format.getLong(form.getIeProfileHeaderId()));
    for (IeProfileDetail detail : header.getIeProfileDetails()) {
      em.remove(detail);
    }
    em.remove(header);
    ActionForward actionForward = actionMapping.findForward("removeSuccess");
    return actionForward;
View Full Code Here

    AdminBean adminBean = getAdminBean(request);
    Site site = adminBean.getSite();
    String siteId = site.getSiteId();

    IeProfileHeader ieProfileHeader = new IeProfileHeader();
    if (insertMode) {
          Vector<IeProfileDetailDisplayForm> vector = new Vector<IeProfileDetailDisplayForm>();
          for (ItemSimpleCsvMapping csvMapping : ItemSimpleCsvTransformation.FIELDS_GENERAL) {
            IeProfileDetailDisplayForm ieProfileDetailDisplayForm = new IeProfileDetailDisplayForm();
            ieProfileDetailDisplayForm.setIeProfileFieldName(csvMapping.getIeProfileFieldName());
            vector.add(ieProfileDetailDisplayForm);
          }
          IeProfileDetailDisplayForm[] generalDisplayForms = new IeProfileDetailDisplayForm[vector.size()];
          vector.copyInto(generalDisplayForms);
          form.setIeProfileGeneralDetails(generalDisplayForms);
    }
    else {
      ieProfileHeader = IeProfileHeaderDAO.load(siteId, Format.getLong(form.getIeProfileHeaderId()));
    }

    ActionMessages errors = validate(form, request);
    if (errors.size() != 0) {
      saveMessages(request, errors);
          if (insertMode) {
              FormUtils.setFormDisplayMode(request, form, FormUtils.CREATE_MODE);
          }
          else {
              FormUtils.setFormDisplayMode(request, form, FormUtils.EDIT_MODE);
          }
      return mapping.findForward("error");
    }

    if (insertMode) {
      ieProfileHeader.setSystemRecord(Constants.VALUE_NO);
      ieProfileHeader.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileHeader.setRecCreateDatetime(new Date(System.currentTimeMillis()));
    }
    ieProfileHeader.setSite(site);
    ieProfileHeader.setIeProfileType(form.getIeProfileType().charAt(0));
    ieProfileHeader.setIeProfileHeaderName(form.getIeProfileHeaderName());
    ieProfileHeader.setRecUpdateBy(adminBean.getUser().getUserId());
    ieProfileHeader.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
    if (insertMode) {
      em.persist(ieProfileHeader);
    }
   
    for (IeProfileDetail ieProfileDetail : ieProfileHeader.getIeProfileDetails()) { 
      em.remove(ieProfileDetail);
    }
   
    int seqNum = 0;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileGeneralDetails()) {
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(Integer.valueOf(detailForm.getIeProfileGroupIndex()));
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }
   
    int groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileCategoryDetails()) {
      if (detailForm.getIeProfileFieldName().equals("catId")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }
   
    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileItemRelatedDetails()) {
      if (detailForm.getIeProfileFieldName().equals("itemId")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }
   
    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileItemUpSellDetails()) {
      if (detailForm.getIeProfileFieldName().equals("itemId")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }
   
    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileItemCrossSellDetails()) {
      if (detailForm.getIeProfileFieldName().equals("itemId")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }
   
    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileItemTierPriceDetails()) {
      if (detailForm.getIeProfileFieldName().equals("custClassId")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }

    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileItemAttributeDetails()) {
      if (detailForm.getIeProfileFieldName().equals("customAttribId")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }

    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileItemImageDetails()) {
      if (detailForm.getIeProfileFieldName().equals("itemImageLocation")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }

    groupIndex = -1;
    for (IeProfileDetailDisplayForm detailForm : form.getIeProfileOtherDetails()) {
      if (detailForm.getIeProfileFieldName().equals("default")) {
        groupIndex++;
      }
     
      IeProfileDetail ieProfileDetail = new IeProfileDetail();
      ieProfileDetail.setIeProfileGroupName(detailForm.getIeProfileGroupName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileGroupIndex())) {
        ieProfileDetail.setIeProfileGroupIndex(groupIndex);
      }
      ieProfileDetail.setIeProfileFieldName(detailForm.getIeProfileFieldName());
      if (!Format.isNullOrEmpty(detailForm.getIeProfileFieldValue())) {
        ieProfileDetail.setIeProfileFieldValue(detailForm.getIeProfileFieldValue());
      }
      ieProfileDetail.setSeqNum(Integer.valueOf(seqNum++));
      if (!Format.isNullOrEmpty(detailForm.getIeProfilePosition())) {
        ieProfileDetail.setIeProfilePosition(Integer.valueOf(detailForm.getIeProfilePosition()));
      }
      ieProfileDetail.setRecUpdateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileDetail.setRecCreateBy(adminBean.getUser().getUserId());
      ieProfileDetail.setRecCreateDatetime(new Date(System.currentTimeMillis()));
      em.persist(ieProfileDetail);
      ieProfileDetail.setIeProfileHeader(ieProfileHeader);
    }
   
        form.setIeProfileHeaderId(Format.getLong(ieProfileHeader.getIeProfileHeaderId()));
    form.setMode("U");
        FormUtils.setFormDisplayMode(request, form, FormUtils.EDIT_MODE);
    return mapping.findForward("success");
  }
View Full Code Here

    Query query = em.createQuery(sql);
    query.setParameter("siteId", site.getSiteId());
    Iterator<?> iterator = query.getResultList().iterator();
    Vector<LabelValueBean> vector = new Vector<LabelValueBean>();
    while (iterator.hasNext()) {
      IeProfileHeader ieProfileHeader = (IeProfileHeader) iterator.next();
      vector.add(new LabelValueBean(ieProfileHeader.getIeProfileHeaderName(), ieProfileHeader.getIeProfileHeaderId().toString()));
    }
    LabelValueBean headers[] = new LabelValueBean[vector.size()];
    vector.copyInto(headers);
    form.setIeProfileHeaderList(headers);
    }
View Full Code Here

          query.setParameter("ieProfileHeaderName", "%" + form.getSrIeProfileHeaderName() + "%");
        }
        Iterator<?> iterator = query.getResultList().iterator();
        Vector<IeProfileHeaderDisplayForm> vector = new Vector<IeProfileHeaderDisplayForm>();
        while (iterator.hasNext()) {
          IeProfileHeader ieProfileHeader = (IeProfileHeader) iterator.next();
        IeProfileHeaderDisplayForm ieProfileHeaderDisplay = new IeProfileHeaderDisplayForm();
        ieProfileHeaderDisplay.setIeProfileHeaderId(Format.getLong(ieProfileHeader.getIeProfileHeaderId()));
        ieProfileHeaderDisplay.setIeProfileHeaderName(ieProfileHeader.getIeProfileHeaderName());
        if (ieProfileHeader.getIeProfileType() == 'I') {
          ieProfileHeaderDisplay.setIeProfileTypeValue("Import");
        }
        else {
          ieProfileHeaderDisplay.setIeProfileTypeValue("Export");
        }
        ieProfileHeaderDisplay.setIeProfileType(String.valueOf(ieProfileHeader.getIeProfileType()));
        ieProfileHeaderDisplay.setSystemRecord(String.valueOf(ieProfileHeader.getSystemRecord()));
        ieProfileHeaderDisplay.setModify(true);
        if (ieProfileHeader.getSystemRecord() == Constants.VALUE_YES) {
          ieProfileHeaderDisplay.setModify(false);
        }
        vector.add(ieProfileHeaderDisplay);
        }
        IeProfileHeaderDisplayForm ieProfileHeaders[] = new IeProfileHeaderDisplayForm[vector.size()];
View Full Code Here

      EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
      Site site = getAdminBean(request).getSite();
        IeProfileListingActionForm form = (IeProfileListingActionForm) actionForm;
        for (IeProfileHeaderDisplayForm headerForm : form.getIeProfileHeaders()) {
          if (headerForm.isSelected()) {
            IeProfileHeader ieProfileHeader = IeProfileHeaderDAO.load(site.getSiteId(), Format.getLong(headerForm.getIeProfileHeaderId()));
              Iterator<?> iterator = ieProfileHeader.getIeProfileDetails().iterator();
              while (iterator.hasNext()) {
                IeProfileDetail ieProfileDetail = (IeProfileDetail) iterator.next();
                em.remove(ieProfileDetail);
              }
              em.remove(ieProfileHeader);
View Full Code Here

    Query query = em.createQuery(sql);
    query.setParameter("siteId", site.getSiteId());
    Iterator<?> iterator = query.getResultList().iterator();
    Vector<LabelValueBean> vector = new Vector<LabelValueBean>();
    while (iterator.hasNext()) {
      IeProfileHeader ieProfileHeader = (IeProfileHeader) iterator.next();
      vector.add(new LabelValueBean(ieProfileHeader.getIeProfileHeaderName(), ieProfileHeader.getIeProfileHeaderId().toString()));
    }
    LabelValueBean headers[] = new LabelValueBean[vector.size()];
    vector.copyInto(headers);
    form.setIeProfileHeaderList(headers);
    }
View Full Code Here

   
    sql = "from IeProfileHeader ieProfileHeader where ieProfileHeader.site.siteId = 'default' and systemRecord = 'Y'";
    query = em.createQuery(sql);
    iterator = query.getResultList().iterator();
    while (iterator.hasNext()) {
      IeProfileHeader masterProfileHeader = (IeProfileHeader) iterator.next();
      IeProfileHeader ieProfileHeader = new IeProfileHeader();
      ieProfileHeader.setSite(site);
      ieProfileHeader.setIeProfileHeaderName(masterProfileHeader.getIeProfileHeaderName());
      ieProfileHeader.setIeProfileType(masterProfileHeader.getIeProfileType());
      ieProfileHeader.setSystemRecord(Constants.VALUE_YES);
      ieProfileHeader.setRecUpdateBy(userId);
      ieProfileHeader.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
      ieProfileHeader.setRecCreateBy(userId);
      ieProfileHeader.setRecCreateDatetime(new Date(System.currentTimeMillis()));
     
      Iterator<?> detailIterator = masterProfileHeader.getIeProfileDetails().iterator();
      while (detailIterator.hasNext()) {
        IeProfileDetail masterProfileDetail = (IeProfileDetail) detailIterator.next();
        IeProfileDetail ieProfileDetail = new IeProfileDetail();
View Full Code Here

public class IeProfileHeaderDAO extends Menu {
  private static final long serialVersionUID = -1917561499284595185L;

  public static IeProfileHeader load(String siteId, Long ieProfileHeaderId) throws SecurityException, Exception {
      EntityManager em = JpaConnection.getInstance().getCurrentEntityManager();
    IeProfileHeader ieProfileHeader = (IeProfileHeader) em.find(IeProfileHeader.class, ieProfileHeaderId);
    if (!ieProfileHeader.getSite().getSiteId().equals(siteId)) {
      throw new SecurityException();
    }
    return ieProfileHeader;
  }
View Full Code Here

TOP

Related Classes of com.jada.jpa.entity.IeProfileHeader

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.