Class PubSubContentProvider
java.lang.Object
com.webmethods.caf.faces.data.pubsub.SubscriptionContentProvider
com.webmethods.caf.faces.data.pubsub.PubSubContentProvider
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TaskNotificationContentProvider
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected String
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionName of view file which is used to render notification body.Notification subject to use when publishing new notification.Get the principal Id which to subscribe or unsubscribe.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 notificationvoid
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
-
Field Details
-
m_notificationSubject
-
m_notificationBodyView
-
m_sourceID
-
m_principalID
-
m_principalType
-
-
Constructor Details
-
PubSubContentProvider
public PubSubContentProvider()
-
-
Method Details
-
getPrincipalID
Get the principal Id which to subscribe or unsubscribe.
Used by methodsSubscriptionContentProvider.subscribe()
,SubscriptionContentProvider.unsubscribe()
,SubscriptionContentProvider.isSubscribed()
, andSubscriptionContentProvider.getSubscriptionObjectID()
- Specified by:
getPrincipalID
in classSubscriptionContentProvider
- Returns:
- A principal Id.
-
getPrincipalType
Get the principal type for the current principal Id.
Used by methodsSubscriptionContentProvider.subscribe()
,SubscriptionContentProvider.unsubscribe()
,SubscriptionContentProvider.isSubscribed()
, andSubscriptionContentProvider.getSubscriptionObjectID()
Principal type can beSubscriptionContentProvider.PRINCIPAL_TYPE_USER
,SubscriptionContentProvider.PRINCIPAL_TYPE_ROLE
, orSubscriptionContentProvider.PRINCIPAL_TYPE_GROUP
.- Specified by:
getPrincipalType
in classSubscriptionContentProvider
- Returns:
- The principal type for the current principal Id.
-
setPrincipalType
Set the principal type for the current principal Id.
Used by methodsSubscriptionContentProvider.subscribe()
,SubscriptionContentProvider.unsubscribe()
,SubscriptionContentProvider.isSubscribed()
, andSubscriptionContentProvider.getSubscriptionObjectID()
Principal type can beSubscriptionContentProvider.PRINCIPAL_TYPE_USER
,SubscriptionContentProvider.PRINCIPAL_TYPE_ROLE
, orSubscriptionContentProvider.PRINCIPAL_TYPE_GROUP
.- Parameters:
principalType
- The principal type for the current principal Id.
-
setPrincipalID
Get the principal Id which to subscribe or unsubscribe.- Parameters:
userID
- A principal Id. May not be null.
-
getNotificationSubject
Notification subject to use when publishing new notification.- Returns:
- The notification subject.
-
setNotificationSubject
Notification subject to use when publishing new notification- Parameters:
subject
- The notification subject.
-
getNotificationBodyView
Name of view file which is used to render notification body.- Returns:
- The view file. IE. /default.view
-
setNotificationBodyView
Name of view file which is used to render notification body.- Parameters:
bodyView
- The view file. IE. /default.view
-
publish
Publish new notification for source object. Every user subscribed to this source will be notified via email.- Throws:
ContentProviderException
-