org.jivesoftware.smackx.privacy.PrivacyListManager Java Examples

The following examples show how to use org.jivesoftware.smackx.privacy.PrivacyListManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PrivacyManager.java    From Spark with Apache License 2.0 5 votes vote down vote up
/**
 * Creating PrivacyListManager instance
 */
private PrivacyManager() {
    XMPPConnection conn = SparkManager.getConnection();
    if (conn == null) {
        Log.error("Privacy plugin: Connection not initialized.");
    }

   _active = checkIfPrivacyIsSupported(conn);

    if (_active)
    {
        privacyManager = PrivacyListManager.getInstanceFor(conn);
        initializePrivacyLists();
    }
}
 
Example #2
Source File: PrivacyManager.java    From Spark with Apache License 2.0 2 votes vote down vote up
/**
 * Get <code>org.jivesoftware.smackx.privacy.PrivacyListManager</code> instance
 * 
 * @return PrivacyListManager
 */
public PrivacyListManager getPrivacyListManager() {
    return privacyManager;
}