Class WidgetHelperServiceImpl
java.lang.Object
ch.tocco.nice2.widget.impl.helper.WidgetHelperServiceImpl
- All Implemented Interfaces:
WidgetHelperService
-
Constructor Summary
ConstructorDescriptionWidgetHelperServiceImpl
(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 existsvoid
setCorrespondenceLanguage
(Entity entity) set relation to Correspondence_language withL10N.currentLocale()
on entityvoid
setLookupEntity
(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:WidgetHelperService
check if entity with specific validationCondition exists- Specified by:
isValidEntity
in interfaceWidgetHelperService
- Parameters:
entity
- theEntity
to validatevalidationCondition
- the specificCondition
- Returns:
- Boolean
-
getConstrictionAsNode
Description copied from interface:WidgetHelperService
get a specific constriction as Node- Specified by:
getConstrictionAsNode
in interfaceWidgetHelperService
- Parameters:
entityModel
- the source-entity for the constrictionconstriction
- the name of the constriction- Returns:
- Node
-
getStringConditionAsNode
Description copied from interface:WidgetHelperService
get string condition as Node- Specified by:
getStringConditionAsNode
in interfaceWidgetHelperService
- Parameters:
entityModel
- the source-entity of the conditioncondition
- the string condition- Returns:
- Node
-
setLookupEntity
Description copied from interface:WidgetHelperService
set relation to a specific lookup-entity on entity- Specified by:
setLookupEntity
in interfaceWidgetHelperService
- Parameters:
entity
- the entity to adjustlookupModelName
- the name of lookup-entitylookupId
- unique id value of lookup-entity
-
setCorrespondenceLanguage
Description copied from interface:WidgetHelperService
set relation to Correspondence_language withL10N.currentLocale()
on entity- Specified by:
setCorrespondenceLanguage
in interfaceWidgetHelperService
- Parameters:
entity
- the entity to adjust
-