Class Notification
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.mail.notification.Notification
- All Implemented Interfaces:
Serializable
,Cloneable
A "Notification" is an email subscription or "watch" on some space.
If page and space are set, it's a page notification If just space is set, it's a space notification If neither are set, it's a daily email subscription (Yeah, slightly dodgy, but it works)
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
A single enum value representing the combination of notification type, page, space and network settings. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
getSpace()
getType()
Returns a single enum value representing the combination of notification type, page, space and network settings.boolean
boolean
isDigest()
boolean
Deprecated.since 5.3.boolean
boolean
boolean
boolean
boolean
Returns true if this notification matches the type of the passed content object.void
setContent
(ContentEntityObject content) void
setDigest
(boolean digest) void
void
setNetwork
(boolean network) void
setReceiver
(ConfluenceUser receiver) void
void
setType
(ContentTypeEnum type) toString()
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
-
Constructor Details
-
Notification
public Notification()
-
-
Method Details
-
getReceiver
- Since:
- 5.2
-
setReceiver
- Since:
- 5.2
-
getSpace
-
setSpace
-
isUserChange
public boolean isUserChange() -
isPageNotification
public boolean isPageNotification() -
isContentNotification
public boolean isContentNotification() -
isSpaceNotification
public boolean isSpaceNotification() -
isDigest
public boolean isDigest() -
setDigest
public void setDigest(boolean digest) -
getType
-
setType
-
isNetworkNotification
public boolean isNetworkNotification() -
isNetwork
Deprecated.since 5.3. UseisNetworkNotification()
instead. -
setNetwork
public void setNetwork(boolean network) -
matchesContentType
Returns true if this notification matches the type of the passed content object. -
getWatchType
Returns a single enum value representing the combination of notification type, page, space and network settings. -
getContent
-
setContent
-
getLabel
-
setLabel
-
toString
-