Class BroadcastChannelHelper
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.pagesubscription.BroadcastChannelHelper
- All Implemented Interfaces:
LogEnabled
,Component
,Serviceable
Helper for broadcast channel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The broadcast channel of the subscription -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static CurrentUserProvider
The current user providerprotected static UserManager
The user manager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic I18nizableText
getLabel
(BroadcastChannelHelper.BroadcastChannel broadcastChannel) Get the label of the broadcast channelstatic I18nizableText
getSmartLabel
(BroadcastChannelHelper.BroadcastChannel broadcastChannel) Get the smart label of the broadcast channelvoid
service
(ServiceManager manager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_currentUserProvider
The current user provider -
_userManager
The user manager
-
-
Constructor Details
-
BroadcastChannelHelper
public BroadcastChannelHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getLabel
Get the label of the broadcast channel- Parameters:
broadcastChannel
- the broadcast channel- Returns:
- the broadcast channel label
-
getSmartLabel
public static I18nizableText getSmartLabel(BroadcastChannelHelper.BroadcastChannel broadcastChannel) Get the smart label of the broadcast channel- Parameters:
broadcastChannel
- the broadcast channel- Returns:
- the broadcast channel smart label
-