public class OwEditDocumentPropertiesFunction
extends com.wewebu.ow.server.app.OwDocumentFunction
implements com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Implementation of the Document edit properties plugin.
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 |
---|---|
static String |
ELEM_ACL_VIEW
Access rights view configuration entry
|
static String |
ELEM_AUTO_OPEN
Auto open configuration for Viewer
|
static String |
ELEM_FILED_VIEW
Configuration to show filed in object information
|
static String |
ELEM_HISTORY_VIEW
History/Audit view configuration entry
|
static String |
ELEM_LINKS_VIEW
Configuration for Links view
|
static String |
ELEM_MOD_HANDLER
Modifiablilty hanlder configuration entry
|
static String |
ELEM_PROP_VIEW
Configuration to show user modifiable properties view
|
static String |
ELEM_SYS_PROP_VIEW
Configuration if system properties view should exist
|
static String |
ELEM_VERSIONS_VIEW
VersionSeries information view
|
Constructor and Description |
---|
OwEditDocumentPropertiesFunction() |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateReadOnlyViewMask(com.wewebu.ow.server.util.OwXMLUtil confNode)
Calculate the read-only views as mask mapped into an integer.
|
protected int |
calculateViewMask(com.wewebu.ow.server.util.OwXMLUtil configNode)
Calculation of visible views, which will/should be displayed in the dialog.
|
protected OwEditPropertiesDialogBuilder |
createDialogBuilder()
Create a builder instance for OwEditPropertiesDialog creation.
|
protected OwEditPropertiesDialog |
createPropertiesDialog(Collection objects_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p,
int iMaxElementSize_p,
Collection versionColumnInfo_p,
com.wewebu.ow.server.field.OwSearchTemplate historyViewSearchTemplate_p,
Collection historyViewColumnInfo_p,
Collection batchIndexProperties_p,
com.wewebu.ow.server.ecm.OwObjectLinkRelation relationSplit_p,
boolean displayTypedList_p,
Collection<String> linkClassNames_p)
overridable factory method to create the dialog
|
String |
getBigIcon()
get the URL to the info icon
|
String |
getIcon()
get the URL to the info icon
|
protected org.alfresco.wd.ui.conf.OwPropertyListConfiguration |
getPropertyListConfiguration()
Getter for available PropertyList configuration.
|
void |
init(com.wewebu.ow.server.util.OwXMLUtil node_p,
com.wewebu.ow.server.app.OwMainAppContext context_p) |
void |
onClickEvent(com.wewebu.ow.server.ecm.OwObject oObject_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
event called when user clicked the label / icon
|
void |
onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p) |
void |
onMultiselectClickEvent(Collection objects_p,
com.wewebu.ow.server.ecm.OwObject oParent_p,
com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p)
event called when user clicked the plugin for multiple selected items
|
void |
onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p,
int code_p,
Object param_p) |
addHistoryEvent, addHistoryEvent, getBigDefaultIconHTML, getBigIconHTML, getColumnTitle, getContextMenu, getDefaultIconHTML, getDefaultLabel, getDisplayNameFromUserId, getEnableColumnClickEvent, getIconHTML, getLabel, getMultiselect, getNeedParent, getObjectInstance, getPluginType, getRetrievalPropertyNames, getShowInEditViews, isEnabled, isEnabled, isObjectTypeSupported, onColumnClickEvent
getConfigNode, getContext, getDragDropProperties, getEventManager, getHelpPath, getName, getNoEvent, getPluginID, getPluginTitle, getPluginTypeDisplayName, getSafeSetting, getSupportedObjectClassesFromDescriptor, getSupportedObjectTypesFromDescriptor, getTooltip, isDragDropTarget, isObjectClassSupported, setSafeSetting
public static final String ELEM_PROP_VIEW
public static final String ELEM_SYS_PROP_VIEW
public static final String ELEM_VERSIONS_VIEW
public static final String ELEM_HISTORY_VIEW
public static final String ELEM_FILED_VIEW
public static final String ELEM_ACL_VIEW
public static final String ELEM_LINKS_VIEW
public static final String ELEM_AUTO_OPEN
public static final String ELEM_MOD_HANDLER
public void init(com.wewebu.ow.server.util.OwXMLUtil node_p, com.wewebu.ow.server.app.OwMainAppContext context_p) throws Exception
init
in class com.wewebu.ow.server.app.OwDocumentFunction
Exception
public String getIcon() throws Exception
getIcon
in interface com.wewebu.ow.server.app.OwPlugin
getIcon
in class com.wewebu.ow.server.app.OwFunction
Exception
public String getBigIcon() throws Exception
getBigIcon
in class com.wewebu.ow.server.app.OwFunction
Exception
public void onClickEvent(com.wewebu.ow.server.ecm.OwObject oObject_p, com.wewebu.ow.server.ecm.OwObject oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p) throws Exception
onClickEvent
in class com.wewebu.ow.server.app.OwDocumentFunction
oObject_p
- OwObject where event was triggeredoParent_p
- Parent which listed the ObjectrefreshCtx_p
- OwFunctionRefreshContext callback interface for the function plugins to signal refresh events to clients, can be null if no refresh is neededException
public void onMultiselectClickEvent(Collection objects_p, com.wewebu.ow.server.ecm.OwObject oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p) throws Exception
onMultiselectClickEvent
in class com.wewebu.ow.server.app.OwDocumentFunction
objects_p
- Collection of OwObjectoParent_p
- Parent which listed the ObjectsrefreshCtx_p
- OwClientRefreshContext callback interface for the function plugins to signal refresh events to clients, can be null if no refresh is neededException
protected OwEditPropertiesDialog createPropertiesDialog(Collection objects_p, com.wewebu.ow.server.ecm.OwObject oParent_p, com.wewebu.ow.server.app.OwClientRefreshContext refreshCtx_p, int iMaxElementSize_p, Collection versionColumnInfo_p, com.wewebu.ow.server.field.OwSearchTemplate historyViewSearchTemplate_p, Collection historyViewColumnInfo_p, Collection batchIndexProperties_p, com.wewebu.ow.server.ecm.OwObjectLinkRelation relationSplit_p, boolean displayTypedList_p, Collection<String> linkClassNames_p) throws Exception
objects_p
- oParent_p
- refreshCtx_p
- iMaxElementSize_p
- versionColumnInfo_p
- historyViewSearchTemplate_p
- historyViewColumnInfo_p
- batchIndexProperties_p
- Collection of batch index properties each property will be copied to the next paneOwEditPropertiesDialog
Exception
protected OwEditPropertiesDialogBuilder createDialogBuilder()
public void onDialogClose(com.wewebu.ow.server.ui.OwDialog dialogView_p) throws Exception
onDialogClose
in interface com.wewebu.ow.server.ui.OwDialog.OwDialogListener
Exception
public void onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p, int code_p, Object param_p) throws Exception
onUpdate
in interface com.wewebu.ow.server.ui.OwUpdateTarget
Exception
protected org.alfresco.wd.ui.conf.OwPropertyListConfiguration getPropertyListConfiguration()
init(OwXMLUtil, OwMainAppContext)
method.protected int calculateViewMask(com.wewebu.ow.server.util.OwXMLUtil configNode) throws Exception
configNode
- OwXMLUtilException
protected int calculateReadOnlyViewMask(com.wewebu.ow.server.util.OwXMLUtil confNode) throws com.wewebu.ow.server.exceptions.OwException
confNode
- com.wewebu.ow.server.exceptions.OwException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.