|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.opensocial.service.impl.OpenSocialServiceImpl
public class OpenSocialServiceImpl
| Field Summary | |
|---|---|
static String |
ID
|
static org.nuxeo.runtime.model.ComponentName |
NAME
|
| Constructor Summary | |
|---|---|
OpenSocialServiceImpl()
|
|
| Method Summary | ||
|---|---|---|
void |
activate(org.nuxeo.runtime.model.ComponentContext context)
|
|
void |
deactivate(org.nuxeo.runtime.model.ComponentContext arg0)
|
|
|
getAdapter(Class<T> adapter)
|
|
org.apache.shindig.gadgets.GadgetSpecFactory |
getGadgetSpecFactory()
Returns our own gadget Spec Factory |
|
com.google.inject.Injector |
getInjector()
|
|
Object |
getInstance(Class<?> klass)
|
|
String |
getKeyForContainer(String defaultContainer)
|
|
String |
getOAuthCallbackUrl()
Where the Oauth "return callback" should go. |
|
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. |
|
ProxySelector |
getProxySelector()
Returns the proxy settings if set |
|
byte[] |
getSigningStateKeyBytes()
Same as above, but in byte form. |
|
File |
getSigningStateKeyFile()
Returns a file handle to the base64 encoded key that is used to sign internal requests. |
|
String[] |
getTrustedHosts()
Return a list of hosts that can be considered as trusted : i.e : we can use internal sign fetch or propagate JSESSIONID |
|
boolean |
isTrustedHost(String host)
Returns true if the given host is a trusted host, false
otherwise. |
|
boolean |
propagateJSESSIONIDToTrustedHosts()
For communication between Shindig and Nuxeo we have 2 options : - use Signed Fetch based on a dynamically generated shared key - propagate the JSESSIONID Since propagating JSESSIONID is a "hack" and requires specific code in the gadget JS, the default is false. |
|
void |
registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
|
|
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. |
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
|
|
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
applicationStarted, registerExtension, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ID
public static final org.nuxeo.runtime.model.ComponentName NAME
| Constructor Detail |
|---|
public OpenSocialServiceImpl()
| Method Detail |
|---|
public com.google.inject.Injector getInjector()
public org.apache.shindig.gadgets.GadgetSpecFactory getGadgetSpecFactory()
OpenSocialService
getGadgetSpecFactory in interface OpenSocialService
public void registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
throws Exception
registerContribution in class org.nuxeo.runtime.model.DefaultComponentException
public void unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
unregisterContribution in class org.nuxeo.runtime.model.DefaultComponentpublic <T> T getAdapter(Class<T> adapter)
getAdapter in interface org.nuxeo.runtime.model.AdaptablegetAdapter in class org.nuxeo.runtime.model.DefaultComponent
public void activate(org.nuxeo.runtime.model.ComponentContext context)
throws Exception
activate in interface org.nuxeo.runtime.model.Componentactivate in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic void deactivate(org.nuxeo.runtime.model.ComponentContext arg0)
deactivate in interface org.nuxeo.runtime.model.Componentdeactivate in class org.nuxeo.runtime.model.DefaultComponentpublic Object getInstance(Class<?> klass)
public void setInjector(com.google.inject.Injector injector)
OpenSocialService
setInjector in interface OpenSocialServicepublic String getKeyForContainer(String defaultContainer)
public ProxySelector getProxySelector()
OpenSocialService
getProxySelector in interface OpenSocialService
public void setupOpenSocial()
throws Exception
OpenSocialService
setupOpenSocial in interface OpenSocialServiceExceptionpublic File getSigningStateKeyFile()
OpenSocialService
getSigningStateKeyFile in interface OpenSocialServicepublic PortalConfig[] getPortalConfig()
OpenSocialService
getPortalConfig in interface OpenSocialServicepublic OAuthServiceDescriptor[] getOAuthServices()
OpenSocialService
getOAuthServices in interface OpenSocialServicepublic String getOAuthCallbackUrl()
OpenSocialService
getOAuthCallbackUrl in interface OpenSocialServicepublic String[] getTrustedHosts()
OpenSocialService
getTrustedHosts in interface OpenSocialServicepublic boolean isTrustedHost(String host)
OpenSocialServicetrue if the given host is a trusted host, false
otherwise.
isTrustedHost in interface OpenSocialServicepublic byte[] getSigningStateKeyBytes()
OpenSocialService
getSigningStateKeyBytes in interface OpenSocialServicepublic boolean propagateJSESSIONIDToTrustedHosts()
OpenSocialService
propagateJSESSIONIDToTrustedHosts in interface OpenSocialService
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||