Examples of TMLScriptHDBListener


Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

            movedContent.save();
        }
       
       
      if (event.isDirectChild()) {
           TMLScriptHDBListener customListener = retrieveCustomListener(event);
           if (customListener != null) {
             customListener.postMoveContentFrom(event);
           }       
       }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

            movedContent.setRelation(relationName, listenerContent);           
            movedContent.save();
        }
       
      if (event.isDirectChild()) {
           TMLScriptHDBListener customListener = retrieveCustomListener(event);
           if (customListener != null) {
             customListener.postMoveContentTo(event);
           }       
       }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

            // Exit. This is no hdb model triggered action
            return;
        }
       
      if (event.isDirectChild()) {
           TMLScriptHDBListener customListener = retrieveCustomListener(event);
           if (customListener != null) {
             customListener.preMoveContentFrom(event);
           }       
       }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

            return;
        }
     
     
      if (event.isDirectChild()) {
           TMLScriptHDBListener customListener = retrieveCustomListener(event);
           if (customListener != null) {
             customListener.preMoveContentTo(event);
           }       
       }
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

                // Init the submodel of a new content
                if (event.getContent().getItemText(HDBModel.ITEM_TYPE).equals(HDBModel.TYPE_CONTENT)) {
                    model.initSubmodel(newContent);
                }
               
                 TMLScriptHDBListener customListener = retrieveCustomListener(event);
              if (customListener != null) {
                customListener.postCreateContent(event);
              }       
             
            }
           
            // Operations for model storages only
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

            // Exit. This is no hdb model triggered action
            return;
        }
     
        if (event.isDirectChild()) {
          TMLScriptHDBListener customListener = retrieveCustomListener(event);
          if (customListener != null) {
            customListener.postUpdateContent(event);
          }       
      }
     
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

        }
       
        HDBModelParams params = (HDBModelParams) event.getParameter();
       
        if (event.isDirectChild()) {
          TMLScriptHDBListener customListener = retrieveCustomListener(event, params.getContentClass());
          if (customListener != null) {
            customListener.preCreateContent(event);
          }       
      }
       
        TMLForm form = params.getForm();
        if (form != null) {
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

            // Exit. This is no hdb model triggered action
            return;
        }
       
      if (event.isDirectChild()) {
          TMLScriptHDBListener customListener = retrieveCustomListener(event);
          if (customListener != null) {
            customListener.preDeleteContent(event);
          }       
      }
     
    }
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

               
      // Operations for the parent of the created content only (should only be executed once)
        if (event.isDirectChild()) {  
          HDBModelParams params = (HDBModelParams) event.getParameter();
         
          TMLScriptHDBListener customListener = retrieveCustomListener(event);
          if (customListener != null) {
            customListener.preUpdateContent(event);
          }
         
          if (params.getProcess() != null) {
            Map<String, Object> processParams = new HashMap<String, Object>();
            processParams.put("hdbEvent", "event");
View Full Code Here

Examples of de.innovationgate.wgpublisher.webtml.utils.TMLScriptHDBListener

   
    private TMLScriptHDBListener retrieveCustomListener(WGHierarchicalDatabaseEvent event, String contentClass) throws WGAPIException {
      String moduleName = TMLSCRIPT_LISTENER_FOLDER + ":" + contentClass;
        WGCSSJSModule module = event.getDb().getWrappedDB().getScriptModule(moduleName, WGScriptModule.CODETYPE_TMLSCRIPT);
        if (module != null) {
          return new TMLScriptHDBListener(getModel(event).getCore(), moduleName);
        }
        return null;
    }
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.