Class TextResourceResolverStrategy
java.lang.Object
ch.tocco.nice2.persist.entity.impl.defaultvalue.TextResourceResolverStrategy
- All Implemented Interfaces:
DefaultValueResolverStrategy
@Component
public class TextResourceResolverStrategy
extends Object
implements DefaultValueResolverStrategy
-
Field Summary
Fields inherited from interface ch.tocco.nice2.model.base.spi.defaultvalue.spi.DefaultValueResolverStrategy
CURRENT_PRINCIPAL_VAL, CURRENT_USER_VAL, PRINCIPAL_ENTITY, USER_ENTITY
-
Constructor Summary
ConstructorDescriptionTextResourceResolverStrategy
(TypeManager typeManager, TextResources textResources) -
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.
-
Constructor Details
-
TextResourceResolverStrategy
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceDefaultValueResolverStrategy
-
getResolvedValue
Description copied from interface:DefaultValueResolverStrategy
Return the display value that is presented to end users.- Specified by:
getResolvedValue
in interfaceDefaultValueResolverStrategy
- Throws:
ResolvingException
-
isResolvable
Description copied from interface:DefaultValueResolverStrategy
Checks whether this strategy is capable of resolving the given descriptor.- Specified by:
isResolvable
in interfaceDefaultValueResolverStrategy
-