|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.model.DefaultComponent org.nuxeo.opensocial.service.impl.OpenSocialServiceImpl
public class OpenSocialServiceImpl
Field Summary | |
---|---|
static java.lang.String |
ID
|
static ComponentName |
NAME
|
Constructor Summary | |
---|---|
OpenSocialServiceImpl()
|
Method Summary | ||
---|---|---|
void |
activate(ComponentContext context)
Activates the component. |
|
void |
deactivate(ComponentContext arg0)
Deactivates the component. |
|
|
getAdapter(java.lang.Class<T> adapter)
Returns an object which is an instance of the given class associated with this object. |
|
org.apache.shindig.gadgets.GadgetSpecFactory |
getGadgetSpecFactory()
Returns our own gadget Spec Factory |
|
com.google.inject.Injector |
getInjector()
|
|
java.lang.Object |
getInstance(java.lang.Class<?> klass)
|
|
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 |
registerContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
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(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
|
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
---|
registerExtension, unregisterExtension |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID
public static final 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(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor) throws java.lang.Exception
registerContribution
in class DefaultComponent
java.lang.Exception
public void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
unregisterContribution
in class DefaultComponent
public <T> T getAdapter(java.lang.Class<T> adapter)
Adaptable
null
if
no such object can be found.
getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look up
null
if this object does not
have an adapter for the given classpublic void activate(ComponentContext context) throws java.lang.Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime context
java.lang.Exception
- if an error occurs during activationpublic void deactivate(ComponentContext arg0)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
arg0
- the runtime contextpublic java.lang.Object getInstance(java.lang.Class<?> klass)
public void setInjector(com.google.inject.Injector injector)
OpenSocialService
setInjector
in interface OpenSocialService
public java.lang.String getKeyForContainer(java.lang.String defaultContainer)
OpenSocialService
getKeyForContainer
in interface OpenSocialService
defaultContainer
- the container namepublic java.net.ProxySelector getProxySelector()
OpenSocialService
getProxySelector
in interface OpenSocialService
public void setupOpenSocial() throws java.lang.Exception
OpenSocialService
setupOpenSocial
in interface OpenSocialService
java.lang.Exception
public java.io.File getSigningStateKeyFile()
OpenSocialService
getSigningStateKeyFile
in interface OpenSocialService
public PortalConfig[] getPortalConfig()
OpenSocialService
getPortalConfig
in interface OpenSocialService
public java.io.File getOAuthPrivateKeyFile()
OpenSocialService
getOAuthPrivateKeyFile
in interface OpenSocialService
public OAuthServiceDescriptor[] getOAuthServices()
OpenSocialService
getOAuthServices
in interface OpenSocialService
public java.lang.String getOAuthCallbackUrl()
OpenSocialService
getOAuthCallbackUrl
in interface OpenSocialService
public java.lang.String getOAuthPrivateKeyName()
OpenSocialService
getOAuthPrivateKeyName
in interface OpenSocialService
public java.lang.String[] getTrustedHosts()
OpenSocialService
getTrustedHosts
in interface OpenSocialService
public byte[] getSigningStateKeyBytes()
OpenSocialService
getSigningStateKeyBytes
in interface OpenSocialService
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |