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 String
The directive to handle the current principal in queries or templates.static final String
The directive to handle the current user in queries or templates.static final String
The name of the Principal entity.static final String
The name of the User entity. -
Method Summary
Modifier and TypeMethodDescriptiongetResolvedValue
(DefaultValueDescriptor defaultValue) Return the display value that is presented to end users.getType()
boolean
isResolvable
(DefaultValueDescriptor descriptor) Checks whether this strategy is capable of resolving the given descriptor.
-
Field Details
-
PRINCIPAL_ENTITY
The name of the Principal entity.- See Also:
-
USER_ENTITY
The name of the User entity.- See Also:
-
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()
-