com.bea.netuix.servlets.manager.communities.invitations.notification
Class NotificationInviter

java.lang.Object
  extended by com.bea.netuix.servlets.manager.communities.invitations.notification.NotificationInviter
All Implemented Interfaces
CommunityInviter, Serializable

public class NotificationInviter
extends Object
implements CommunityInviter

A simple community inviter implementation which sends invitations over notifications. The notifications sent by this implementation have the following characteristics:

Because notifications can only be sent to WLS users, any invitees without WLS usernames will be skipped and no notification-based invitation will be sent to them.

The overview of community functionality contains a description of the community framework.

See Also
NotificationInvitationHelper, Serialized Form

Field Summary
static String NOTIFICATION_NAME
          The name of the notifications sent by this inviter implementation.
static String NOTIFICATION_NAMESPACE
          The namespace of the notifications sent by this inviter implementation.
 
Constructor Summary
NotificationInviter()
          Default constructor for a NotificationInvitor which sends notifications globally scoped (not scoped to a particular webapp).
NotificationInviter(String targetWebApp)
          Constructor allowing specification of the target webapp for notifications.
 
Method Summary
 void destroy()
          Allows InvitationValidationTextGenerator implementations the opportunity to release any resources obtained during init or to perform any necessary cleanup operations.
 void init(InvitationDetails details)
          Called by the framework to initialize resources.
 void sendInvitations(InviteeIterator invitees)
          Sends individual invitations to the set of Invitees contained within the input InviteeIterator, according to the details for the invitation as contained in the input InvitationDetails argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOTIFICATION_NAMESPACE

public static final String NOTIFICATION_NAMESPACE
The namespace of the notifications sent by this inviter implementation.

See Also
Constants Summary

NOTIFICATION_NAME

public static final String NOTIFICATION_NAME
The name of the notifications sent by this inviter implementation.

See Also
Constants Summary
Constructor Detail

NotificationInviter

public NotificationInviter()
Default constructor for a NotificationInvitor which sends notifications globally scoped (not scoped to a particular webapp).


NotificationInviter

public NotificationInviter(String targetWebApp)
Constructor allowing specification of the target webapp for notifications.

Parameters
targetWebApp - the target web application name to send notifications to. If null, the notification is globally scoped.
Method Detail

init

public void init(InvitationDetails details)
          throws InviteException
Called by the framework to initialize resources.

Specified by:
init in interface CommunityInviter
Parameters
details - the specific details of the invitation
Throws
InviteException

sendInvitations

public void sendInvitations(InviteeIterator invitees)
                     throws InviteException
Sends individual invitations to the set of Invitees contained within the input InviteeIterator, according to the details for the invitation as contained in the input InvitationDetails argument.

Specified by:
sendInvitations in interface CommunityInviter
Parameters
invitees - an iterator containing all invitees to invite
Throws
InviteException

destroy

public void destroy()
Allows InvitationValidationTextGenerator implementations the opportunity to release any resources obtained during init or to perform any necessary cleanup operations.

Specified by:
destroy in interface CommunityInviter


Copyright © 2000, 2009, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
Other names may be trademarks of their respective owners.