-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add notification for users with disabled SCC data forwarding
- Loading branch information
1 parent
0eaada1
commit 44b2b20
Showing
9 changed files
with
100 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
java/code/src/com/redhat/rhn/domain/notification/types/SCCOptOutWarning.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2024 SUSE LLC | ||
* | ||
* This software is licensed to you under the GNU General Public License, | ||
* version 2 (GPLv2). There is NO WARRANTY for this software, express or | ||
* implied, including the implied warranties of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 | ||
* along with this software; if not, see | ||
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. | ||
* | ||
* Red Hat trademarks are not licensed under GPLv2. No permission is | ||
* granted to use or replicate Red Hat trademarks that are incorporated | ||
* in this software or its documentation. | ||
*/ | ||
package com.redhat.rhn.domain.notification.types; | ||
|
||
import com.redhat.rhn.common.localization.LocalizationService; | ||
import com.redhat.rhn.domain.notification.NotificationMessage; | ||
|
||
public class SCCOptOutWarning implements NotificationData { | ||
|
||
private static final LocalizationService LOCALIZATION_SERVICE = LocalizationService.getInstance(); | ||
|
||
@Override | ||
public NotificationMessage.NotificationMessageSeverity getSeverity() { | ||
return NotificationMessage.NotificationMessageSeverity.WARNING; | ||
} | ||
|
||
@Override | ||
public NotificationType getType() { | ||
return NotificationType.SCCOptOutWarning; | ||
} | ||
|
||
@Override | ||
public String getSummary() { | ||
return LOCALIZATION_SERVICE.getMessage("notification.sccoptoutwarning.summary"); | ||
} | ||
|
||
@Override | ||
public String getDetails() { | ||
return LOCALIZATION_SERVICE.getMessage("notification.sccoptoutwarning.detail"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add notification for users with disabled SCC data forwarding (jsc#SUMA-431) | ||
Check failure on line 1 in java/spacewalk-java.changes.welder.scc-data-forwarding-warning GitHub Actions / Changelog tests
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
- Add notification for users with disabled SCC data forwarding (jsc#SUMA-431) | ||
Check failure on line 1 in web/spacewalk-web.changes.welder.scc-data-forwarding-warning GitHub Actions / Changelog tests
|