Package mc.core.domain.base.aspect
Class ValueParamBean
java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.aspect.ValueParamBean
@ApplicationScoped
public class ValueParamBean
extends mc.core.system.base.BaseBean
sub API of
AspectAttribute for storing and retrieving attribute value parameter-
Method Summary
Modifier and TypeMethodDescriptionList<mc.core.system.util.misc.Property>get parameter configuration for given attributegetParameter(List<EntityToAttribute> e2as) get parameter for given entityToAttributesget parameter for given entityToAttributegetParameter(EntityToAttribute e2a, boolean withDefault) voidsetParameter(EntityToAttribute e2a, DataMap parameter) set parameter for given entityToAttribute.
-
Method Details
-
getConfig
get parameter configuration for given attribute- Parameters:
attribute- mandatory- Returns:
- list of global and attribute specific configured properties
-
getParameter
get parameter for given entityToAttributes- Parameters:
e2as- mandatory, must not be null. e2as in list must be persistent- Returns:
- map with entry for every given e2a. if e2a has no parameter returned map contains an empty map as value. for empty lists an empty map is returned
-
getParameter
get parameter for given entityToAttribute- Parameters:
e2a- mandatory- Returns:
- map with key/value pairs of existing parameters. there may be parameter values without a corresponding
property configuration returned by (
getConfig(Attribute))
-
getParameter
-
setParameter
set parameter for given entityToAttribute. if value in map is null respective parameter is removed- Parameters:
e2a- mandatory. must be persistentparameter- optional. method does nothing if null or empty
-