Class Notification
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
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
Nested ClassesModifier and TypeClassDescriptionstatic enumA single enum value representing the combination of notification type, page, space and network settings. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()getSpace()getType()Returns a single enum value representing the combination of notification type, page, space and network settings.booleanbooleanisDigest()booleanDeprecated.since 5.3.booleanbooleanbooleanbooleanbooleanReturns true if this notification matches the type of the passed content object.voidsetContent(ContentEntityObject content) voidsetDigest(boolean digest) voidvoidsetNetwork(boolean network) voidsetReceiver(ConfluenceUser receiver) voidvoidsetType(ContentTypeEnum type) toString()Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setLastModifierMethods inherited from class com.atlassian.confluence.core.AnnotatedEntityObject
getCreationDate, getLastModificationDateMethods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCurrentDate, getId, 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
-