Class OneStandardValueEntityListenerContribution

java.lang.Object
ch.tocco.nice2.entityoperation.api.OneStandardValueEntityListenerContribution

public class OneStandardValueEntityListenerContribution extends Object
example: Listen to Voucher_type Entities whose standard Field is called standard

 @Bean
 public OneStandardValueEntityListenerContribution exportTemplateOneStandardValueEntityListenerContribution() {
     OneStandardValueEntityListenerContribution contribution = new OneStandardValueEntityListenerContribution();
     contribution.setStandardValueNeeded(false);
     contribution.setGroupingField("entity");
     contribution.setEntityName("Export_template");
     contribution.setStandardValueFieldName("default_template");
     return contribution;
 }
 
  • Constructor Details

    • OneStandardValueEntityListenerContribution

      public OneStandardValueEntityListenerContribution()
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getEntityName

      public String getEntityName()
    • setEntityName

      public void setEntityName(String entityName)
    • getStandardValueFieldName

      public String getStandardValueFieldName()
    • setStandardValueFieldName

      public void setStandardValueFieldName(String standardValueFieldName)
    • getStandardValueNeeded

      public boolean getStandardValueNeeded()
    • setStandardValueNeeded

      public void setStandardValueNeeded(boolean standardValueNeeded)
    • getGroupingRelation

      @Nullable public @Nullable String getGroupingRelation()
    • setGroupingRelation

      public void setGroupingRelation(@Nullable @Nullable String groupingRelation)
    • getGroupingField

      @Nullable public @Nullable String getGroupingField()
    • setGroupingField

      public void setGroupingField(@Nullable @Nullable String groupingField)