public final class FrameworkUtil extends Object
| Constructor and Description |
|---|
FrameworkUtil()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static WebFrameworkConfigElement |
getConfig()
Deprecated.
|
static org.springframework.extensions.config.ConfigService |
getConfigService()
Deprecated.
Gets the config service.
|
static org.springframework.extensions.webscripts.connector.Connector |
getConnector(javax.servlet.http.HttpSession httpSession,
String userId,
String endpointId)
Deprecated.
Creates an authenticated connector to a given endpoint.
|
static org.springframework.extensions.webscripts.connector.Connector |
getConnector(RequestContext context,
String endpointId)
Deprecated.
Creates an authenticated connector to a given endpoint.
|
static org.springframework.extensions.webscripts.connector.Connector |
getConnector(String endpointId)
Deprecated.
Creates an unauthenticated connector to a given endpoint.
|
static org.springframework.extensions.webscripts.connector.ConnectorService |
getConnectorService()
Deprecated.
Retrieves the connector service.
|
static org.springframework.extensions.webscripts.connector.ConnectorSession |
getConnectorSession(javax.servlet.http.HttpSession httpSession,
String endpointId)
Deprecated.
Retrieves the Connector Session instance for the current
session and given endpoint.
|
static org.springframework.extensions.webscripts.connector.ConnectorSession |
getConnectorSession(RequestContext context,
String endpointId)
Deprecated.
Retrieves the Connector Session instance for the current
user and given endpoint.
|
static org.springframework.extensions.webscripts.connector.CredentialVault |
getCredentialVault(javax.servlet.http.HttpSession httpSession,
String userId)
Deprecated.
Retrieves the session-bound credential vault for a given user.
|
static org.springframework.extensions.webscripts.connector.CredentialVault |
getCredentialVault(RequestContext context,
String userId)
Deprecated.
This has been deprecated as all static helper methods need to be removed.
TODO Indicate which bean to use once it has been named!
|
static RequestContext |
getCurrentRequestContext()
Deprecated.
Retrieves the request context for the current thread.
|
static org.springframework.extensions.config.RemoteConfigElement.EndpointDescriptor |
getEndpoint(String endpointId)
Deprecated.
Loads the endpoint descriptor for a given endpoint.
|
static String |
getFrameworkTitle()
Deprecated.
Returns the official title of this release of the Alfresco Web Framework
|
static String |
getFrameworkVersion()
Deprecated.
Returns the official version of this release of the Alfresco Web Framework
|
static org.apache.commons.logging.Log |
getLogger()
Deprecated.
Retrieves the general web framework logger.
|
static org.springframework.extensions.config.RemoteConfigElement |
getRemoteConfiguration()
Deprecated.
Retrieves the web framework remote configuration.
|
static RenderService |
getRenderService()
Deprecated.
Gets the render service.
|
static ResourceLoader |
getResourceLoader(String objectId,
String endpointId)
Deprecated.
Produces a ResourceLoader for the given object id on a given endpoint
|
static ResourceService |
getResourceService()
Deprecated.
|
static WebFrameworkServiceRegistry |
getServiceRegistry()
Deprecated.
Retrieves the web framework services registry.
|
static WebFrameworkConfigElement |
getWebFrameworkConfiguration()
Deprecated.
Retrieves the web framework configuration.
|
static void |
logFullStacktrace(Throwable throwable)
Deprecated.
|
static void |
removeConnectorSessions(RequestContext context)
Deprecated.
Removes all session-bound Connector Sessions for the current user
|
static void |
resetWebScripts()
Deprecated.
Helper function to reset all web scripts in the web framework
web scripts container
|
public static RequestContext getCurrentRequestContext()
public static WebFrameworkServiceRegistry getServiceRegistry()
public static org.springframework.extensions.config.ConfigService getConfigService()
public static WebFrameworkConfigElement getWebFrameworkConfiguration()
public static WebFrameworkConfigElement getConfig()
public static org.springframework.extensions.config.RemoteConfigElement getRemoteConfiguration()
public static org.springframework.extensions.webscripts.connector.ConnectorService getConnectorService()
public static RenderService getRenderService()
public static ResourceService getResourceService()
public static org.apache.commons.logging.Log getLogger()
public static org.springframework.extensions.config.RemoteConfigElement.EndpointDescriptor getEndpoint(String endpointId)
endpointId - the endpoint idpublic static 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 static 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 static 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 static org.springframework.extensions.webscripts.connector.CredentialVault getCredentialVault(javax.servlet.http.HttpSession httpSession,
String userId)
httpSession - the http sessionuserId - the user idpublic static org.springframework.extensions.webscripts.connector.CredentialVault getCredentialVault(RequestContext context, String userId)
Retrieves the session-bound credential vault for a given user.
context - the contextuserId - the user idpublic static org.springframework.extensions.webscripts.connector.ConnectorSession getConnectorSession(RequestContext context, String endpointId)
context - the contextendpointId - the endpoint idpublic static org.springframework.extensions.webscripts.connector.ConnectorSession getConnectorSession(javax.servlet.http.HttpSession httpSession,
String endpointId)
httpSession - the http sessionendpointId - the endpoint idpublic static void removeConnectorSessions(RequestContext context)
context - the contextpublic static String getFrameworkTitle()
public static String getFrameworkVersion()
public static ResourceLoader getResourceLoader(String objectId, String endpointId)
objectId - the object idendpointId - the endpoint idpublic static void resetWebScripts()
public static void logFullStacktrace(Throwable throwable)
throwable - ThrowableCopyright © 2005–2016 Alfresco Software. All rights reserved.