Package com.agiletec.aps.system.common.entity.parse

Examples of com.agiletec.aps.system.common.entity.parse.EntityHandler


    try {
      Content entityPrototype = (Content) this.getContentManager().getEntityPrototype(entityTypeCode);
      SAXParserFactory parseFactory = SAXParserFactory.newInstance();     
      SAXParser parser = parseFactory.newSAXParser();
      InputSource is = new InputSource(new StringReader(xml));
      EntityHandler handler = this.getEntityHandler();
      handler.initHandler(entityPrototype, this.getXmlAttributeRootElementName(), this.getCategoryManager());
      parser.parse(is, handler);
      return entityPrototype;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "createEntityFromXml");
      throw new ApsSystemException("Error on creation entity", t);
View Full Code Here


    try {
      IApsEntity entityPrototype = this.getUserProfileManager().getProfileType(entityTypeCode);
      SAXParserFactory parseFactory = SAXParserFactory.newInstance();     
      SAXParser parser = parseFactory.newSAXParser();
      InputSource is = new InputSource(new StringReader(xml));
      EntityHandler handler = this.getEntityHandler();
      handler.initHandler(entityPrototype, "profile", null);
      parser.parse(is, handler);
      return entityPrototype;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "createEntityFromXml");
      throw new ApsSystemException("Errore caricamento entità", t);
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.common.entity.parse.EntityHandler

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.