org.gcube.portlets.user.notifications.shared
Class NotificationPreference
java.lang.Object
org.gcube.portlets.user.notifications.shared.NotificationPreference
- All Implemented Interfaces:
- Serializable, Comparable<NotificationPreference>
public class NotificationPreference
- extends Object
- implements Serializable, Comparable<NotificationPreference>
- Author:
- Massimiliano Assante, CNR-ISTI
This class represent a notification preference with its type (allowing associating a label and a description)
and the channels selected by the user for this type
- See Also:
- Serialized Form
NotificationPreference
public NotificationPreference()
NotificationPreference
public NotificationPreference(org.gcube.portal.databook.shared.NotificationType type,
String typeLabel,
String typeDesc,
org.gcube.portal.databook.shared.NotificationChannelType[] selectedChannels)
getSelectedChannels
public org.gcube.portal.databook.shared.NotificationChannelType[] getSelectedChannels()
setSelectedChannels
public void setSelectedChannels(org.gcube.portal.databook.shared.NotificationChannelType[] selectedChannels)
getType
public org.gcube.portal.databook.shared.NotificationType getType()
setType
public void setType(org.gcube.portal.databook.shared.NotificationType type)
getTypeLabel
public String getTypeLabel()
setTypeLabel
public void setTypeLabel(String typeLabel)
getTypeDesc
public String getTypeDesc()
setTypeDesc
public void setTypeDesc(String typeDesc)
toString
public String toString()
- Overrides:
toString
in class Object
compareTo
public int compareTo(NotificationPreference o)
- Specified by:
compareTo
in interface Comparable<NotificationPreference>
Copyright © 2014. All Rights Reserved.