@Role
@Unstable
public interface TargetableNotificationPreferenceBuilder
TargetableNotificationPreference
.Modifier and Type | Method and Description |
---|---|
TargetableNotificationPreference |
build() |
void |
prepare()
Prepare the builder for a new instance.
|
void |
setCategory(NotificationPreferenceCategory category) |
void |
setEnabled(boolean isEnabled)
Define if the notification preference is enabled or not.
|
void |
setFormat(NotificationFormat format) |
void |
setProperties(Map<NotificationPreferenceProperty,Object> properties) |
void |
setProviderHint(String providerHint) |
void |
setStartDate(Date startDate) |
void |
setTarget(org.xwiki.model.reference.DocumentReference target) |
TargetableNotificationPreference build()
TargetableNotificationPreference
void prepare()
void setEnabled(boolean isEnabled)
isEnabled
- true if the preference should be enabledvoid setFormat(NotificationFormat format)
format
- the format of the preferencevoid setProperties(Map<NotificationPreferenceProperty,Object> properties)
properties
- a map of the preference propertiesvoid setProviderHint(String providerHint)
providerHint
- the hint of the provider of the preferencevoid setStartDate(Date startDate)
startDate
- the start date of the preferencevoid setTarget(org.xwiki.model.reference.DocumentReference target)
target
- the target of the preferencevoid setCategory(NotificationPreferenceCategory category)
category
- the category of the preferenceCopyright © 2004–2017 XWiki. All rights reserved.