stable
Clone or download
Read-only
Take the same approach than project banner. Site admin can issue REST call to the /banner route in order to PUT/GET or DELETE a platform banner. A platform banner is defined by a message plus an importance (standard, warning, critical). The banner will be displayed in a dedicated commit. Part of story #14670: display a site wide banner (motd) Change-Id: I36645615dcff2a76708747d82ad4bf4d3550c372
Modified Files
Name | ||||
---|---|---|---|---|
A | src/common/Platform/Banner/Banner.php | +66 | −0 | Go to diff View file |
A | src/common/Platform/Banner/BannerCreator.php | +47 | −0 | Go to diff View file |
A | src/common/Platform/Banner/BannerDao.php | +92 | −0 | Go to diff View file |
A | src/common/Platform/Banner/BannerRemover.php | +41 | −0 | Go to diff View file |
A | src/common/Platform/Banner/BannerRetriever.php | +47 | −0 | Go to diff View file |
A | src/common/Platform/Banner/REST/v1/BannerRepresentation.php | +48 | −0 | Go to diff View file |
A | src/common/Platform/Banner/REST/v1/BannerResource.php | +128 | −0 | Go to diff View file |
M | src/common/REST/ResourcesInjector.class.php | +2 | −0 | Go to diff View file |
M | src/db/mysql/database_structure.sql | +6 | −0 | Go to diff View file |
A | src/db/mysql/updates/2020/202011021100_add_platform_banner_table.php | +43 | −0 | Go to diff View file |
A | tests/rest/tests/PlatformBannerTest.php | +133 | −0 | Go to diff View file |
A | tests/unit/common/Platform/Banner/BannerCreatorTest.php | +43 | −0 | Go to diff View file |
A | tests/unit/common/Platform/Banner/BannerRemoverTest.php | +41 | −0 | Go to diff View file |
A | tests/unit/common/Platform/Banner/BannerRetrieverTest.php | +71 | −0 | Go to diff View file |