congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ValidationRule.setPeriodType
Code IndexAdd Tabnine to your IDE (free)

How to use
setPeriodType
method
in
org.hisp.dhis.validation.ValidationRule

Best Java code snippets using org.hisp.dhis.validation.ValidationRule.setPeriodType (Showing top 4 results out of 315)

origin: dhis2/dhis2-core

@Override
public void save( ValidationRule validationRule )
{
  PeriodType periodType = periodService.reloadPeriodType( validationRule.getPeriodType() );
  validationRule.setPeriodType( periodType );
  super.save( validationRule );
}
origin: dhis2/dhis2-core

@Override
public void update( ValidationRule validationRule )
{
  PeriodType periodType = periodService.reloadPeriodType( validationRule.getPeriodType() );
  validationRule.setPeriodType( periodType );
  super.save( validationRule );
}
origin: dhis2/dhis2-core

/**
 * @param uniqueCharacter    A unique character to identify the object.
 * @param operator           The operator.
 * @param leftSide           The left side expression.
 * @param rightSide          The right side expression.
 * @param periodType         The period-type.
 * @param skipFormValidation Skip when validating forms.
 */
public static ValidationRule createValidationRule( String uniqueCharacter, Operator operator, Expression leftSide,
  Expression rightSide, PeriodType periodType, boolean skipFormValidation )
{
  Assert.notNull( leftSide, "Left side expression must be specified" );
  Assert.notNull( rightSide, "Rigth side expression must be specified" );
  ValidationRule validationRule = new ValidationRule();
  validationRule.setAutoFields();
  validationRule.setName( "ValidationRule" + uniqueCharacter );
  validationRule.setDescription( "Description" + uniqueCharacter );
  validationRule.setOperator( operator );
  validationRule.setLeftSide( leftSide );
  validationRule.setRightSide( rightSide );
  validationRule.setPeriodType( periodType );
  validationRule.setSkipFormValidation( skipFormValidation );
  return validationRule;
}
origin: dhis2/dhis2-core

object.setPeriodType(
  PeriodType.getByNameIgnoreCase( getSafe( values, 8, MonthlyPeriodType.NAME, 255 ) ) );
org.hisp.dhis.validationValidationRulesetPeriodType

Popular methods of ValidationRule

  • getGroups
  • getLeftSide
  • getRightSide
  • <init>
  • equals
  • getId
  • getNotificationTemplates
  • getPeriodType
  • setAutoFields
  • setDescription
  • setLeftSide
  • setOperator
  • setLeftSide,
  • setOperator,
  • setRightSide,
  • getDisplayName,
  • getImportance,
  • getOperator,
  • getOrganisationUnitLevels,
  • getUid,
  • hashCode

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ImageIO (javax.imageio)
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now