|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider
com.webmethods.caf.faces.data.pubsub.PubSubContentProvider
public class PubSubContentProvider
Field Summary | |
---|---|
protected String |
m_notificationBodyView
|
protected String |
m_notificationSubject
|
protected String |
m_principalID
|
protected String |
m_principalType
|
protected String |
m_sourceID
|
Fields inherited from class com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider |
---|
m_subscriptionID, m_subscriptionName, PRINCIPAL_TYPE_GROUP, PRINCIPAL_TYPE_ROLE, PRINCIPAL_TYPE_USER |
Constructor Summary | |
---|---|
PubSubContentProvider()
|
Method Summary | |
---|---|
String |
getNotificationBodyView()
Name of view file which is used to render notification body. |
String |
getNotificationSubject()
Notification subject to use when publishing new notification. |
String |
getPrincipalID()
Get the principal Id which to subscribe or unsubscribe. |
String |
getPrincipalType()
Get the principal type for the current principal Id. |
void |
publish()
Publish new notification for source object. |
void |
setNotificationBodyView(String bodyView)
Name of view file which is used to render notification body. |
void |
setNotificationSubject(String subject)
Notification subject to use when publishing new notification |
void |
setPrincipalID(String userID)
Get the principal Id which to subscribe or unsubscribe. |
void |
setPrincipalType(String principalType)
Set the principal type for the current principal Id. |
Methods inherited from class com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider |
---|
getSubscribers, getSubscriptionID, getSubscriptionName, getSubscriptionObjectID, isSubscribed, setSubscriptionID, setSubscriptionName, subscribe, unsubscribe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String m_notificationSubject
protected String m_notificationBodyView
protected String m_sourceID
protected String m_principalID
protected String m_principalType
Constructor Detail |
---|
public PubSubContentProvider()
Method Detail |
---|
public String getPrincipalID()
SubscriptionContentProvider.subscribe()
, SubscriptionContentProvider.unsubscribe()
, SubscriptionContentProvider.isSubscribed()
, and SubscriptionContentProvider.getSubscriptionObjectID()
getPrincipalID
in class SubscriptionContentProvider
public String getPrincipalType()
SubscriptionContentProvider.subscribe()
, SubscriptionContentProvider.unsubscribe()
, SubscriptionContentProvider.isSubscribed()
, and SubscriptionContentProvider.getSubscriptionObjectID()
SubscriptionContentProvider.PRINCIPAL_TYPE_USER
,
SubscriptionContentProvider.PRINCIPAL_TYPE_ROLE
, or SubscriptionContentProvider.PRINCIPAL_TYPE_GROUP
.
getPrincipalType
in class SubscriptionContentProvider
public void setPrincipalType(String principalType)
SubscriptionContentProvider.subscribe()
, SubscriptionContentProvider.unsubscribe()
, SubscriptionContentProvider.isSubscribed()
, and SubscriptionContentProvider.getSubscriptionObjectID()
SubscriptionContentProvider.PRINCIPAL_TYPE_USER
,
SubscriptionContentProvider.PRINCIPAL_TYPE_ROLE
, or SubscriptionContentProvider.PRINCIPAL_TYPE_GROUP
.
principalType
- The principal type for the current principal Id.public void setPrincipalID(String userID)
userID
- A principal Id. May not be null.public String getNotificationSubject()
public void setNotificationSubject(String subject)
subject
- The notification subject.public String getNotificationBodyView()
public void setNotificationBodyView(String bodyView)
bodyView
- The view file. IE. /default.viewpublic void publish() throws ContentProviderException
ContentProviderException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |