Class WidgetHelperServiceImpl

java.lang.Object
ch.tocco.nice2.widget.impl.helper.WidgetHelperServiceImpl
All Implemented Interfaces:
WidgetHelperService

@Component public class WidgetHelperServiceImpl extends Object implements WidgetHelperService
  • Constructor Details

  • Method Details

    • isValidEntity

      public Boolean isValidEntity(Entity entity, Condition validationCondition)
      Description copied from interface: WidgetHelperService
      check if entity with specific validationCondition exists
      Specified by:
      isValidEntity in interface WidgetHelperService
      Parameters:
      entity - the Entity to validate
      validationCondition - the specific Condition
      Returns:
      Boolean
    • getConstrictionAsNode

      public Node getConstrictionAsNode(String entityModel, String constriction)
      Description copied from interface: WidgetHelperService
      get a specific constriction as Node
      Specified by:
      getConstrictionAsNode in interface WidgetHelperService
      Parameters:
      entityModel - the source-entity for the constriction
      constriction - the name of the constriction
      Returns:
      Node
    • getStringConditionAsNode

      public Node getStringConditionAsNode(String entityModel, String condition)
      Description copied from interface: WidgetHelperService
      get string condition as Node
      Specified by:
      getStringConditionAsNode in interface WidgetHelperService
      Parameters:
      entityModel - the source-entity of the condition
      condition - the string condition
      Returns:
      Node
    • setLookupEntity

      public void setLookupEntity(Entity entity, String lookupModelName, String lookupId)
      Description copied from interface: WidgetHelperService
      set relation to a specific lookup-entity on entity
      Specified by:
      setLookupEntity in interface WidgetHelperService
      Parameters:
      entity - the entity to adjust
      lookupModelName - the name of lookup-entity
      lookupId - unique id value of lookup-entity
    • setLookupEntity

      public void setLookupEntity(Entity entity, String lookupModelName, String lookupId, boolean emptyCheck)
      Description copied from interface: WidgetHelperService
      set relation to a specific lookup-entity on entity
      Specified by:
      setLookupEntity in interface WidgetHelperService
      Parameters:
      entity - the entity to adjust
      lookupModelName - the name of lookup-entity
      lookupId - unique id value of lookup-entity
      emptyCheck - only adjust lookup-Entity if relation is empty
    • setLookupEntity

      public void setLookupEntity(Entity entity, String lookupModelName, String relationName, String lookupId, boolean emptyCheck)
      Description copied from interface: WidgetHelperService
      set relation to a specific lookup-entity on entity
      Specified by:
      setLookupEntity in interface WidgetHelperService
      Parameters:
      entity - the entity to adjust
      lookupModelName - the name of lookup-entity
      relationName - the name of relation to the entity
      lookupId - unique id value of lookup-entity
      emptyCheck - only adjust lookup-Entity if relation is empty
    • setCorrespondenceLanguage

      public void setCorrespondenceLanguage(Entity entity)
      Description copied from interface: WidgetHelperService
      set relation to Correspondence_language with L10N.currentLocale() on entity
      Specified by:
      setCorrespondenceLanguage in interface WidgetHelperService
      Parameters:
      entity - the entity to adjust