Class NotificatorPluginSection
- java.lang.Object
-
- jetbrains.buildServer.controllers.RememberState
-
- jetbrains.buildServer.controllers.profile.NotificatorPluginSection
-
- All Implemented Interfaces:
PluginSection<SUser,UserForm,UserProperty>
,UserPluginSection
,StatefulObject
public class NotificatorPluginSection extends RememberState implements UserPluginSection
- Author:
- Pavel.Sher Date: 04.04.2006
-
-
Constructor Summary
Constructors Constructor Description NotificatorPluginSection(UserPluginSection pluginSection)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
String
getPluginName()
String
getPluginType()
Map<String,UserProperty>
getProperties()
PropertyKey
getPropertyKey(String propertyName)
List<UserProperty>
getPropertyList()
String
getRulesDescription()
protected static String
getRulesDescription(boolean self, List<NotificationRule> rules, List<NotificationRule> allRules)
boolean
hasNotEmptyPropertyValue()
boolean
isRulesConfigured()
boolean
isStateModified()
Returns true if state of the fields marked withStateField
annotation has changed.void
setNotificationRules(boolean self, List<NotificationRule> rules, List<NotificationRule> allRules)
void
validate(SUser editee, UserForm form, ActionErrors errors)
-
Methods inherited from class jetbrains.buildServer.controllers.RememberState
findField, forgetState, getField, getRememberedState, isFieldModified, normalizeLineFeeds, rememberState
-
-
-
-
Constructor Detail
-
NotificatorPluginSection
public NotificatorPluginSection(UserPluginSection pluginSection)
-
-
Method Detail
-
setNotificationRules
public void setNotificationRules(boolean self, List<NotificationRule> rules, List<NotificationRule> allRules)
-
getRulesDescription
@NotNull protected static String getRulesDescription(boolean self, List<NotificationRule> rules, List<NotificationRule> allRules)
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfacePluginSection<SUser,UserForm,UserProperty>
-
getPluginName
public String getPluginName()
- Specified by:
getPluginName
in interfacePluginSection<SUser,UserForm,UserProperty>
-
getPluginType
public String getPluginType()
- Specified by:
getPluginType
in interfacePluginSection<SUser,UserForm,UserProperty>
-
getProperties
public Map<String,UserProperty> getProperties()
- Specified by:
getProperties
in interfacePluginSection<SUser,UserForm,UserProperty>
-
getPropertyList
public List<UserProperty> getPropertyList()
- Specified by:
getPropertyList
in interfacePluginSection<SUser,UserForm,UserProperty>
-
getPropertyKey
public PropertyKey getPropertyKey(String propertyName)
- Specified by:
getPropertyKey
in interfacePluginSection<SUser,UserForm,UserProperty>
-
isStateModified
public boolean isStateModified()
Description copied from class:RememberState
Returns true if state of the fields marked withStateField
annotation has changed.- Specified by:
isStateModified
in interfacePluginSection<SUser,UserForm,UserProperty>
- Specified by:
isStateModified
in interfaceStatefulObject
- Overrides:
isStateModified
in classRememberState
- Returns:
- true if state has changed
-
hasNotEmptyPropertyValue
public boolean hasNotEmptyPropertyValue()
- Specified by:
hasNotEmptyPropertyValue
in interfacePluginSection<SUser,UserForm,UserProperty>
-
getRulesDescription
public String getRulesDescription()
-
isRulesConfigured
public boolean isRulesConfigured()
-
validate
public void validate(@Nullable SUser editee, @NotNull UserForm form, @NotNull ActionErrors errors)
- Specified by:
validate
in interfacePluginSection<SUser,UserForm,UserProperty>
-
-