Package ch.tocco.nice2.widget.api.helper
Interface WidgetHelperService
- All Known Implementing Classes:
WidgetHelperServiceImpl
public interface WidgetHelperService
-
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
-
Method Details
-
isValidEntity
check if entity with specific validationCondition exists- Parameters:
entity- theEntityto validatevalidationCondition- the specificCondition- Returns:
- Boolean
-
getConstrictionAsNode
get a specific constriction as Node- Parameters:
entityModel- the source-entity for the constrictionconstriction- the name of the constriction- Returns:
- Node
-
getStringConditionAsNode
get string condition as Node- Parameters:
entityModel- the source-entity of the conditioncondition- the string condition- Returns:
- Node
-
setLookupEntity
set relation to a specific lookup-entity on entity- Parameters:
entity- the entity to adjustlookupModelName- the name of lookup-entitylookupId- unique id value of lookup-entity
-
setCorrespondenceLanguage
set relation to Correspondence_language withL10N.currentLocale()on entity- Parameters:
entity- the entity to adjust
-