Interface DefaultValueResolverStrategy
- All Known Implementing Classes:
FreemarkerQueryResolverStrategy, FreemarkerResolverStrategy, HardResolverStrategy, NullResolverStrategy, QueryResolverStrategy, QuerySingleResolverStrategy, TextResourceResolverStrategy
public interface DefaultValueResolverStrategy
This class resolves a default value of a concrete type from the xml file to the
concrete value.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe directive to handle the current principal in queries or templates.static final StringThe directive to handle the current user in queries or templates.static final StringThe name of the Principal entity.static final StringThe name of the User entity. -
Method Summary
Modifier and TypeMethodDescriptiongetResolvedValue(DefaultValueDescriptor defaultValue) Return the display value that is presented to end users.getType()booleanisResolvable(DefaultValueDescriptor descriptor) Checks whether this strategy is capable of resolving the given descriptor.
-
Field Details
-
PRINCIPAL_ENTITY
-
USER_ENTITY
-
CURRENT_PRINCIPAL_VAL
The directive to handle the current principal in queries or templates.- See Also:
-
CURRENT_USER_VAL
The directive to handle the current user in queries or templates.- See Also:
-
-
Method Details
-
getResolvedValue
Return the display value that is presented to end users.- Throws:
ResolvingException
-
isResolvable
Checks whether this strategy is capable of resolving the given descriptor. -
getType
String getType()
-