public class OwMainAppContext extends OwAppContext implements OwHistoryManagerContext, OwNetworkContext, OwMandatorManagerContext, OwComboboxRendererFactory, OwAOContext
Main Application Context Class Implementation. Instance stays active during session.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwAppContext.OwDialogManagerViewReferenceOwRepositoryContext.OwConfigChangeEvent, OwRepositoryContext.OwConfigChangeEventListener| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGNODE_BASE
the XML node name
Base |
static String |
CONFIGNODE_SERVER
the XML node name
Server |
static String |
CONFIGNODE_URLOVERWRITE
the XML node name
UrlOverwrite |
static String |
LITERAL_PLACEHOLDER_TODAY
placeholder for literals: will be replaced with todays date
|
static String |
LITERAL_PLACEHOLDER_USER_DISPLAY_NAME
placeholder for literals: will be replaced with the user display name
|
static String |
LITERAL_PLACEHOLDER_USER_ID
placeholder for literals: will be replaced with the user ID
|
static String |
LITERAL_PLACEHOLDER_USER_LONG_NAME
placeholder for literals: will be replaced with the user long name
|
static String |
LITERAL_PLACEHOLDER_USER_NAME
placeholder for literals: will be replaced with the user name
|
static String |
LITERAL_PLACEHOLDER_USER_SHORT_NAME
placeholder for literals: will be replaced with the user short name
|
protected OwClipboard |
m_clipboard
the one and only clipboard for the session
|
static String |
PREFIX_DRAGDROP
prefix for the common DND document import temp directory
|
protected static String |
WINDOW_POSITIONS_APP_SETTINGS_NAME
name of the window positions app setting
|
AJAX_REQUEST_TYPE, CONFIG_JNDI_SUFFIX, CONFIG_STREAM_NAME_PREFIX, EXTERNAL_REQUEST_TARGET_ID, FULLJS_MARKER, INTERNAL_REQUEST_TARGET_ID, KEYBOARD_CTRLKEY_ALT, KEYBOARD_CTRLKEY_CTRL, KEYBOARD_CTRLKEY_META, KEYBOARD_CTRLKEY_NONE, KEYBOARD_CTRLKEY_SHIFT, KEYBOARD_KEY_DEL, KEYBOARD_KEY_DN, KEYBOARD_KEY_END, KEYBOARD_KEY_ESC, KEYBOARD_KEY_F1, KEYBOARD_KEY_F10, KEYBOARD_KEY_F11, KEYBOARD_KEY_F12, KEYBOARD_KEY_F2, KEYBOARD_KEY_F3, KEYBOARD_KEY_F4, KEYBOARD_KEY_F5, KEYBOARD_KEY_F6, KEYBOARD_KEY_F7, KEYBOARD_KEY_F8, KEYBOARD_KEY_F9, KEYBOARD_KEY_INS, KEYBOARD_KEY_LEFT, KEYBOARD_KEY_PAGE_DN, KEYBOARD_KEY_PAGE_UP, KEYBOARD_KEY_POS1, KEYBOARD_KEY_RETURN, KEYBOARD_KEY_RIGHT, KEYBOARD_KEY_SPACE, KEYBOARD_KEY_UP, LOGIN_VIEW_TARGET_ID, m_DEBUG_ActivateViewID, m_DEBUG_NavigationEvent, m_DEBUG_NavigationTargetID, m_ServletContext, MAIN_VIEW_TARGET_ID, PREPARED_REQUEST_URL, RESOURCE_CLASSPATH_PREFIX, RESOURCE_DEPLOYMENT_PREFIX, RESOURCE_FILE_PATH_ENVIRONMENT_VAR_NAME_PARAM, RESOURCE_FILE_PATH_PARAM, SELECTED_ANCHOR, TIME_ZONE_DAYLIGHTSAVINGS_PARAMETER_NAME, TIME_ZONE_ID_PARAMETER_NAME, TIME_ZONE_NORTHERN_HEMISPHERE_PARAMETER_NAME, TIME_ZONE_OFFSET_PARAMETER_NAME, TIME_ZONE_TIME_PARAMETER_NAME, TIME_ZONE_TRANSITIONS_PARAMETER_NAME| Constructor and Description |
|---|
OwMainAppContext()
Create a new OwMainAppContext.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAjaxUpdateContainer(String containerId_p,
String ajaxEventHandler_p)
Add a pair of HTML container ID and the AJAX handler for it.
|
void |
addConfigChangeEventListener(OwRepositoryContext.OwConfigChangeEventListener listener_p)
add a config change event listener to be notified about config changes
|
void |
addDNDImportedDocumentToStack(OwDocumentImportItem importedDocument_p)
Add an
to the stack of DND
imported documents. |
void |
addFinalScript(OwScript script_p)
Adds a single run custom java script
The script runs upon m_request end, invoked by the onLoad Body tag handler.
|
void |
addFinalScript(String strScript_p)
Adds a single run custom java script.
|
boolean |
addUniqueFinalScript(OwScript script_p)
Add final script only if the same script was not already added.
|
void |
addUserOperationListener(OwUserOperationListener listener_p)
Adds a user operation listener to this executor.
|
void |
clearDragDropUploadDir()
Deprecated.
since DND DocumentImporter was introduced
|
void |
clearFinalScript()
clear the final script for this request
|
protected OwAOProvider |
createAOProvider() |
protected String |
createBaseUrl(javax.servlet.http.HttpServletRequest req_p)
(overridable)
Create base URL which will be used to process the request.
|
protected OwClipboard |
createClipboard()
Create an instance of the OwClipboard object.
|
OwComboboxRenderer |
createComboboxRenderer()
Return a new instance of a combobox renderer,
will read configuration settings and create the corresponding
instance.
|
OwComboboxRenderer |
createComboboxRenderer(OwComboModel model_p,
String strID_p,
OwFieldDefinition fieldDefinition_p,
OwFieldProvider fieldProvider_p,
OwString description_p)
Creates a renderer component for comboboxes.
|
protected OwConfiguration |
createConfiguration()
Create an instance of the OwConfiguration object.
|
OwFieldManager |
createFieldManager()
create a new instance of the field manager
|
protected String |
createServerUrl(javax.servlet.http.HttpServletRequest req_p)
(overridable)
Called to create the server URL for current request.
|
String |
createTempDir(String strPrefix_p)
creates a unique temp directory
|
OwAttributeBagWriteable |
createUserAttributeBag(String sName_p)
create a attribute bag for scalar settings specific for the current user.
|
void |
deleteTempDir(String strDir_p)
deletes a temp dir and all files within it
|
boolean |
doShowClipboard()
flag indicating if clipboard should be displayed
|
boolean |
doShowWildCardDescriptions()
flag indicating if wild card descriptions should be displayed for searches.
|
void |
dump(Writer w_p)
write debug dump to Writer
|
String |
getAjaxUpdateURL(String containerId_p)
Get the AJAX handler, or
null for the given HTML container ID. |
protected URL |
getAppContextResource(String resourcePath_p)
(overridable)
Retrieves a resource for this application context.
|
OwBaseConfiguration |
getBaseConfiguration()
retrieve the Configuration object
|
String |
getClientID()
get a ID / name for the calling client
|
String |
getClientWildCard(int wildcardtype_p)
get a wild card to be used in the client for the given wild card type
|
OwClipboard |
getClipboard()
get the one and only clipboard for the session
|
Collection |
getClipboardAvailableDocFunctionIds()
Get the document function plugin IDs available in clipboard.
|
OwRepositoryContext.OwConfigChangeEventListener |
getConfigChangeEvent()
delegates OwConfigChangeEventListener notifications to the subscribed listeners
|
String |
getConfigPath()
get the path to the configuration files
|
OwConfiguration |
getConfiguration()
retrieve the Configuration object
|
String |
getConfigurationName()
get a name for the configuration to use
can be used to distinguish different applications
|
OwCredentials |
getCredentials()
get the credentials of the logged in user
|
String |
getCurrentMasterPluginID()
get the current Id to the active master plugin
|
OwMasterView |
getCurrentMasterView()
get the current active master plugin view
|
OwBaseUserInfo |
getCurrentUser()
get the current user
|
String |
getDateFormatString()
get the format string to use for date values
|
String |
getDateFormatStringWithoutDate()
get the format string to use for time values do not use date tokens
|
String |
getDateFormatStringWithoutTime()
get the format string to use for date values do not use time tokens
|
String |
getDefaultFolderClassName()
name of the default class used to create simple folders
|
String |
getDesignDir()
get the directory of the used design.
|
String |
getDesignURL()
get the URL of the used design.
|
OwDialogManager |
getDialogManager()
get a reference to the default dialog manager used to open dialogs from the context in openDialog(...)
The dialog manager must be created somewhere in the layout and set in the context.
|
String |
getDNDDocumentImportTempDir() |
OwDocumentImportItem |
getDNDImportedDocument(int i_p)
Get the
i_pth imported document from the DND document import stack. |
int |
getDNDImportedDocumentsCount()
Get the size of the DND document import stack.
|
String |
getDragAndDropUploadDir()
Deprecated.
since DND DocumentImporter was introduced
|
Throwable |
getError()
get exception to display
|
String |
getFinalScript()
get the current final script to be executed for this request
|
OwHistoryManager |
getHistoryManager()
retrieve the network object
|
OwInfoProviderRegistry |
getInfoProviderRegistry()
Get a info provider registry which is used to
request information provider for special context.
|
org.springframework.jdbc.core.JdbcTemplate |
getJDBCTemplate()
get a spring JDBC template for the default DataSource
|
Locale |
getLocale()
get the current locale,
which can be used as a prefix/postfix to distinguish localization resources
|
String |
getLocalEventURL(String strLangID_p)
get a event URL to change the language
NOTE: This event URL is not checked with request key,
so it can be called arbitrary and be stored in the users browser.
|
OwMandator |
getMandator()
get the mandator interface of the current logged in user
|
String |
getMandatorID()
get a ID / name for the calling mandator
|
OwMandatorManager |
getMandatorManager()
retrieve the MandatorManager reference
|
int |
getMaxClipboardSize()
Get maximum number of items that can be hold in the clipboard
|
int |
getMaxSortCriteriaCount()
get the maximum number of sort criteria, which can be applied to a list at once
|
Collection |
getMessages()
Get a collection of messages to display
|
OwNetwork<?> |
getNetwork()
retrieve the network object
|
int |
getNextDNDDocumentImportFileID() |
int |
getPageSizeForLists()
number of items in a page for lists which support paging
|
OwRoleManager |
getRoleManager()
retrieve the RoleManager object
|
boolean |
getSafeBooleanAppSetting(String strName_p,
boolean default_p)
get a setting for the application
|
String |
getSafeCurrentMasterPluginStyleClassID()
get a Id for the current master plugin that can be used to create a HTML class style ID
|
int |
getSafeIntAppSetting(String strName_p,
int iDefault_p)
get a setting for the application
|
Collection |
getSafeListAppSetting(String strName_p)
get a setting for the application
|
String |
getSafeStringAppSetting(String strName_p,
String strDefault_p)
get a setting for the application
|
String |
getSessionCookieData(javax.servlet.http.HttpServletRequest httpServletRequest)
get session cookie name value pairs delimited by whitespace
|
List |
getSessionCookieNames()
get the list of the session cookie names as configured in owbootstrap.xml (<SessionCookieNames>)
|
String |
getSessionDisplayName()
get a name for the current session,
used for warning and error logs to identify the session later.
|
OwSettings |
getSettings()
retrieve the settings object
|
String |
getStartupID()
get the ID of the startup plugin
|
String |
getTimeFormatString()
get the format string to use for time values
|
OwBaseUserInfo |
getUserInfo()
get the logged in user
|
OwWindowPositions |
getWindowPositions()
get a setting for the application
|
String |
getWindowPositionsSaveURL()
get a event URL to save the viewer and main window position
the position values have to be appended as a query string,
using the getter / setter names as request parameter names in the following form:
"[getter / setter name]"
e.g.:
for getViewerHeight the Parameter name would be
"ViewerHeight"
|
boolean |
handleRequest(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p)
handles the m_request from the page and dispatches ONLY to the selected target
|
boolean |
hasLabel(String strName_p)
check if a display label is defined for the given symbol name
|
protected void |
init()
init the target after the context is set.
|
void |
init(OwAppContext oldcontext_p)
init the context BEFORE the user has logged on.
|
protected void |
initializeUserOperationListeners()
Initialize the listeners for user operations (at the login time)
|
boolean |
isAllowed(int iCategory_p,
String strFunctionName_p)
check if function or plugin is available for the user.
|
boolean |
isContainerBasedAuthenticated()
check the current user is authenticated container based
|
boolean |
isLogin()
check the credentials of the logged in user
|
boolean |
isRoleManaged() |
boolean |
isUseHtml5DragAndDrop()
flag indicating if the application should use the HTML5 implementation of the DnD feature.
|
String |
localizeLabel(String strName_p)
optionally translate a name into a readable label, used for property class names in ECM adaptors which do not support separate displaynames
|
void |
loginInit()
init the context AFTER the user has logged in.
|
void |
logout()
clear the credentials, i.e.
|
void |
onActivateMasterPlugin(OwMasterView view_p)
notify the context about the new activated master plugin in order to generate context sensitive information
|
void |
onLogin(OwBaseUserInfo user_p)
called when user gets logged in
|
void |
onSaveWindowPositions(javax.servlet.http.HttpServletRequest request_p)
called when getWindowPositionsSaveURL was invoked see getWindowPositionsSaveURL for details
|
void |
onSessionTimeOut(javax.servlet.http.HttpSession httpSession_p)
called when the session times out
|
void |
openHelp(String sHelppath_p)
opens a help page in the connected help plugin if available
|
void |
postMessage(String sMessage_p)
add a message to be displayed for user info
|
void |
registerPluginKeyEvent(String strPluginID_p,
String strEventURL_p,
String strFormName_p,
String strDescription_p)
register a key event for this plugin if defined in key map, call in onRender method only
|
void |
releaseDNDImportedDocuments()
Release all imported documents of the DND document import stack and remove
the current temp dir.
|
void |
removeConfigChangeEventListener(OwRepositoryContext.OwConfigChangeEventListener listener_p)
add a config change event listener to be notified about config changes
|
void |
removeUserOperationListener(OwUserOperationListener listener_p)
Removes the given user operation listener from this executor.
|
void |
resetMessages()
Reset messages collection.
|
Object |
resolveLiteralPlaceholder(String contextname_p,
String placeholdername_p)
resolve the given literal placeholder name to a property / criteria value
|
void |
setError(Throwable exception_p)
set exception to display
|
void |
setLocale(Locale locale_p) |
boolean |
useJS_DateControl()
flag indicating if the java script Date control should be used instead of a HTML combobox control
|
activateView, beginRequest, broadcast, clearFocusControlID, closeAllDialogs, createBaseInitializer, createJspPageUrl, createSubmitFunction, createSubmitLink, decodeURL, encodeURL, endRequest, getAjaxEventURL, getAOProvider, getApplicationAttribute, getBaseEventURL, getBasePath, getBaseURL, getClientTimeZone, getClientTimeZoneInfo, getConfigURL, getDialogManagerViewReference, getEventDescriptions, getEventTarget, getEventURL, getFocusControlID, getFormEventFunction, getFormEventURL, getHttpRequest, getHttpResponse, getHttpServletContext, getHttpSession, getInfiniteEventURL, getInitParameter, getJSPPageURL, getKeyEvents, getRegisteredInterface, getServerURL, getTargetCount, getXMLConfigDoc, handleAjaxRequest, handleExternalTargetRequest, isAjaxRequest, isExternalTargetRequest, isFormRequest, localize, localize1, localize2, localize3, openDialog, prepareRequest, registerInterface, registerKeyAction, registerKeyAction, registerKeyAction, registerKeyEvent, registerKeyEvent, registerKeyFormEvent, registerMouseAction, registerMouseEventDescription, registerRequestTarget, registerTarget, removeTarget, removeTarget, renderJSInclude, renderJSInclude, renderKeyBoardScript, serverSideInclude, setAjaxRequest, setApplicationAttribute, setClientTimeZoneInfo, setFocusControlID, setLocalThreadRequest, setLocalThreadResponse, setRequest, unregisterInterface, unregisterRequestTargetattach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getFormName, getFormTarget, getID, onExternalRequest, onFormEvent, onRequest, setExternalFormTarget, updateExternalFormTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientTimeZone, getClientTimeZoneInfogetBasePath, getConfigURL, getInitParameter, getXMLConfigDoc, localize, localize1, localize2, localize3getApplicationAttribute, setApplicationAttributegetRegisteredInterface, registerInterface, unregisterInterfacegetBasePath, getInitParameter, getXMLConfigDoc, localize, localize1, localize2, localize3protected static final String WINDOW_POSITIONS_APP_SETTINGS_NAME
public static final String LITERAL_PLACEHOLDER_TODAY
public static final String LITERAL_PLACEHOLDER_USER_ID
public static final String LITERAL_PLACEHOLDER_USER_NAME
public static final String LITERAL_PLACEHOLDER_USER_LONG_NAME
public static final String LITERAL_PLACEHOLDER_USER_SHORT_NAME
public static final String LITERAL_PLACEHOLDER_USER_DISPLAY_NAME
public static final String CONFIGNODE_URLOVERWRITE
UrlOverwritepublic static final String CONFIGNODE_SERVER
Serverpublic static final String CONFIGNODE_BASE
Basepublic static final String PREFIX_DRAGDROP
protected OwClipboard m_clipboard
public OwMainAppContext()
protected OwConfiguration createConfiguration()
protected OwClipboard createClipboard()
public String getCurrentMasterPluginID()
public String getSafeCurrentMasterPluginStyleClassID()
public OwMasterView getCurrentMasterView()
public void onActivateMasterPlugin(OwMasterView view_p) throws Exception
view_p - OwMasterViewExceptionpublic OwDialogManager getDialogManager()
getDialogManager in class OwAppContextpublic Throwable getError()
public void setError(Throwable exception_p)
public Collection getMessages()
public void postMessage(String sMessage_p)
sMessage_p - public void init(OwAppContext oldcontext_p) throws Exception
init in class OwAppContextoldcontext_p - OwAppContext old context from previous session, used to copy flags, locals. Optional, can be nullExceptionprotected void initializeUserOperationListeners()
throws Exception
Exceptionprotected void init()
throws Exception
init in class OwEventTargetExceptionpublic void onLogin(OwBaseUserInfo user_p) throws OwConfigurationException
onLogin in interface OwNetworkContextOwConfigurationExceptionpublic Locale getLocale()
getLocale in interface OwRepositoryContextgetLocale in interface OwMandatorManagerContextgetLocale in class OwAppContextpublic void setLocale(Locale locale_p)
setLocale in class OwAppContextpublic boolean isAllowed(int iCategory_p,
String strFunctionName_p)
throws Exception
iCategory_p - Category of the function in question, e.g. "MainPlugin", "TaskFunction", "SearchTemplate"...strFunctionName_p - Name of Function or PluginExceptionpublic void loginInit()
throws Exception
loginInit in class OwAppContextExceptionpublic OwNetwork<?> getNetwork()
getNetwork in interface OwAOContextpublic OwHistoryManager getHistoryManager()
public OwRoleManager getRoleManager()
public OwFieldManager createFieldManager() throws Exception
Exceptionpublic OwConfiguration getConfiguration()
getConfiguration in interface OwAOContextpublic OwBaseConfiguration getBaseConfiguration()
getBaseConfiguration in interface OwHistoryManagerContextpublic OwSettings getSettings()
public OwCredentials getCredentials() throws Exception
Exceptionpublic boolean isLogin()
throws Exception
isLogin in class OwAppContextExceptionpublic boolean isContainerBasedAuthenticated()
throws Exception
isContainerBasedAuthenticated in class OwAppContextExceptionpublic void logout()
throws Exception
logout in class OwAppContextExceptionpublic void onSessionTimeOut(javax.servlet.http.HttpSession httpSession_p)
httpSession_p - public String getDesignDir() throws Exception
OwAppContextgetDesignDir in class OwAppContextExceptionpublic String getDesignURL() throws Exception
OwAppContextgetDesignURL in class OwAppContextExceptionpublic String getLocalEventURL(String strLangID_p)
strLangID_p - String ID of the language e.g.: "de"public void openHelp(String sHelppath_p) throws Exception
sHelppath_p - String path to the help pageExceptionpublic boolean handleRequest(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p)
throws Exception
handleRequest in class OwAppContextrequest_p - HttpServletRequestresponse_p - HttpServletResponseExceptionpublic void addFinalScript(OwScript script_p)
script_p - The new script to be added.public boolean addUniqueFinalScript(OwScript script_p)
script_p - - the OwScript objecttrue if the script was not added before in scripts list.public void addFinalScript(String strScript_p)
strScript_p - String custom java script code (without public void clearFinalScript()
public String getFinalScript()
public String getSessionDisplayName()
getSessionDisplayName in class OwAppContextpublic OwBaseUserInfo getUserInfo()
getUserInfo in class OwAppContextpublic void dump(Writer w_p) throws Exception
dump in class OwAppContextw_p - HTML WriterExceptionpublic OwClipboard getClipboard()
public String getConfigurationName()
getConfigurationName in interface OwRepositoryContextgetConfigurationName in interface OwMandatorManagerContextpublic String localizeLabel(String strName_p)
localizeLabel in interface OwRepositoryContextlocalizeLabel in interface OwMandatorManagerContextstrName_p - name e.g. attribute name to look forpublic boolean hasLabel(String strName_p)
hasLabel in interface OwRepositoryContexthasLabel in interface OwMandatorManagerContextstrName_p - name e.g. attribute name to look forpublic void registerPluginKeyEvent(String strPluginID_p, String strEventURL_p, String strFormName_p, String strDescription_p) throws Exception
strPluginID_p - String ID of the plugin to registerstrEventURL_p - String event URL of plugin to openstrFormName_p - String optional form namestrDescription_p - String description for key tableExceptionpublic int getSafeIntAppSetting(String strName_p, int iDefault_p)
strName_p - name of property to retrieveiDefault_p - default int valuepublic String getSafeStringAppSetting(String strName_p, String strDefault_p)
strName_p - name of property to retrievestrDefault_p - default String valuepublic Collection getSafeListAppSetting(String strName_p)
strName_p - name of property to retrievepublic boolean getSafeBooleanAppSetting(String strName_p, boolean default_p)
strName_p - name of property to retrievedefault_p - Object if setting is not defined in plugin descriptorpublic boolean useJS_DateControl()
public String getDateFormatString()
public String getTimeFormatString()
public String getDateFormatStringWithoutTime()
public String getDateFormatStringWithoutDate()
public int getMaxClipboardSize()
public Collection getClipboardAvailableDocFunctionIds()
Collection - a collection containing plugin IDs.public boolean doShowClipboard()
public boolean doShowWildCardDescriptions()
public boolean isUseHtml5DragAndDrop()
public int getPageSizeForLists()
public String getStartupID()
public int getMaxSortCriteriaCount()
public OwWindowPositions getWindowPositions()
public String getWindowPositionsSaveURL()
public void onSaveWindowPositions(javax.servlet.http.HttpServletRequest request_p)
throws Exception
Exceptionpublic void deleteTempDir(String strDir_p)
deleteTempDir in interface OwRepositoryContextdeleteTempDir in interface OwMandatorManagerContextstrDir_p - String directorypublic String createTempDir(String strPrefix_p) throws OwConfigurationException
createTempDir in interface OwRepositoryContextcreateTempDir in interface OwMandatorManagerContextstrPrefix_p - String prefix to use for nameOwConfigurationException@Deprecated public String getDragAndDropUploadDir()
@Deprecated public void clearDragDropUploadDir() throws Exception
Exceptionpublic void addDNDImportedDocumentToStack(OwDocumentImportItem importedDocument_p)
OwDocumentImportItem to the stack of DND
imported documents.importedDocument_p - the new OwDocumentImportItem to add to the stackpublic OwDocumentImportItem getDNDImportedDocument(int i_p)
i_pth imported document from the DND document import stack.i_p - the (0-based) index of the imported document to returni_pth imported document from the DND document import stackpublic int getDNDImportedDocumentsCount()
public void releaseDNDImportedDocuments()
throws Exception
Exceptionpublic String getDNDDocumentImportTempDir() throws OwConfigurationException
OwConfigurationExceptionpublic int getNextDNDDocumentImportFileID()
public OwAttributeBagWriteable createUserAttributeBag(String sName_p) throws Exception
sName_p - String name of the attribute bagExceptionpublic OwBaseUserInfo getCurrentUser() throws Exception
OwHistoryManagerContextgetCurrentUser in interface OwNetworkContextgetCurrentUser in interface OwHistoryManagerContextgetCurrentUser in interface OwMandatorManagerContextExceptionpublic String getClientID()
getClientID in interface OwRepositoryContextgetClientID in interface OwMandatorManagerContextpublic String getDefaultFolderClassName()
getDefaultFolderClassName in interface OwNetworkContextpublic String getClientWildCard(int wildcardtype_p)
getClientWildCard in interface OwRepositoryContextwildcardtype_p - as defined in OwWildCardDefinition.WILD_CARD_TYPE_...public OwRepositoryContext.OwConfigChangeEventListener getConfigChangeEvent()
public void addConfigChangeEventListener(OwRepositoryContext.OwConfigChangeEventListener listener_p)
addConfigChangeEventListener in interface OwRepositoryContextlistener_p - public void removeConfigChangeEventListener(OwRepositoryContext.OwConfigChangeEventListener listener_p)
listener_p - public String getMandatorID()
getMandatorID in interface OwRepositoryContextpublic OwMandatorManager getMandatorManager()
getMandatorManager in interface OwRepositoryContextOwMandatorManagerpublic OwMandator getMandator()
getMandator in interface OwRepositoryContextpublic org.springframework.jdbc.core.JdbcTemplate getJDBCTemplate()
OwRepositoryContextgetJDBCTemplate in interface OwRepositoryContextpublic Object resolveLiteralPlaceholder(String contextname_p, String placeholdername_p) throws Exception
OwNetworkContextresolveLiteralPlaceholder in interface OwNetworkContextcontextname_p - String name of calling context, e.g. searchtemplate nameplaceholdername_p - String name of placeholder to retrieve value forObjectExceptionprotected URL getAppContextResource(String resourcePath_p)
getAppContextResource in class OwAppContextresourcePath_p - the classpath sub-path to retrieveURL of the requested resource relative to this class classpathpublic OwComboboxRenderer createComboboxRenderer(OwComboModel model_p, String strID_p, OwFieldDefinition fieldDefinition_p, OwFieldProvider fieldProvider_p, OwString description_p)
model_p - - the OwComboModel objectstrID_p - - the HTML id of this combo.fieldDefinition_p - - the OwFieldDefinition objectfieldProvider_p - - the OwFieldProvider objectdescription_p - - the OwString description of the field .
If null the description of the field definition will be used.OwComboboxRenderer object.public void addAjaxUpdateContainer(String containerId_p, String ajaxEventHandler_p)
containerId_p - - the HTML container idajaxEventHandler_p - - the AJAX handlerpublic String getAjaxUpdateURL(String containerId_p)
null for the given HTML container ID.containerId_p - - the HTML container idnull for the given HTML container ID.public OwInfoProviderRegistry getInfoProviderRegistry()
OwAppContextgetInfoProviderRegistry in class OwAppContextpublic void resetMessages()
public void addUserOperationListener(OwUserOperationListener listener_p)
OwUserOperationExecutoraddUserOperationListener in interface OwUserOperationExecutorlistener_p - - the listener to be added.public void removeUserOperationListener(OwUserOperationListener listener_p)
OwUserOperationExecutorremoveUserOperationListener in interface OwUserOperationExecutorpublic OwComboboxRenderer createComboboxRenderer()
OwComboboxRendererFactorycreateComboboxRenderer in interface OwComboboxRendererFactorypublic List getSessionCookieNames()
public String getSessionCookieData(javax.servlet.http.HttpServletRequest httpServletRequest)
protected String createServerUrl(javax.servlet.http.HttpServletRequest req_p)
OwAppContextcreateServerUrl in class OwAppContextreq_p - HttpRequestprotected String createBaseUrl(javax.servlet.http.HttpServletRequest req_p)
OwAppContextcreateBaseUrl in class OwAppContextreq_p - HttpServletRequestpublic String getConfigPath()
OwMandatorManagerContextgetConfigPath in interface OwMandatorManagerContextprotected OwAOProvider createAOProvider() throws OwConfigurationException
createAOProvider in class OwAppContextOwConfigurationExceptionpublic boolean isRoleManaged()
isRoleManaged in interface OwAOContextCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.