@Override public PredictorGroup getPredictorGroup( String uid ) { return predictorGroupStore.getByUid( uid ); }
@Override public OptionSet getOptionSet( String uid ) { return optionSetStore.getByUid( uid ); }
@Override public Constant getConstant( String uid ) { return constantStore.getByUid( uid ); }
@Override public ProgramTrackedEntityAttributeGroup getProgramTrackedEntityAttributeGroup( String uid ) { return attributeGroupStore.getByUid( uid ); }
@Override public LegendSet getLegendSet( String uid ) { return legendSetStore.getByUid( uid ); }
@Override public TrackedEntityType getTrackedEntityType( String uid ) { return trackedEntityTypeStore.getByUid( uid ); }
@Override public IndicatorGroup getIndicatorGroup( String uid ) { return indicatorGroupStore.getByUid( uid ); }
@Override public List<DataElementGroup> getDataElementGroupsByUid( Collection<String> uids ) { return dataElementGroupStore.getByUid( uids ); }
@Override public DataElementGroup getDataElementGroup( String uid ) { return dataElementGroupStore.getByUid( uid ); }
@Override public PushAnalysis getByUid( String uid ) { return pushAnalysisStore.getByUid( uid ); }
@Override public Report getReport( String uid ) { return reportStore.getByUid( uid ); }
public ColorSet getColorSet( String uid ) { return colorSetStore.getByUid( uid ); } }
@Override public ValidationRuleGroup getValidationRuleGroup( String uid ) { return validationRuleGroupStore.getByUid( uid ); }
@Override public IndicatorGroupSet getIndicatorGroupSet( String uid ) { return indicatorGroupSetStore.getByUid( uid ); }
@Override @Transactional public boolean fileResourceExists( String uid ) { return fileResourceStore.getByUid( uid ) != null; }
@Override @Transactional public List<FileResource> getFileResources( List<String> uids ) { return fileResourceStore.getByUid( uids ).stream() .map( this::checkStorageStatus ) .collect( Collectors.toList() ); }
@Override @Transactional public void deleteFileResource( String uid ) { if ( uid == null ) { return; } FileResource fileResource = fileResourceStore.getByUid( uid ); deleteFileResource( fileResource ); }
@Override @SuppressWarnings( "unchecked" ) public <T extends IdentifiableObject> List<T> getByUid( Class<T> clazz, Collection<String> uids ) { IdentifiableObjectStore<IdentifiableObject> store = getIdentifiableObjectStore( clazz ); if ( store == null ) { return new ArrayList<>(); } return (List<T>) store.getByUid( uids ); }
@Override public IdentifiableObject getObject( String uid, String simpleClassName ) { for ( IdentifiableObjectStore<? extends IdentifiableObject> objectStore : identifiableObjectStores ) { if ( simpleClassName.equals( objectStore.getClazz().getSimpleName() ) ) { return objectStore.getByUid( uid ); } } return null; }
@Override public void deleteJobConfiguration( JobConfiguration jobConfiguration ) { if ( !jobConfiguration.isInMemoryJob() ) { jobConfigurationStore.delete( jobConfigurationStore.getByUid( jobConfiguration.getUid() ) ); } }