Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.service.api
Interface OpenSocialService

All Known Implementing Classes:
OpenSocialServiceImpl

public interface OpenSocialService


Method Summary
 org.apache.shindig.gadgets.GadgetSpecFactory getGadgetSpecFactory()
          Returns our own gadget Spec Factory
 java.lang.String getKeyForContainer(java.lang.String defaultContainer)
          Get the symetric key for the given container
 java.lang.String getOAuthCallbackUrl()
          Where the Oauth "return callback" should go.
 java.io.File getOAuthPrivateKeyFile()
          Returns a file handle to the default private key for communicating with external resources.
 java.lang.String getOAuthPrivateKeyName()
          Returns the name of the private key.
 OAuthServiceDescriptor[] getOAuthServices()
          Get a list of the configured external service providers that we want to communicate with.
 PortalConfig[] getPortalConfig()
          PortalConfig array that represents the contribution from the user in the opensocial xp.
 java.net.ProxySelector getProxySelector()
          Returns the proxy settings if set
 byte[] getSigningStateKeyBytes()
          Same as above, but in byte form.
 java.io.File getSigningStateKeyFile()
          Returns a file handle to the base64 encoded key that is used to sign internal requests.
 java.lang.String[] getTrustedHosts()
          Return a list of hosts to whom we *should* pass the users current JSESSIONID.
 void setInjector(com.google.inject.Injector injector)
          Specify the GUICE injector to user for the service
 void setupOpenSocial()
          We have had to make this public because it must be called at exactly the right time the initialization sequence.
 

Method Detail

getGadgetSpecFactory

org.apache.shindig.gadgets.GadgetSpecFactory getGadgetSpecFactory()
Returns our own gadget Spec Factory


setInjector

void setInjector(com.google.inject.Injector injector)
Specify the GUICE injector to user for the service


getKeyForContainer

java.lang.String getKeyForContainer(java.lang.String defaultContainer)
Get the symetric key for the given container

Parameters:
defaultContainer - the container name

getProxySelector

java.net.ProxySelector getProxySelector()
Returns the proxy settings if set


getSigningStateKeyFile

java.io.File getSigningStateKeyFile()
Returns a file handle to the base64 encoded key that is used to sign internal requests.


getSigningStateKeyBytes

byte[] getSigningStateKeyBytes()
Same as above, but in byte form. This is cached.


getOAuthPrivateKeyFile

java.io.File getOAuthPrivateKeyFile()
Returns a file handle to the default private key for communicating with external resources.


getOAuthServices

OAuthServiceDescriptor[] getOAuthServices()
Get a list of the configured external service providers that we want to communicate with.


getPortalConfig

PortalConfig[] getPortalConfig()
PortalConfig array that represents the contribution from the user in the opensocial xp. This is normally null.


getOAuthPrivateKeyName

java.lang.String getOAuthPrivateKeyName()
Returns the name of the private key. Most service providers don't use this.


getOAuthCallbackUrl

java.lang.String getOAuthCallbackUrl()
Where the Oauth "return callback" should go. This has to be configured to the name (and path) that other servers see the nuxeo instance as.


getTrustedHosts

java.lang.String[] getTrustedHosts()
Return a list of hosts to whom we *should* pass the users current JSESSIONID.


setupOpenSocial

void setupOpenSocial()
                     throws java.lang.Exception
We have had to make this public because it must be called at exactly the right time the initialization sequence. This should be called BEFORE guice initialization of shindig happens.

Throws:
java.lang.Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.