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 Details

    • getConfig

      public List<mc.core.system.util.misc.Property> getConfig(Attribute attribute)
      get parameter configuration for given attribute
      Parameters:
      attribute - mandatory
      Returns:
      list of global and attribute specific configured properties
    • getParameter

      public Map<EntityToAttribute,DataMap> getParameter(List<EntityToAttribute> e2as)
      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

      public DataMap getParameter(EntityToAttribute e2a)
      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

      public DataMap getParameter(EntityToAttribute e2a, boolean withDefault)
    • setParameter

      public void setParameter(EntityToAttribute e2a, DataMap parameter)
      set parameter for given entityToAttribute. if value in map is null respective parameter is removed
      Parameters:
      e2a - mandatory. must be persistent
      parameter - optional. method does nothing if null or empty