Class CSSystemPropertyDO

java.lang.Object
mc.core.system.base.BaseBean
mc.core.domain.base.dobj.AbstractBaseDO<CSSystemProperty>
mc.core.domain.system.dobj.CSSystemPropertyDO
All Implemented Interfaces:
IBaseDO<CSSystemProperty>

public class CSSystemPropertyDO extends AbstractBaseDO<CSSystemProperty>
  • Constructor Details

    • CSSystemPropertyDO

      public CSSystemPropertyDO()
  • Method Details

    • save

      public CSSystemProperty save(CSSystemProperty property, DataMap dataMap) throws ApplicationException
      Description copied from interface: IBaseDO
      map data to entity if any, validate and save
      Specified by:
      save in interface IBaseDO<CSSystemProperty>
      Overrides:
      save in class AbstractBaseDO<CSSystemProperty>
      Parameters:
      property - mandatory
      dataMap - optional
      Returns:
      mapped entity
      Throws:
      ApplicationException
    • validator

      public mc.core.domain.system.dobj.CSSystemPropertyDO.CSSystemPropertyValidator validator(CSSystemProperty property, DataMap map) throws ApplicationException
      Description copied from class: AbstractBaseDO
      for persistent entity copy constructor be used, the copy of entity be mapped and validated
      WARNING: in error case param map be changed! non valid fields be deleted from it
      all error be collect as ValidationResults in ValidationException and throw only by validate() call
      Examples to use:
      1. validator( navigationHrc, dataMap).thatValidField( NavigationHrc.Field.navigationHrcType).validate(); 2. validator( navigation, dataMap).thatValidField( Navigation.Field.navigationType, Navigation.Field.navigationHrc) .thatNotNullIf( HrcEntity.Field.parent, n -> n.getNavigationType().getParentNavigationType() != null).validate(); 3. validator( entity, dataMap).thatValidField( Country.Field.iso2Code, "message.validate.Country.iso2Code.missing").thatUnique( Country.Field.iso2Code).validate();
      Overrides:
      validator in class AbstractBaseDO<CSSystemProperty>
      Parameters:
      property - mandatory
      map - optional
      Returns:
      the validator
      Throws:
      ApplicationException - the application exception