public class OwRecordRecordFunctionView
extends com.wewebu.ow.server.ui.OwView
implements com.wewebu.ow.server.app.OwClientRefreshContext
View to display the record functions for the opened record.
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
Modifier and Type | Field and Description |
---|---|
protected List |
m_DocumentFunctionPluginList
list of Document function plugins which have been instantiated
|
protected List |
m_recordFunctionPluginList
list to the record function plugins
|
protected static String |
QUERY_KEY_PLUGIN
query string key for the plugin index
|
static String |
UPDATE_AJAX_EVENT_NAME |
Constructor and Description |
---|
OwRecordRecordFunctionView() |
Modifier and Type | Method and Description |
---|---|
com.wewebu.ow.server.ecm.OwObject |
getCurrentRootFolder() |
com.wewebu.ow.server.ecm.OwObject |
getCurrentSubFolderObject() |
com.wewebu.ow.server.ecm.OwObject |
getCurrentSubFolderObjectParent() |
String |
getDocumentFunctionEventURL(int iPlugIndex_p)
get the event URL for document plugin functions
|
com.wewebu.ow.server.ecm.OwObject |
getDocumentFunctionWorkobject()
get the folder object that the document functions should work on
can be either root or selected folder
|
com.wewebu.ow.server.ecm.OwObject |
getDocumentFunctionWorkobjectParent()
get the parent folder of the current folder object that the document functions should work on
can be
null if no parent is available |
List |
getDocumentFuntionPlugins() |
boolean |
getIsPluginEnabled(com.wewebu.ow.server.app.OwDocumentFunction docFunctionPlugin_p)
Check if the DocumentFunction is enabled
|
boolean |
getIsPluginEnabled(com.wewebu.ow.server.app.OwRecordFunction recordFunctionPlugin_p)
Check if the RecordFunctionPlugin is enabled
|
String |
getRecordFunctionEventURL(int iPlugIndex_p)
get the event URL for record plugin functions
|
List |
getRecordFuntionPlugins() |
void |
init() |
void |
onAjaxUpdate(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p)
Handler for AJAX request to update the content.
|
void |
onClientRefreshContextUpdate(int iReason_p,
Object param_p)
implementation of the OwFunction.OwFunctionRefreshContext interface
Called from a plugin to inform its client and cause refresh of display data
|
void |
onDocumentFunctionPluginEvent(javax.servlet.http.HttpServletRequest request_p)
event called when user clicked a plugin link
|
void |
onRecordFunctionPluginEvent(javax.servlet.http.HttpServletRequest request_p)
event called when user clicked a plugin link
|
protected void |
onRender(Writer w_p) |
boolean |
showDisabledRecordFunctions()
flag indicating if disabled record functions should be displayed disabled
|
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, onUpdate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
public static final String UPDATE_AJAX_EVENT_NAME
protected static final String QUERY_KEY_PLUGIN
protected List m_recordFunctionPluginList
protected List m_DocumentFunctionPluginList
public void init() throws Exception
init
in class com.wewebu.ow.server.ui.OwView
Exception
public boolean showDisabledRecordFunctions()
public List getRecordFuntionPlugins()
public List getDocumentFuntionPlugins()
public String getDocumentFunctionEventURL(int iPlugIndex_p)
iPlugIndex_p
- String
public String getRecordFunctionEventURL(int iPlugIndex_p)
iPlugIndex_p
- String
public boolean getIsPluginEnabled(com.wewebu.ow.server.app.OwDocumentFunction docFunctionPlugin_p) throws Exception
docFunctionPlugin_p
- docFunctionPlugin_p to be checkedException
public boolean getIsPluginEnabled(com.wewebu.ow.server.app.OwRecordFunction recordFunctionPlugin_p) throws Exception
recordFunctionPlugin_p
- RecordFunctionPlugin to be checkedException
public com.wewebu.ow.server.ecm.OwObject getCurrentSubFolderObject()
public com.wewebu.ow.server.ecm.OwObject getCurrentSubFolderObjectParent()
public com.wewebu.ow.server.ecm.OwObject getCurrentRootFolder()
protected void onRender(Writer w_p) throws Exception
onRender
in class com.wewebu.ow.server.ui.OwView
w_p
- WriterException
public com.wewebu.ow.server.ecm.OwObject getDocumentFunctionWorkobject()
public com.wewebu.ow.server.ecm.OwObject getDocumentFunctionWorkobjectParent()
null
if no parent is availablepublic void onDocumentFunctionPluginEvent(javax.servlet.http.HttpServletRequest request_p) throws Exception
request_p
- HttpServletRequestException
public void onRecordFunctionPluginEvent(javax.servlet.http.HttpServletRequest request_p) throws Exception
request_p
- HttpServletRequestException
public void onClientRefreshContextUpdate(int iReason_p, Object param_p) throws Exception
onClientRefreshContextUpdate
in interface com.wewebu.ow.server.app.OwClientRefreshContext
iReason_p
- reason as defined with OwClientRefreshContext.REFRESH_...param_p
- Object optional parameter representing the refresh, depends on the value of iReason_p, can be nullException
public void onAjaxUpdate(javax.servlet.http.HttpServletRequest request_p, javax.servlet.http.HttpServletResponse response_p) throws Exception
request_p
- - the AJAX request object.response_p
- - the responseException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.