Class NotificationSettingsData
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.messaging.notificationsettings.NotificationSettingsData
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdminNotificationSettingsData,UserNotificationSettingsData
public abstract class NotificationSettingsData extends Bean
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Boolean,NotificationSettingsData>CAN_MANAGEstatic StringCLASS_NAMEstatic BasicProperty<Integer,NotificationSettingsData>CURRENT_SMS_COUNTstatic BasicProperty<Boolean,NotificationSettingsData>EMAIL_ALLOWEDstatic BasicProperty<Integer,NotificationSettingsData>MAX_SMS_PER_MONTHstatic BasicProperty<Role,NotificationSettingsData>ROLEstatic BasicProperty<Boolean,NotificationSettingsData>SMS_ALLOWEDstatic BasicProperty<BasicUserVO,NotificationSettingsData>USER
-
Constructor Summary
Constructors Constructor Description NotificationSettingsData()NotificationSettingsData(Property<T,? super NotificationSettingsData> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Property<?,?>>doGetProperties()IntegergetCurrentSmsCount()IntegergetMaxSmsPerMonth()RolegetRole()BasicUserVOgetUser()booleanisCanManage()booleanisEmailAllowed()booleanisSmsAllowed()voidsetCanManage(boolean canManage)voidsetCurrentSmsCount(Integer currentSmsCount)voidsetEmailAllowed(boolean emailAllowed)voidsetMaxSmsPerMonth(Integer maxSmsPerMonth)voidsetRole(Role role)voidsetSmsAllowed(boolean smsAllowed)voidsetUser(BasicUserVO user)-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, changes, className, clearAttributes, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, set, set, setAttribute, setWithPropagationId
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CAN_MANAGE
public static final BasicProperty<Boolean,NotificationSettingsData> CAN_MANAGE
-
CURRENT_SMS_COUNT
public static final BasicProperty<Integer,NotificationSettingsData> CURRENT_SMS_COUNT
-
EMAIL_ALLOWED
public static final BasicProperty<Boolean,NotificationSettingsData> EMAIL_ALLOWED
-
MAX_SMS_PER_MONTH
public static final BasicProperty<Integer,NotificationSettingsData> MAX_SMS_PER_MONTH
-
ROLE
public static final BasicProperty<Role,NotificationSettingsData> ROLE
-
SMS_ALLOWED
public static final BasicProperty<Boolean,NotificationSettingsData> SMS_ALLOWED
-
USER
public static final BasicProperty<BasicUserVO,NotificationSettingsData> USER
-
-
Constructor Detail
-
NotificationSettingsData
public NotificationSettingsData()
-
NotificationSettingsData
public NotificationSettingsData(Property<T,? super NotificationSettingsData> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classBean
-
isCanManage
public boolean isCanManage()
-
setCanManage
public void setCanManage(boolean canManage)
-
getCurrentSmsCount
public Integer getCurrentSmsCount()
-
setCurrentSmsCount
public void setCurrentSmsCount(Integer currentSmsCount)
-
isEmailAllowed
public boolean isEmailAllowed()
-
setEmailAllowed
public void setEmailAllowed(boolean emailAllowed)
-
getMaxSmsPerMonth
public Integer getMaxSmsPerMonth()
-
setMaxSmsPerMonth
public void setMaxSmsPerMonth(Integer maxSmsPerMonth)
-
getRole
public Role getRole()
-
setRole
public void setRole(Role role)
-
isSmsAllowed
public boolean isSmsAllowed()
-
setSmsAllowed
public void setSmsAllowed(boolean smsAllowed)
-
getUser
public BasicUserVO getUser()
-
setUser
public void setUser(BasicUserVO user)
-
-