Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber
Class OperationSetExtendedAuthorizationsJabberImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.OperationSetExtendedAuthorizationsJabberImpl
All Implemented Interfaces:
OperationSet, OperationSetExtendedAuthorizations

public class OperationSetExtendedAuthorizationsJabberImpl
extends Object
implements OperationSetExtendedAuthorizations

Extended authorization implementation for jabber provider.

Author:
Damian Minkov

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.service.protocol.OperationSetExtendedAuthorizations
OperationSetExtendedAuthorizations.SubscriptionStatus
 
Constructor Summary
OperationSetExtendedAuthorizationsJabberImpl(ProtocolProviderServiceJabberImpl provider, OperationSetPersistentPresenceJabberImpl opSetPersPresence)
          Creates OperationSetExtendedAuthorizations.
 
Method Summary
 void explicitAuthorize(Contact contact)
          Send a positive authorization to contact thus allowing them to add us to their contact list without needing to first request an authorization.
 OperationSetExtendedAuthorizations.SubscriptionStatus getSubscriptionStatus(Contact contact)
          Returns the subscription status for the contact or if not available returns null.
 void reRequestAuthorization(AuthorizationRequest request, Contact contact)
          Send an authorization request, requesting contact to add them to our contact list?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationSetExtendedAuthorizationsJabberImpl

OperationSetExtendedAuthorizationsJabberImpl(ProtocolProviderServiceJabberImpl provider,
                                             OperationSetPersistentPresenceJabberImpl opSetPersPresence)
Creates OperationSetExtendedAuthorizations.

Parameters:
opSetPersPresence - the presence opset.
provider - the parent provider
Method Detail

explicitAuthorize

public void explicitAuthorize(Contact contact)
                       throws OperationFailedException
Send a positive authorization to contact thus allowing them to add us to their contact list without needing to first request an authorization.

Specified by:
explicitAuthorize in interface OperationSetExtendedAuthorizations
Parameters:
contact - the Contact whom we're granting authorization prior to receiving a request.
Throws:
OperationFailedException - if we fail sending the authorization.

reRequestAuthorization

public void reRequestAuthorization(AuthorizationRequest request,
                                   Contact contact)
                            throws OperationFailedException
Send an authorization request, requesting contact to add them to our contact list?

Specified by:
reRequestAuthorization in interface OperationSetExtendedAuthorizations
Parameters:
request - the AuthorizationRequest that we'd like the protocol provider to send to contact.
contact - the Contact who we'd be asking for an authorization.
Throws:
OperationFailedException - if we fail sending the authorization request.

getSubscriptionStatus

public OperationSetExtendedAuthorizations.SubscriptionStatus getSubscriptionStatus(Contact contact)
Returns the subscription status for the contact or if not available returns null.

Specified by:
getSubscriptionStatus in interface OperationSetExtendedAuthorizations
Parameters:
contact - the contact to query for subscription status.
Returns:
the subscription status for the contact or if not available returns null.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.