public class OwSettingsPropertyBPMProxy extends OwSettingsPropertyBaseImpl implements OwDialog.OwDialogListener
The proxy settings for BPM.
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
ITEM_PREFIX, ITEM_QUERY_KEY, m_defaultValue, m_fList, m_strError, m_value
m_externalFormEventTarget, m_propertyDefinitionNode, m_strSetName
ITEM_VALUE_NODE
Constructor and Description |
---|
OwSettingsPropertyBPMProxy() |
Modifier and Type | Method and Description |
---|---|
protected Object |
createSingleClonedValue(Object oSingleValue_p)
create a clone out of the given single property value
|
protected String |
getAbsentUserID() |
protected OwWorkitemRepository |
getBPMRepository() |
protected Object |
getDefaultListItemValue()
overridable to create a default value for list properties
|
protected String |
getUserDisplayName(String sID_p)
overridable to get the displayname for a given user object ID
|
Object |
getValue()
get current value of property
|
Node |
getValueNode(Document doc_p)
return the property value as a DOM Node for serialization
|
protected void |
init()
init the target after the context is set.
|
void |
init(Node propertyDefinitionNode_p,
Node valueNode_p,
String strSetName_p)
set current value of property, to be overridden
|
void |
insertFormField(Writer w_p)
insert the property into a HTML form for editing
|
protected void |
insertFormValue(Writer w_p,
Object value_p,
String strID_p,
int iIndex_p)
overridable to insert a single value into a edit HTML form
|
void |
onDialogClose(OwDialog dialogView_p)
called when user select dialog closes
|
void |
onSelectAbsentPerson(javax.servlet.http.HttpServletRequest request_p)
called when user clicks select button
|
void |
onSelectProxyPerson(javax.servlet.http.HttpServletRequest request_p)
called when user clicks select button
|
void |
onUpdate(OwEventTarget caller_p,
int code_p,
Object param_p)
called by the framework to update the view when OwDocument.Update was called
NOTE: We can not use the onRender method to update,
because we do not know the call order of onRender.
|
protected void |
setSingleValueFromRequest(javax.servlet.http.HttpServletRequest request_p,
String strID_p,
OwWorkitemRepository.OwProxyInfo info_p)
overridable to apply changes on a submitted form
|
boolean |
updateExternalFormTarget(javax.servlet.http.HttpServletRequest request_p,
boolean fSave_p)
update the target after a form event, so it can set its form fields
|
appendSingleValueNode, canAdd, createValue, createValueList, extractIDIndex, getMaxListSize, getPropertyError, getSafePropertyError, getSingleValue, getSingleValueFromRequest, hasError, insertLabel, insertLabelValue, isList, isModified, onAdd, onDelete, saved, setDefault, setValue, toString, writeAddNewItemButton, writeDeleteButton
getDisplayName, getFormName, getFormTarget, getHelpPath, getName, getPropertyDefinitionNode, isEditable, isUser, setExternalFormTarget
attach, detach, disableRequestListener, enableRequestListener, getAjaxEventURL, getContext, getEventURL, getFormEventFunction, getFormEventURL, getID, onExternalRequest, onFormEvent, onRequest
public void init(Node propertyDefinitionNode_p, Node valueNode_p, String strSetName_p) throws Exception
init
in interface OwSettingsProperty
init
in class OwSettingsPropertyBaseImpl
propertyDefinitionNode_p
- the node which defines the property in the plugin descriptors settingvalueNode_p
- the node with the current valuestrSetName_p
- name of the property set for which the property is createdException
protected void init() throws Exception
OwEventTarget
init
in class OwAbstractSettingsPropertyControl
Exception
public Node getValueNode(Document doc_p)
OwSettingsPropertyBaseImpl
getValueNode
in interface OwSettingsProperty
getValueNode
in class OwSettingsPropertyBaseImpl
doc_p
- DOM Document to add toprotected OwWorkitemRepository getBPMRepository() throws Exception
Exception
public Object getValue()
getValue
in interface OwSettingsProperty
getValue
in class OwSettingsPropertyBaseImpl
public void insertFormField(Writer w_p) throws Exception
insertFormField
in class OwSettingsPropertyBaseImpl
w_p
- Writer to write HTML code toException
protected String getUserDisplayName(String sID_p)
sID_p
- protected void insertFormValue(Writer w_p, Object value_p, String strID_p, int iIndex_p) throws Exception
insertFormValue
in class OwSettingsPropertyBaseImpl
w_p
- Writer to write HTML code tovalue_p
- the property value to editstrID_p
- String the ID of the HTML element for use in onApplyiIndex_p
- int Index of item if it is a listException
public void onSelectAbsentPerson(javax.servlet.http.HttpServletRequest request_p) throws Exception
request_p
- HttpServletRequestException
public void onSelectProxyPerson(javax.servlet.http.HttpServletRequest request_p) throws Exception
request_p
- HttpServletRequestException
public boolean updateExternalFormTarget(javax.servlet.http.HttpServletRequest request_p, boolean fSave_p) throws Exception
updateExternalFormTarget
in class OwSettingsPropertyBaseImpl
request_p
- HttpServletRequestfSave_p
- boolean true = save the changes of the form data, false = just update the form data, but do not saveException
protected void setSingleValueFromRequest(javax.servlet.http.HttpServletRequest request_p, String strID_p, OwWorkitemRepository.OwProxyInfo info_p) throws Exception
request_p
- HttpServletRequest with form data to update the propertystrID_p
- String the HTML form element ID of the requested valueinfo_p
- OwWorkitemRepository.OwProxyInfoException
protected Object createSingleClonedValue(Object oSingleValue_p)
createSingleClonedValue
in class OwSettingsPropertyBaseImpl
oSingleValue_p
- single Object valueprotected Object getDefaultListItemValue()
getDefaultListItemValue
in class OwSettingsPropertyBaseImpl
public void onDialogClose(OwDialog dialogView_p) throws Exception
onDialogClose
in interface OwDialog.OwDialogListener
dialogView_p
- the Dialog that have to be closed.Exception
public void onUpdate(OwEventTarget caller_p, int code_p, Object param_p) throws Exception
OwUpdateTarget
onUpdate
in interface OwUpdateTarget
caller_p
- OwEventTarget target that called updatecode_p
- int optional reason codeparam_p
- Object optional parameter representing the refresh, depends on the value of iCode_p, can be nullException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.