Package org.vosao.entity

Examples of org.vosao.entity.StructureEntity


    }
    if (page.getModDate() != null) {
      pageElement.addElement("modDate").setText(
          DateUtil.dateTimeToString(page.getModDate()));
    }
    StructureEntity structure = getDao().getStructureDao().getById(
        page.getStructureId());
    pageElement.addElement("structure").setText(
        structure == null ? "" : structure.getTitle());
    StructureTemplateEntity structureTemplate = getDao()
        .getStructureTemplateDao().getById(page.getStructureTemplateId());
    pageElement.addElement("structureTemplate").setText(
        structureTemplate == null ? ""  : structureTemplate.getName());
    pageElement.addElement("pageType").setText(page.getPageType().name());
View Full Code Here


      }
      if (element.getName().equals("sortIndex")) {
        newPage.setSortIndex(XmlUtil.readIntegerText(element, 0));
      }
      if (element.getName().equals("structure")) {
        StructureEntity structure = getDao().getStructureDao().getByTitle(
            element.getText());
        newPage.setStructureId(structure == null ? null : structure.getId());
      }
      if (element.getName().equals("structureTemplate")) {
        StructureTemplateEntity structureTemplate = getDao()
            .getStructureTemplateDao().getByName(element.getText());
        if (structureTemplate == null) {
View Full Code Here

 
  @Override
  public void structureSave(StructureEntity entity) throws DaoTaskException {
    if (isSkip()) {
      if (entity.getId() == null) {
        StructureEntity found = getDao().getStructureDao().getByTitle(
            entity.getTitle());
        if (found == null) {
          throw new DaoTaskException("Structure not found while "
            + "skipping save operation. " + entity.getTitle());
        }
        entity.setId(found.getId());
      }
    }
    else {
      getDao().getStructureDao().saveNoAudit(entity);
    }
View Full Code Here

TOP

Related Classes of org.vosao.entity.StructureEntity

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.