Class WidgetHelperServiceImpl
java.lang.Object
ch.tocco.nice2.widget.impl.helper.WidgetHelperServiceImpl
- All Implemented Interfaces:
WidgetHelperService
-
Constructor Summary
ConstructorsConstructorDescriptionWidgetHelperServiceImpl(Context context, ConstrictionManager constrictionManager, L10N l10N, QueryBuilderFactory queryBuilderFactory, QueryCompiler queryCompiler) -
Method Summary
Modifier and TypeMethodDescriptiongetConstrictionAsNode(String entityModel, String constriction) get a specific constriction as NodegetStringConditionAsNode(String entityModel, String condition) get string condition as NodeisValidEntity(Entity entity, Condition validationCondition) check if entity with specific validationCondition existsvoidsetCorrespondenceLanguage(Entity entity) set relation to Correspondence_language withL10N.currentLocale()on entityvoidsetLookupEntity(Entity entity, String lookupModelName, String lookupId) set relation to a specific lookup-entity on entity
-
Constructor Details
-
WidgetHelperServiceImpl
public WidgetHelperServiceImpl(Context context, ConstrictionManager constrictionManager, L10N l10N, QueryBuilderFactory queryBuilderFactory, QueryCompiler queryCompiler)
-
-
Method Details
-
isValidEntity
Description copied from interface:WidgetHelperServicecheck if entity with specific validationCondition exists- Specified by:
isValidEntityin interfaceWidgetHelperService- Parameters:
entity- theEntityto validatevalidationCondition- the specificCondition- Returns:
- Boolean
-
getConstrictionAsNode
Description copied from interface:WidgetHelperServiceget a specific constriction as Node- Specified by:
getConstrictionAsNodein interfaceWidgetHelperService- Parameters:
entityModel- the source-entity for the constrictionconstriction- the name of the constriction- Returns:
- Node
-
getStringConditionAsNode
Description copied from interface:WidgetHelperServiceget string condition as Node- Specified by:
getStringConditionAsNodein interfaceWidgetHelperService- Parameters:
entityModel- the source-entity of the conditioncondition- the string condition- Returns:
- Node
-
setLookupEntity
Description copied from interface:WidgetHelperServiceset relation to a specific lookup-entity on entity- Specified by:
setLookupEntityin interfaceWidgetHelperService- Parameters:
entity- the entity to adjustlookupModelName- the name of lookup-entitylookupId- unique id value of lookup-entity
-
setCorrespondenceLanguage
Description copied from interface:WidgetHelperServiceset relation to Correspondence_language withL10N.currentLocale()on entity- Specified by:
setCorrespondenceLanguagein interfaceWidgetHelperService- Parameters:
entity- the entity to adjust
-