Codota Logo
IdentifiableObjectUtils.join
Code IndexAdd Codota to your IDE (free)

How to use
join
method
in
org.hisp.dhis.common.IdentifiableObjectUtils

Best Java code snippets using org.hisp.dhis.common.IdentifiableObjectUtils.join (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: dhis2/dhis2-core

/**
 * Returns a concatenated String of the display names of all user authority
 * groups for this user credentials.
 */
public String getUserAuthorityGroupsName()
{
  return IdentifiableObjectUtils.join( userAuthorityGroups );
}
origin: dhis2/dhis2-core

public String getOrganisationUnitsName()
{
  return IdentifiableObjectUtils.join( organisationUnits );
}
origin: dhis2/dhis2-core

public String generateTitle()
{
  List<String> titleItems = new ArrayList<>();
  for ( String filter : filterDimensions )
  {
    DimensionalObject object = getDimensionalObject( filter, relativePeriodDate, relativeUser, true,
      organisationUnitsAtLevel, organisationUnitsInGroups, format );
    if ( object != null )
    {
      String item = IdentifiableObjectUtils.join( object.getItems() );
      String filt = DimensionalObjectUtils.getPrettyFilter( object.getFilter() );
      if ( item != null )
      {
        titleItems.add( item );
      }
      if ( filt != null )
      {
        titleItems.add( filt );
      }
    }
  }
  return join( titleItems, DimensionalObjectUtils.TITLE_ITEM_SEP );
}
origin: dhis2/dhis2-core

public void populateGridColumnsAndRows( Date date, User user,
  List<OrganisationUnit> organisationUnitsAtLevel, List<OrganisationUnit> organisationUnitsInGroups, I18nFormat format )
{
  List<DimensionalItemObject[]> tableColumns = new ArrayList<>();
  List<DimensionalItemObject[]> tableRows = new ArrayList<>();
  List<DimensionalItemObject> filterItems = new ArrayList<>();
  for ( String dimension : columnDimensions )
  {
    tableColumns.add( getDimensionalObject( dimension, date, user, false, organisationUnitsAtLevel, organisationUnitsInGroups, format ).getItems().toArray( IRT ) );
  }
  for ( String dimension : rowDimensions )
  {
    tableRows.add( getDimensionalObject( dimension, date, user, true, organisationUnitsAtLevel, organisationUnitsInGroups, format ).getItems().toArray( IRT ) );
  }
  for ( String filter : filterDimensions )
  {
    filterItems.addAll( getDimensionalObject( filter, date, user, true, organisationUnitsAtLevel, organisationUnitsInGroups, format ).getItems() );
  }
  gridColumns = new CombinationGenerator<>( tableColumns.toArray( IRT2D ) ).getCombinations();
  gridRows = new CombinationGenerator<>( tableRows.toArray( IRT2D ) ).getCombinations();
  addListIfEmpty( gridColumns );
  addListIfEmpty( gridRows );
  gridTitle = IdentifiableObjectUtils.join( filterItems );
}
origin: dhis2/dhis2-core

outputGrid.setTitle( IdentifiableObjectUtils.join( params.getFilterItems() ) );
origin: dhis2/dhis2-core

.setGridTitle( IdentifiableObjectUtils.join( params.getFilterItems() ) )
.setGridColumns( new CombinationGenerator<>( tableColumns.toArray( IRT2D ) ).getCombinations() )
.setGridRows( new CombinationGenerator<>( tableRows.toArray( IRT2D ) ).getCombinations() );
org.hisp.dhis.commonIdentifiableObjectUtilsjoin

Javadoc

Joins the names of the IdentifiableObjects in the given list and separates them with IdentifiableObjectUtils#SEPARATOR_JOIN (a comma and a space). Returns null if the given list is null or has no elements.

Popular methods of IdentifiableObjectUtils

  • getIdentifiers
    Returns a list of internal identifiers for the given collection of IdentifiableObjects.
  • getUids
    Returns a list of uids for the given collection of IdentifiableObjects.
  • getIdMap
    Returns a map of the identifiable property specified by the given id scheme and the corresponding ob
  • getLocalPeriodIdentifier
    Returns a local period identifier for a specific period / calendar.
  • getLocalPeriodIdentifiers
    Returns a list of calendar specific period identifiers for the given collection of periods and calen
  • getDisplayName
  • getPeriodByPeriodType
    Returns the Period of the argument period type which corresponds to the argument period. The frequen
  • getUidObjectMap
    Returns a mapping between the uid and the name of the given identifiable objects.
  • removeDuplicates
    Removes duplicates from the given list while maintaining the order.

Popular in Java

  • Making http post requests using okhttp
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now