Package de.innovationgate.webgate.api

Examples of de.innovationgate.webgate.api.WGContent.removeRelation()


        // If the listener is a hdbmodel content we will remove it's relation on the created content
        WGContent listenerContent = event.getListenerContent();
        WGContent movedContent = event.getContent();
        if (listenerContent.getItemValue(HDBModel.ITEM_TYPE).equals(HDBModel.TYPE_CONTENT)) {
            String relationName = "parent-" + listenerContent.getContentClass();
            movedContent.removeRelation(relationName);
            movedContent.save();
        }
       
       
      if (event.isDirectChild()) {
View Full Code Here


                          else {
                              if (fieldReg.isMultiple()) {
                                  content.clearRelationGroup(fieldName);
                              }
                              else {
                                  content.removeRelation(fieldName);
                            }
                            }  
                        }
                       
                        // Plain item field
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.