public final class FrameworkBean extends Object
| Constructor and Description |
|---|
FrameworkBean() |
| Modifier and Type | Method and Description |
|---|---|
static WebFrameworkConfigElement |
getConfig()
Deprecated.
|
org.springframework.extensions.webscripts.connector.Connector |
getConnector(javax.servlet.http.HttpSession httpSession,
String userId,
String endpointId)
Creates an authenticated connector to a given endpoint.
|
org.springframework.extensions.webscripts.connector.Connector |
getConnector(RequestContext context,
String endpointId)
Creates an authenticated connector to a given endpoint.
|
org.springframework.extensions.webscripts.connector.Connector |
getConnector(String endpointId)
Creates an unauthenticated connector to a given endpoint.
|
org.springframework.extensions.webscripts.connector.ConnectorSession |
getConnectorSession(javax.servlet.http.HttpSession httpSession,
String endpointId)
Retrieves the Connector Session instance for the current
session and given endpoint.
|
org.springframework.extensions.webscripts.connector.ConnectorSession |
getConnectorSession(RequestContext context,
String endpointId)
Retrieves the Connector Session instance for the current
user and given endpoint.
|
org.springframework.extensions.webscripts.connector.CredentialVault |
getCredentialVault(javax.servlet.http.HttpSession httpSession,
String userId)
Retrieves the session-bound credential vault for a given user.
|
org.springframework.extensions.webscripts.connector.CredentialVault |
getCredentialVault(RequestContext context,
String userId)
Retrieves the session-bound credential vault for a given user.
|
org.springframework.extensions.config.RemoteConfigElement.EndpointDescriptor |
getEndpoint(String endpointId)
Loads the endpoint descriptor for a given endpoint.
|
static RenderService |
getRenderService()
Deprecated.
|
static ResourceService |
getResourceService()
Deprecated.
|
static WebFrameworkServiceRegistry |
getServiceRegistry()
Deprecated.
|
void |
logFullStacktrace(Throwable throwable) |
void |
removeConnectorSessions(RequestContext context)
Removes all session-bound Connector Sessions for the current user
|
void |
resetWebScripts()
Helper function to reset all web scripts in the web framework
web scripts container
|
void |
setConnectorService(org.springframework.extensions.webscripts.connector.ConnectorService connectorService) |
void |
setRemoteConfig(org.springframework.extensions.config.RemoteConfigElement remoteConfig) |
void |
setWebFrameworkContainer(org.springframework.extensions.webscripts.Container container) |
public void setWebFrameworkContainer(org.springframework.extensions.webscripts.Container container)
public void setRemoteConfig(org.springframework.extensions.config.RemoteConfigElement remoteConfig)
public void setConnectorService(org.springframework.extensions.webscripts.connector.ConnectorService connectorService)
public static WebFrameworkServiceRegistry getServiceRegistry()
public static WebFrameworkConfigElement getConfig()
public static RenderService getRenderService()
public static ResourceService getResourceService()
public org.springframework.extensions.config.RemoteConfigElement.EndpointDescriptor getEndpoint(String endpointId)
endpointId - the endpoint idpublic org.springframework.extensions.webscripts.connector.Connector getConnector(String endpointId) throws org.springframework.extensions.surf.exception.ConnectorServiceException
endpointId - endpoint idorg.springframework.extensions.surf.exception.ConnectorServiceException - the connector service exceptionpublic org.springframework.extensions.webscripts.connector.Connector getConnector(RequestContext context, String endpointId) throws org.springframework.extensions.surf.exception.ConnectorServiceException
context - the request contextendpointId - the endpointorg.springframework.extensions.surf.exception.ConnectorServiceException - the connector service exceptionpublic org.springframework.extensions.webscripts.connector.Connector getConnector(javax.servlet.http.HttpSession httpSession,
String userId,
String endpointId)
throws org.springframework.extensions.surf.exception.ConnectorServiceException
httpSession - the http sessionuserId - the user idendpointId - the endpoint idorg.springframework.extensions.surf.exception.ConnectorServiceException - the connector service exceptionpublic org.springframework.extensions.webscripts.connector.CredentialVault getCredentialVault(javax.servlet.http.HttpSession httpSession,
String userId)
httpSession - the http sessionuserId - the user idpublic org.springframework.extensions.webscripts.connector.CredentialVault getCredentialVault(RequestContext context, String userId)
context - the contextuserId - the user idpublic org.springframework.extensions.webscripts.connector.ConnectorSession getConnectorSession(RequestContext context, String endpointId)
context - the contextendpointId - the endpoint idpublic org.springframework.extensions.webscripts.connector.ConnectorSession getConnectorSession(javax.servlet.http.HttpSession httpSession,
String endpointId)
httpSession - the http sessionendpointId - the endpoint idpublic void removeConnectorSessions(RequestContext context)
context - the contextpublic void resetWebScripts()
public void logFullStacktrace(Throwable throwable)
Copyright © 2005–2016 Alfresco Software. All rights reserved.