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 StringgetDisplayName()StringgetPluginName()StringgetPluginType()Map<String,UserProperty>getProperties()PropertyKeygetPropertyKey(String propertyName)List<UserProperty>getPropertyList()StringgetRulesDescription()protected static StringgetRulesDescription(boolean self, List<NotificationRule> rules, List<NotificationRule> allRules)booleanhasNotEmptyPropertyValue()booleanisRulesConfigured()booleanisStateModified()Returns true if state of the fields marked withStateFieldannotation has changed.voidsetNotificationRules(boolean self, List<NotificationRule> rules, List<NotificationRule> allRules)voidvalidate(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:
getDisplayNamein interfacePluginSection<SUser,UserForm,UserProperty>
-
getPluginName
public String getPluginName()
- Specified by:
getPluginNamein interfacePluginSection<SUser,UserForm,UserProperty>
-
getPluginType
public String getPluginType()
- Specified by:
getPluginTypein interfacePluginSection<SUser,UserForm,UserProperty>
-
getProperties
public Map<String,UserProperty> getProperties()
- Specified by:
getPropertiesin interfacePluginSection<SUser,UserForm,UserProperty>
-
getPropertyList
public List<UserProperty> getPropertyList()
- Specified by:
getPropertyListin interfacePluginSection<SUser,UserForm,UserProperty>
-
getPropertyKey
public PropertyKey getPropertyKey(String propertyName)
- Specified by:
getPropertyKeyin interfacePluginSection<SUser,UserForm,UserProperty>
-
isStateModified
public boolean isStateModified()
Description copied from class:RememberStateReturns true if state of the fields marked withStateFieldannotation has changed.- Specified by:
isStateModifiedin interfacePluginSection<SUser,UserForm,UserProperty>- Specified by:
isStateModifiedin interfaceStatefulObject- Overrides:
isStateModifiedin classRememberState- Returns:
- true if state has changed
-
hasNotEmptyPropertyValue
public boolean hasNotEmptyPropertyValue()
- Specified by:
hasNotEmptyPropertyValuein 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:
validatein interfacePluginSection<SUser,UserForm,UserProperty>
-
-