|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.mail.notification.Notification
public class Notification
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)
Nested Class Summary | |
---|---|
static class |
Notification.WatchType
A single enum value representing the combination of notification type, page, space and network settings. |
Constructor Summary | |
---|---|
Notification()
|
Method Summary | |
---|---|
AbstractPage |
getPage()
|
ConfluenceUser |
getReceiver()
|
Space |
getSpace()
|
ContentTypeEnum |
getType()
|
String |
getUserName()
Deprecated. since 5.2. User setReceiver(com.atlassian.confluence.user.ConfluenceUser) instead. |
Notification.WatchType |
getWatchType()
Returns a single enum value representing the combination of notification type, page, space and network settings. |
boolean |
isDigest()
|
boolean |
isNetwork()
|
boolean |
isPageNotification()
|
boolean |
isSpaceNotification()
|
boolean |
isUserChange()
|
boolean |
matchesContentType(AbstractPage page)
Returns true if this notification matches the type of the passed content object. |
void |
setDigest(boolean digest)
|
void |
setNetwork(boolean network)
|
void |
setPage(AbstractPage page)
|
void |
setReceiver(ConfluenceUser receiver)
|
void |
setSpace(Space space)
|
void |
setType(ContentTypeEnum type)
|
void |
setUserName(String userName)
Deprecated. since 5.2. See setReceiver(ConfluenceUser) . |
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Notification()
Method Detail |
---|
public AbstractPage getPage()
public void setPage(AbstractPage page)
@Deprecated public String getUserName()
setReceiver(com.atlassian.confluence.user.ConfluenceUser)
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 isSpaceNotification()
public boolean isDigest()
public void setDigest(boolean digest)
public ContentTypeEnum getType()
public void setType(ContentTypeEnum type)
public boolean isNetwork()
public void setNetwork(boolean network)
public boolean matchesContentType(AbstractPage page)
public Notification.WatchType getWatchType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |