Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.icq
Class OperationSetExtendedAuthorizationsIcqImpl

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

public class OperationSetExtendedAuthorizationsIcqImpl
extends Object
implements OperationSetExtendedAuthorizations

Contains methods that would allow service users to re-request authorizations to add a contact to their contact list or, send them an authorization before having been asked.

Author:
Damian Minkov

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.sip.communicator.service.protocol.OperationSetExtendedAuthorizations
OperationSetExtendedAuthorizations.SubscriptionStatus
 
Constructor Summary
OperationSetExtendedAuthorizationsIcqImpl(ProtocolProviderServiceIcqImpl icqProvider)
          Creates a new instance of OperationSetExtendedAuthorizationsIcqImpl
 
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

OperationSetExtendedAuthorizationsIcqImpl

public OperationSetExtendedAuthorizationsIcqImpl(ProtocolProviderServiceIcqImpl icqProvider)
Creates a new instance of OperationSetExtendedAuthorizationsIcqImpl

Parameters:
icqProvider - IcqProtocolProviderServiceImpl
Method Detail

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.

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.

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.