Tabnine Logo
Program.isRegistration
Code IndexAdd Tabnine to your IDE (free)

How to use
isRegistration
method
in
org.hisp.dhis.program.Program

Best Java code snippets using org.hisp.dhis.program.Program.isRegistration (Showing top 9 results out of 315)

origin: dhis2/dhis2-core

/**
 * Indicates whether the program of this query requires registration of
 * tracked entity instances.
 */
public boolean isProgramRegistration()
{
  return program != null && program.isRegistration();
}
origin: dhis2/dhis2-core

if ( programStageInstance.getProgramInstance().getProgram().isRegistration() )
origin: dhis2/dhis2-core

if ( !program.isRegistration() )
origin: dhis2/dhis2-core

@Override
public ImportSummary deleteEvent( String uid )
{
  boolean existsEvent = programStageInstanceService.programStageInstanceExists( uid );
  if ( existsEvent )
  {
    ProgramStageInstance programStageInstance = programStageInstanceService.getProgramStageInstance( uid );
    List<String> errors = trackerAccessManager.canWrite( currentUserService.getCurrentUser(), programStageInstance );
    if ( !errors.isEmpty() )
    {
      return new ImportSummary( ImportStatus.ERROR, errors.toString() ).incrementIgnored();
    }
    programStageInstanceService.deleteProgramStageInstance( programStageInstance );
    if ( programStageInstance.getProgramStage().getProgram().isRegistration() )
    {
      entityInstanceService.updateTrackedEntityInstance( programStageInstance.getProgramInstance().getEntityInstance() );
    }
    return new ImportSummary( ImportStatus.SUCCESS, "Deletion of event " + uid + " was successful" ).incrementDeleted();
  }
  else
  {
    return new ImportSummary( ImportStatus.SUCCESS, "Event " + uid + " cannot be deleted as it is not present in the system" ).incrementIgnored();
  }
}
origin: dhis2/dhis2-core

if ( program.isRegistration() )
origin: dhis2/dhis2-core

columns.add( new AnalyticsTableColumn( quote( "oucode" ), "text", "ou.code" ) );
if ( program.isRegistration() )
origin: dhis2/dhis2-core

if ( params.getProgramStage().getProgram().isRegistration() && user != null || !user.isSuper() )
origin: dhis2/dhis2-core

if ( !program.isRegistration() )
origin: dhis2/dhis2-core

if ( program.isRegistration() )
org.hisp.dhis.programProgramisRegistration

Popular methods of Program

  • getUid
  • equals
  • getProgramStages
  • getCategoryCombo
  • getDataElements
    Returns all data elements which are part of the stages of this program.
  • getId
  • getProgramAttributes
  • getProgramIndicators
  • getTrackedEntityAttributes
    Returns TrackedEntityAttributes from ProgramTrackedEntityAttributes. Use getAttributes() to access t
  • getName
  • getNotificationTemplates
  • getOrganisationUnits
  • getNotificationTemplates,
  • getOrganisationUnits,
  • getProgramType,
  • getTrackedEntityType,
  • hasOrganisationUnit,
  • hashCode,
  • isWithoutRegistration,
  • setCategoryCombo,
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • findViewById (Activity)
  • onCreateOptionsMenu (Activity)
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Join (org.hibernate.mapping)
  • Github Copilot alternatives
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