--- openfire-TOT//src/java/org/jivesoftware/openfire/pubsub/Node.java 2008-01-24 11:23:41.000000000 -0800 +++ openfire_3_4_4/src/java/org/jivesoftware/openfire/pubsub/Node.java 2008-01-24 09:33:29.000000000 -0800 @@ -294,6 +294,18 @@ } /** + * Adds a new affiliation or updates an existing affiliation of the specified entity JID + * to become a member of the whitelist on the node. + * + * @param jid the JID of the user being added as a node member. + * @return the newly created or modified affiliation to the node. + */ + public NodeAffiliate addMember(JID jid) { + NodeAffiliate nodeAffiliate = addAffiliation(jid, NodeAffiliate.Affiliation.member); + return nodeAffiliate; + } + + /** * Sets that the specified entity is an outcast of the node. Outcast entities are not * able to publish or subscribe to the node. Existing subscriptions will be deleted. *