public class Notification extends ConfluenceEntityObject
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)
Modifier and Type | Class and Description |
---|---|
static class |
Notification.WatchType
A single enum value representing the combination of notification type, page, space and network settings.
|
Constructor and Description |
---|
Notification() |
Modifier and Type | Method and Description |
---|---|
ContentEntityObject |
getContent() |
Label |
getLabel() |
AbstractPage |
getPage()
Deprecated.
since 5.3. Use
getContent() instead (and make no assumptions about what type of content is associated here) |
ConfluenceUser |
getReceiver() |
Space |
getSpace() |
ContentTypeEnum |
getType() |
String |
getUserName()
Deprecated.
since 5.2. User
getReceiver() instead. |
Notification.WatchType |
getWatchType()
Returns a single enum value representing the combination of notification type, page, space and network settings.
|
boolean |
isContentNotification() |
boolean |
isDigest() |
boolean |
isNetwork()
Deprecated.
since 5.3. Use
isNetworkNotification() instead. |
boolean |
isNetworkNotification() |
boolean |
isPageNotification() |
boolean |
isSpaceNotification() |
boolean |
isUserChange() |
boolean |
matchesContentType(AbstractPage page)
Returns true if this notification matches the type of the passed content object.
|
void |
setContent(ContentEntityObject content) |
void |
setDigest(boolean digest) |
void |
setLabel(Label label) |
void |
setNetwork(boolean network) |
void |
setPage(AbstractPage page)
Deprecated.
since 5.3. Use
@setContent instead. |
void |
setReceiver(ConfluenceUser receiver) |
void |
setSpace(Space space) |
void |
setType(ContentTypeEnum type) |
void |
setUserName(String userName)
Deprecated.
since 5.2. See
setReceiver(ConfluenceUser) . |
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
public AbstractPage getPage()
getContent()
instead (and make no assumptions about what type of content is associated here)public void setPage(AbstractPage page)
@setContent
instead.@Deprecated public String getUserName()
getReceiver()
instead.@Deprecated public void setUserName(String userName)
setReceiver(ConfluenceUser)
.userName
- public ConfluenceUser getReceiver()
public void setReceiver(ConfluenceUser receiver)
public Space getSpace()
public void setSpace(Space space)
public boolean isUserChange()
public boolean isPageNotification()
public boolean isContentNotification()
public boolean isSpaceNotification()
public boolean isDigest()
public void setDigest(boolean digest)
public ContentTypeEnum getType()
public void setType(ContentTypeEnum type)
public boolean isNetworkNotification()
@Deprecated public boolean isNetwork()
isNetworkNotification()
instead.public void setNetwork(boolean network)
public boolean matchesContentType(AbstractPage page)
public Notification.WatchType getWatchType()
public ContentEntityObject getContent()
public void setContent(ContentEntityObject content)
public Label getLabel()
public void setLabel(Label label)
Copyright © 2003–2016 Atlassian. All rights reserved.