public class OwRecordSetView
extends com.wewebu.ow.server.ui.OwView
View Module to store and display an object set. Used for the recent record list.
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 | Class and Description |
---|---|
static class |
OwRecordSetView.OwObjectSetEntry
Class defining a single object reference instance.
|
Modifier and Type | Field and Description |
---|---|
protected static String |
BASE_NODE_NODE_NAME
base node name for the serialization XML DOM document
|
protected static String |
DISPLAY_NAME_NODE_NAME
node name for display name serialization in DOM node
|
protected static String |
DMS_ID_NODE_NAME
node name for DMSID serialization in DOM node
|
protected int |
m_iMaxRecentRecordSize |
protected List |
m_recentobjectlist
map that contains OwObjectSetEntrys, keeps order
|
protected static String |
OBJECT_ENTRY_NODE_NAME
node name for object entry serialization in DOM node
|
static String |
PLUGIN_SETTING_RECENT_OBJECT_LIST
setting name for the recent object list
|
static String |
QUERY_KEY_OBJECT_HASHCODE
query string key for the hashcode parameter
|
static String |
QUERY_KEY_OPEN_OBJECT
query string key for the open object event parameter
|
Constructor and Description |
---|
OwRecordSetView() |
Modifier and Type | Method and Description |
---|---|
void |
addObject(com.wewebu.ow.server.ecm.OwObject object_p,
String strSubFolderPath_p)
add an object to the set
|
protected void |
addRecentEntry(OwRecordSetView.OwObjectSetEntry newEntry_p)
Add an entry to recent entry list.
|
OwRecordSetView.OwObjectSetEntry |
findObjectEntry(com.wewebu.ow.server.ecm.OwObject object_p) |
List |
getRecentObjectList()
getter for the private recent object list
|
protected void |
init()
init the view after the context is set.
|
protected void |
load()
load list from ECM system
|
void |
onOpenObject(javax.servlet.http.HttpServletRequest request_p)
event called when user clicked on a object link
|
protected void |
onRender(Writer w_p)
called when the view should create its HTML content to be displayed
|
void |
onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p,
int iCode_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.
|
void |
removeObjectEntry(com.wewebu.ow.server.ecm.OwObject object_p) |
protected void |
save()
save list to ECM system
|
activate, addView, detach, getBreadcrumbPart, getDocument, getExternalFormEventTarget, getFormName, getFormTarget, getIcon, getIterator, getMaximizeView, getParent, getRenderedNamedRegion, getRenderedRegion, getTitle, getViewList, isFormTargetExternal, isNamedRegion, isRegion, isShowMaximized, isShowMinimized, isShowNormal, onActivate, render, renderHTMLFormular, renderNamedRegion, renderRegion, serverSideDesignInclude, serverSideInclude, setDocument, setExternalFormTarget, setMaximizeView, setParent, showMaximized, showMinimized, showNormal, usesFormWithAttributes
public static final String PLUGIN_SETTING_RECENT_OBJECT_LIST
protected static final String DISPLAY_NAME_NODE_NAME
protected static final String DMS_ID_NODE_NAME
protected static final String OBJECT_ENTRY_NODE_NAME
protected static final String BASE_NODE_NODE_NAME
public static final String QUERY_KEY_OBJECT_HASHCODE
public static final String QUERY_KEY_OPEN_OBJECT
protected List m_recentobjectlist
protected int m_iMaxRecentRecordSize
protected void init() throws Exception
init
in class com.wewebu.ow.server.ui.OwView
Exception
public void onUpdate(com.wewebu.ow.server.ui.OwEventTarget caller_p, int iCode_p, Object param_p) throws Exception
onUpdate
in interface com.wewebu.ow.server.ui.OwUpdateTarget
onUpdate
in class com.wewebu.ow.server.ui.OwView
caller_p
- OwEventTarget target that called updateiCode_p
- int optional reason codeparam_p
- Object optional parameter representing the refresh, depends on
the value of iCode_p, can be nullException
public OwRecordSetView.OwObjectSetEntry findObjectEntry(com.wewebu.ow.server.ecm.OwObject object_p) throws Exception
Exception
public void removeObjectEntry(com.wewebu.ow.server.ecm.OwObject object_p) throws Exception
Exception
public void addObject(com.wewebu.ow.server.ecm.OwObject object_p, String strSubFolderPath_p) throws Exception
object_p
- OwObject to add to the setException
protected void addRecentEntry(OwRecordSetView.OwObjectSetEntry newEntry_p)
newEntry_p
- - the entry to be added.public void onOpenObject(javax.servlet.http.HttpServletRequest request_p) throws Exception
request_p
- a HttpServletRequest
Exception
public List getRecentObjectList()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.