com.atlassian.confluence.mail.notification
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
public class Notification
- extends ConfluenceEntityObject
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:
- Serialized Form
Nested Class Summary |
static class |
Notification.WatchType
A single enum value representing the combination of notification type, page, space and network settings. |
Methods inherited from class com.atlassian.core.bean.EntityObject |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate |
Notification
public Notification()
getPage
public AbstractPage getPage()
setPage
public void setPage(AbstractPage page)
getUserName
public String getUserName()
setUserName
public void setUserName(String userName)
getSpace
public Space getSpace()
setSpace
public void setSpace(Space space)
isUserChange
public boolean isUserChange()
isDigest
public boolean isDigest()
setDigest
public void setDigest(boolean digest)
getType
public ContentTypeEnum getType()
setType
public void setType(ContentTypeEnum type)
isNetwork
public boolean isNetwork()
setNetwork
public void setNetwork(boolean network)
matchesContentType
public boolean matchesContentType(AbstractPage page)
- Returns true if this notification matches the type of the passed content object.
getWatchType
public Notification.WatchType getWatchType()
- Returns a single enum value representing the combination of notification type, page, space and network settings.
Copyright © 2003-2012 Atlassian. All Rights Reserved.