com.atlassian.gadgets.opensocial
Interface OpenSocialRequestContext


public interface OpenSocialRequestContext

An adapter for Shindig's SecurityToken interface. Host applications need not implement this interface. The AG opensocial plugin will pass an implementation to the PersonService

Since:
2.0

Method Summary
 String getActiveUrl()
           
 String getOwnerId()
           
 String getViewerId()
           
 boolean isAnonymous()
           
 

Method Detail

getOwnerId

String getOwnerId()
Returns:
the owner of the request, or null if there is none.

getViewerId

String getViewerId()
Returns:
the viewer of the request, or null if there is none.

isAnonymous

boolean isAnonymous()
Returns:
true if the request is for an anonymous viewer/owner

getActiveUrl

String getActiveUrl()
Returns:
the URL being used by the current request The returned URL must contain at least protocol, host, and port. The returned URL may contain path or query parameters.
Throws:
UnsupportedOperationException - if the URL is not available.


Copyright © 2009 Atlassian. All Rights Reserved.