Newer
Older
<?php
/*
* This file is part of Anis Server.
*
* (c) Laboratoire d'Astrophysique de Marseille / CNRS
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App\Entity;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @author François Agneray <francois.agneray@lam.fr>
* @package App\Entity
*
* @Entity
* @Table(name="instance")
*/
class Instance implements \JsonSerializable
{
/**
*
* @Id
* @Column(type="string", nullable=false)
*/
protected $name;
/**
* @var string
*
* @Column(type="string", nullable=false)
*/
protected $label;
/**
* @var string
*
* @Column(type="text", nullable=true)
*/
protected $description;
/**
* @var string
*
* @Column(type="string", name="scientific_manager", nullable=true)
*/
protected $scientificManager;
/**
* @var string
*
* @Column(type="string", name="instrument", nullable=true)
*/
protected $instrument;
/**
* @var string
*
* @Column(type="string", name="wavelength_domain", nullable=true)
*/
protected $wavelengthDomain;
/**
* @var int
*
* @Column(type="integer", nullable=false)
*/
protected $display;
/**
* @var string
*
* @Column(type="string", name="data_path", nullable=true)
*/
protected $dataPath;
/**
* @var string
*
* @Column(type="string", name="files_path", nullable=true)
*/
protected $filesPath;
/**
* @var bool
*
* @Column(type="boolean", nullable=false)
*/
protected $public;
/**
* @var string
*
* @Column(type="string", name="portal_logo", nullable=true)
*/
protected $portalLogo;
* @Column(type="string", name="design_color", nullable=true)
protected $designColor;
/**
* @var string
*
* @Column(type="string", name="design_background_color", nullable=true)
*/
protected $designBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="design_logo", nullable=true)
*/
protected $designLogo;
/**
* @var string
*
* @Column(type="string", name="design_favicon", nullable=true)
*/
protected $designFavicon;
/**
* @var string
*
* @Column(type="string", name="navbar_background_color", nullable=false, options={"default" : "#F8F9FA"})
*/
protected $navbarBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="navbar_border_bottom_color", nullable=false, options={"default" : "#DEE2E6"})
*/
protected $navbarBorderBottomColor;
/**
* @var string
*
* @Column(type="string", name="navbar_color_href", nullable=false, options={"default" : "#000000"})
*/
protected $navbarColorHref;
/**
* @var string
*
* @Column(type="string", name="navbar_font_family", nullable=false, options={"default" : "Roboto, sans-serif"})
*/
protected $navbarFontFamily;
/**
* @var string
*
* @Column(type="string", name="navbar_sign_in_btn_color", nullable=false, options={"default" : "#28A745"})
*/
protected $navbarSignInBtnColor;
/**
* @var string
*
* @Column(type="string", name="navbar_user_btn_color", nullable=false, options={"default" : "#7AC29A"})
*/
protected $navbarUserBtnColor;
/**
* @var string
*
* @Column(type="string", name="footer_background_color", nullable=false, options={"default" : "#F8F9FA"})
*/
protected $footerBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="footer_border_top_color", nullable=false, options={"default" : "#DEE2E6"})
*/
protected $footerBorderTopColor;
/**
* @var string
*
* @Column(type="string", name="footer_text_color", nullable=false, options={"default" : "#000000"})
*/
protected $footerTextColor;
/**
* @var string
*
* @Column(type="json", name="footer_logos", nullable=true)
*/
protected $footerLogos;
/**
* @var string
*
* @Column(type="string", name="family_border_color", nullable=false, options={"default" : "#DFDFDF"})
*/
protected $familyBorderColor;
/**
* @var string
*
* @Column(type="string", name="family_header_background_color", nullable=false, options={"default" : "#F7F7F7"})
*/
protected $familyHeaderBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="family_title_color", nullable=false, options={"default" : "#007bff"})
*/
protected $familyTitleColor;
/**
* @var bool
*
* @Column(type="boolean", name="family_title_bold", nullable=false, options={"default" : false})
*/
protected $familyTitleBold;
/**
* @var string
*
* @Column(type="string", name="family_background_color", nullable=false, options={"default" : "#FFFFFF"})
*/
protected $familyBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="family_color", nullable=false, options={"default" : "#212529"})
*/
protected $familyColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_title", nullable=false, options={"default" : "Dataset search"})
*/
protected $progressBarTitle;
/**
* @var string
*
* @Column(type="string", name="progress_bar_title_color", nullable=false, options={"default" : "#000000"})
*/
protected $progressBarTitleColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_subtitle", nullable=false, options={
* "default" : "Select a dataset, add criteria, select output columns and display the result."
* })
*/
protected $progressBarSubtitle;
/**
* @var string
*
* @Column(type="string", name="progress_bar_subtitle_color", nullable=false, options={"default" : "#6C757D"})
*/
protected $progressBarSubtitleColor;
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
/**
* @var string
*
* @Column(type="string", name="progress_bar_step_dataset_title", nullable=false, options={
* "default" : "Dataset selection"
* })
*/
protected $progressBarStepDatasetTitle;
/**
* @var string
*
* @Column(type="string", name="progress_bar_step_criteria_title", nullable=false, options={
* "default" : "Search criteria"
* })
*/
protected $progressBarStepCriteriaTitle;
/**
* @var string
*
* @Column(type="string", name="progress_bar_step_output_title", nullable=false, options={
* "default" : "Output columns"
* })
*/
protected $progressBarStepOutputTitle;
/**
* @var string
*
* @Column(type="string", name="progress_bar_step_result_title", nullable=false, options={
* "default" : "Result table"
* })
*/
protected $progressBarStepResultTitle;
/**
* @var string
*
* @Column(type="string", name="progress_bar_color", nullable=false, options={"default" : "#E9ECEF"})
*/
protected $progressBarColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_active_color", nullable=false, options={"default" : "#7AC29A"})
*/
protected $progressBarActiveColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_circle_color", nullable=false, options={"default" : "#FFFFFF"})
*/
protected $progressBarCircleColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_circle_icon_color", nullable=false, options={"default" : "#CCCCCC"})
*/
protected $progressBarCircleIconColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_circle_icon_active_color", nullable=false, options={
* "default" : "#FFFFFF"
* })
*/
protected $progressBarCircleIconActiveColor;
/**
* @var string
*
* @Column(type="string", name="progress_bar_text_color", nullable=false, options={"default" : "#91B2BF"})
*/
protected $progressBarTextColor;
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
/**
* @var string
*
* @Column(type="string", name="result_header_background_color", nullable=false, options={"default" : "#E9ECEF"})
*/
protected $resultHeaderBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="result_header_text_color", nullable=false, options={"default" : "#000000"})
*/
protected $resultHeaderTextColor;
/**
* @var string
*
* @Column(type="string", name="result_header_btn_color", nullable=false, options={"default" : "#007BFF"})
*/
protected $resultHeaderBtnColor;
/**
* @var string
*
* @Column(type="string", name="result_header_btn_hover_color", nullable=false, options={"default" : "#0069D9"})
*/
protected $resultHeaderBtnHoverColor;
/**
* @var string
*
* @Column(type="string", name="result_header_btn_text_color", nullable=false, options={"default" : "#FFFFFF"})
*/
protected $resultHeaderBtnTextColor;
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
/**
* @var bool
*
* @Column(type="boolean", name="result_datatable_bordered", nullable=false, options={"default" : true})
*/
protected $resultDatatableBordered;
/**
* @var string
*
* @Column(type="string", name="result_datatable_border_color", nullable=false, options={
* "default" : "#DEE2E6"
* })
*/
protected $resultDatatableBorderColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_header_background_color", nullable=false, options={
* "default" : "#FFFFFF"
* })
*/
protected $resultDatatableHeaderBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_header_text_color", nullable=false, options={
* "default" : "#000000"
* })
*/
protected $resultDatatableHeaderTextColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_rows_background_color", nullable=false, options={
* "default" : "#FFFFFF"
* })
*/
protected $resultDatatableRowsBackgroundColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_rows_text_color", nullable=false, options={"default" : "#000000"})
*/
protected $resultDatatableRowsTextColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_sorted_color", nullable=false, options={"default" : "#C5C5C5"})
*/
protected $resultDatatableSortedColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_sorted_active_color", nullable=false, options={
* "default" : "#000000"
* })
*/
protected $resultDatatableSortedActiveColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_link_color", nullable=false, options={"default" : "#007BFF"})
*/
protected $resultDatatableLinkColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_link_hover_color", nullable=false, options={
* "default" : "#0056B3"
* })
*/
protected $resultDatatableLinkHoverColor;
/**
* @var string
*
* @Column(type="string", name="result_datatable_rows_selected_color", nullable=false, options={
* "default" : "#7AC29A"
* })
*/
protected $resultDatatableRowsSelectedColor;
/**
* @var bool
*
* @Column(type="boolean", name="samp_enabled", nullable=false)
*/
protected $sampEnabled;
/**
* @var bool
*
* @Column(type="boolean", name="back_to_portal", nullable=false)
*/
protected $backToPortal;
/**
* @var bool
*
* @Column(type="boolean", name="user_menu_enabled", nullable=false, options={"default" : true})
*/
protected $userMenuEnabled;
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
/**
* @var bool
*
* @Column(type="boolean", name="search_by_criteria_allowed", nullable=false)
*/
protected $searchByCriteriaAllowed;
/**
* @var string
*
* @Column(type="string", name="search_by_criteria_label", nullable=false)
*/
protected $searchByCriteriaLabel;
/**
* @var bool
*
* @Column(type="boolean", name="search_multiple_allowed", nullable=false)
*/
protected $searchMultipleAllowed;
/**
* @var string
*
* @Column(type="string", name="search_multiple_label", nullable=false)
*/
protected $searchMultipleLabel;
/**
* @var bool
*
* @Column(type="boolean", name="search_multiple_all_datasets_selected", nullable=false)
*/
protected $searchMultipleAllDatasetsSelected;
/**
* @var bool
*
* @Column(type="boolean", name="documentation_allowed", nullable=false)
*/
protected $documentationAllowed;
/**
* @var string
*
* @Column(type="string", name="documentation_label", nullable=false)
*/
protected $documentationLabel;
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
/**
* @var DatasetFamily[]
*
* @OneToMany(targetEntity="DatasetFamily", mappedBy="instance")
*/
protected $datasetFamilies;
public function __construct(string $name, string $label)
{
$this->name = $name;
$this->label = $label;
$this->datasetFamilies = new ArrayCollection();
}
public function getName()
{
return $this->name;
}
public function getLabel()
{
return $this->label;
}
public function setLabel(string $label)
{
$this->label = $label;
}
public function getDescription()
{
return $this->description;
}
public function setDescription($description)
{
$this->description = $description;
}
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
public function getScientificManager()
{
return $this->scientificManager;
}
public function setScientificManager($scientificManager)
{
$this->scientificManager = $scientificManager;
}
public function getInstrument()
{
return $this->instrument;
}
public function setInstrument($instrument)
{
$this->instrument = $instrument;
}
public function getWavelengthDomain()
{
return $this->wavelengthDomain;
}
public function setWavelengthDomain($wavelengthDomain)
{
$this->wavelengthDomain = $wavelengthDomain;
}
public function getDisplay()
{
return $this->display;
}
public function setDisplay($display)
{
$this->display = $display;
}
public function getDataPath()
{
return $this->dataPath;
}
public function setDataPath($dataPath)
{
$this->dataPath = $dataPath;
}
public function getFilesPath()
{
return $this->filesPath;
}
public function setFilesPath($filesPath)
{
$this->filesPath = $filesPath;
}
public function getPublic()
{
return $this->public;
}
public function setPublic($public)
{
$this->public = $public;
}
public function getPortalLogo()
{
return $this->portalLogo;
}
public function setPortalLogo($portalLogo)
{
$this->portalLogo = $portalLogo;
}
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
public function getDesignColor()
{
return $this->designColor;
}
public function setDesignColor($designColor)
{
$this->designColor = $designColor;
}
public function getDesignBackgroundColor()
{
return $this->designBackgroundColor;
}
public function setDesignBackgroundColor($designBackgroundColor)
{
$this->designBackgroundColor = $designBackgroundColor;
}
public function getDesignLogo()
{
return $this->designLogo;
}
public function setDesignLogo($designLogo)
{
$this->designLogo = $designLogo;
}
public function getDesignFavicon()
{
return $this->designFavicon;
}
public function setDesignFavicon($designFavicon)
{
$this->designFavicon = $designFavicon;
}
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
public function getNavbarBackgroundColor()
{
return $this->navbarBackgroundColor;
}
public function setNavbarBackgroundColor($navbarBackgroundColor)
{
$this->navbarBackgroundColor = $navbarBackgroundColor;
}
public function getNavbarBorderBottomColor()
{
return $this->navbarBorderBottomColor;
}
public function setNavbarBorderBottomColor($navbarBorderBottomColor)
{
$this->navbarBorderBottomColor = $navbarBorderBottomColor;
}
public function getNavbarColorHref()
{
return $this->navbarColorHref;
}
public function setNavbarColorHref($navbarColorHref)
{
$this->navbarColorHref = $navbarColorHref;
}
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
public function getNavbarFontFamily()
{
return $this->navbarFontFamily;
}
public function setNavbarFontFamily($navbarFontFamily)
{
$this->navbarFontFamily = $navbarFontFamily;
}
public function getNavbarSignInBtnColor()
{
return $this->navbarSignInBtnColor;
}
public function setNavbarSignInBtnColor($navbarSignInBtnColor)
{
$this->navbarSignInBtnColor = $navbarSignInBtnColor;
}
public function getNavbarUserBtnColor()
{
return $this->navbarUserBtnColor;
}
public function setNavbarUserBtnColor($navbarUserBtnColor)
{
$this->navbarUserBtnColor = $navbarUserBtnColor;
}
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
public function getFooterBackgroundColor()
{
return $this->footerBackgroundColor;
}
public function setFooterBackgroundColor($footerBackgroundColor)
{
$this->footerBackgroundColor = $footerBackgroundColor;
}
public function getFooterBorderTopColor()
{
return $this->footerBorderTopColor;
}
public function setFooterBorderTopColor($footerBorderTopColor)
{
$this->footerBorderTopColor = $footerBorderTopColor;
}
public function getFooterTextColor()
{
return $this->footerTextColor;
}
public function setFooterTextColor($footerTextColor)
{
$this->footerTextColor = $footerTextColor;
}
public function getFooterLogos()
{
return $this->footerLogos;
}
public function setFooterLogos($footerLogos)
{
$this->footerLogos = $footerLogos;
}
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
public function getFamilyBorderColor()
{
return $this->familyBorderColor;
}
public function setFamilyBorderColor($familyBorderColor)
{
$this->familyBorderColor = $familyBorderColor;
}
public function getFamilyHeaderBackgroundColor()
{
return $this->familyHeaderBackgroundColor;
}
public function setFamilyHeaderBackgroundColor($familyHeaderBackgroundColor)
{
$this->familyHeaderBackgroundColor = $familyHeaderBackgroundColor;
}
public function getFamilyTitleColor()
{
return $this->familyTitleColor;
}
public function setFamilyTitleColor($familyTitleColor)
{
$this->familyTitleColor = $familyTitleColor;
}
public function getFamilyTitleBold()
{
return $this->familyTitleBold;
}
public function setFamilyTitleBold($familyTitleBold)
{
$this->familyTitleBold = $familyTitleBold;
}
public function getFamilyBackgroundColor()
{
return $this->familyBackgroundColor;
}
public function setFamilyBackgroundColor($familyBackgroundColor)
{
$this->familyBackgroundColor = $familyBackgroundColor;
}
public function getFamilyColor()
{
return $this->familyColor;
}
public function setFamilyColor($familyColor)
{
$this->familyColor = $familyColor;
}
public function getProgressBarTitle()
{
return $this->progressBarTitle;
}
public function setProgressBarTitle($progressBarTitle)
{
$this->progressBarTitle = $progressBarTitle;
}
public function getProgressBarTitleColor()
{
return $this->progressBarTitleColor;
}
public function setProgressBarTitleColor($progressBarTitleColor)
{
$this->progressBarTitleColor = $progressBarTitleColor;
}
public function getProgressBarSubtitle()
{
return $this->progressBarSubtitle;
}
public function setProgressBarSubtitle($progressBarSubtitle)
{
$this->progressBarSubtitle = $progressBarSubtitle;
}
public function getProgressBarSubtitleColor()
{
return $this->progressBarSubtitleColor;
}
public function setProgressBarSubtitleColor($progressBarSubtitleColor)
{
$this->progressBarSubtitleColor = $progressBarSubtitleColor;
}
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
public function getProgressBarStepDatasetTitle()
{
return $this->progressBarStepDatasetTitle;
}
public function setProgressBarStepDatasetTitle($progressBarStepDatasetTitle)
{
$this->progressBarStepDatasetTitle = $progressBarStepDatasetTitle;
}
public function getProgressBarStepCriteriaTitle()
{
return $this->progressBarStepCriteriaTitle;
}
public function setProgressBarStepCriteriaTitle($progressBarStepCriteriaTitle)
{
$this->progressBarStepCriteriaTitle = $progressBarStepCriteriaTitle;
}
public function getProgressBarStepOutputTitle()
{
return $this->progressBarStepOutputTitle;
}
public function setProgressBarStepOutputTitle($progressBarStepOutputTitle)
{
$this->progressBarStepOutputTitle = $progressBarStepOutputTitle;
}
public function getProgressBarStepResultTitle()
{
return $this->progressBarStepResultTitle;
}
public function setProgressBarStepResultTitle($progressBarStepResultTitle)
{
$this->progressBarStepResultTitle = $progressBarStepResultTitle;
}
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
public function getProgressBarColor()
{
return $this->progressBarColor;
}
public function setProgressBarColor($progressBarColor)
{
$this->progressBarColor = $progressBarColor;
}
public function getProgressBarActiveColor()
{
return $this->progressBarActiveColor;
}
public function setProgressBarActiveColor($progressBarActiveColor)
{
$this->progressBarActiveColor = $progressBarActiveColor;
}
public function getProgressBarCircleColor()
{
return $this->progressBarCircleColor;
}
public function setProgressBarCircleColor($progressBarCircleColor)
{
$this->progressBarCircleColor = $progressBarCircleColor;
}
public function getProgressBarCircleIconColor()
{
return $this->progressBarCircleIconColor;
}
public function setProgressBarCircleIconColor($progressBarCircleIconColor)
{
$this->progressBarCircleIconColor = $progressBarCircleIconColor;
}
public function getProgressBarCircleIconActiveColor()
{
return $this->progressBarCircleIconActiveColor;
}
public function setProgressBarCircleIconActiveColor($progressBarCircleIconActiveColor)
{
$this->progressBarCircleIconActiveColor = $progressBarCircleIconActiveColor;
}
public function getProgressBarTextColor()
{