|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.doui.processaction.ProcessActionHandler<TableSource> lumis.doui.table.BaseTableDataProcessActionHandler lumis.doui.table.TableUpdateDataProcessActionHandler lumis.content.table.ContentTableUpdateDataProcessActionHandler
@StableMinor(version="4.1", sinceVersion="4.0") public class ContentTableUpdateDataProcessActionHandler
This class is responsible for the generic updating process in the Content
context. It executes the update query generated by
ContentQueryBuilder
and calls MetaDataController
and
so it will handle meta data information appropriately.
When versioning is enabled, this class is
responsible for modifying the parameters and use ContentQueryBuilder
to build a insertion query, instead of update. It also is responsible for
updating search index according to the changes made to the content.
Field Summary | |
---|---|
protected String |
newVersionPrimaryKeyValue
|
protected String |
previousLocaleId
|
protected String |
previousNotificationItemId
|
protected String |
previousVersionPrimaryKeyValue
|
protected String |
primaryKeyFieldId
|
protected String |
versionActiveFieldId
|
Fields inherited from class lumis.doui.table.TableUpdateDataProcessActionHandler |
---|
queryBuilder |
Constructor Summary | |
---|---|
ContentTableUpdateDataProcessActionHandler()
|
Method Summary | |
---|---|
protected QueryBase |
buildQuery()
Builds query using ContentQueryBuilder created. |
protected QueryBuilder |
createQueryBuilder()
Creates ContentQueryBuilder object for building update (or
insert) query. |
protected void |
execute(QueryBase queryBase)
Executes the query given. |
void |
init(Node processActionNode,
ProcessActionContainer processActionContainer)
Initiates the process action handler object. |
protected void |
postUpdate()
Executes all post update (or post insert, if using versioning) necessary to manage meta data after editing the content, including calling MetaDataController . |
protected void |
sendPreNotifications()
Sends pre-execution notifications to PortalEventManager . |
protected void |
sendRenderDataChangedNotification()
Notifies observers that the render data may have changed. |
Methods inherited from class lumis.doui.table.TableUpdateDataProcessActionHandler |
---|
doUpdate, indexData, preUpdate, processAction, processActionWithoutResponse, sendPostNotifications |
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler |
---|
addToIndex, createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, removeFromIndex, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification |
Methods inherited from class lumis.doui.processaction.ProcessActionHandler |
---|
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String versionActiveFieldId
protected String primaryKeyFieldId
protected String previousVersionPrimaryKeyValue
protected String newVersionPrimaryKeyValue
protected String previousNotificationItemId
protected String previousLocaleId
Constructor Detail |
---|
public ContentTableUpdateDataProcessActionHandler()
Method Detail |
---|
public void init(Node processActionNode, ProcessActionContainer processActionContainer) throws PortalException
init
in interface IProcessActionHandler
init
in class ProcessActionHandler<TableSource>
processActionNode
- processActionContainer
-
PortalException
protected void execute(QueryBase queryBase) throws PortalException
execute
in class TableUpdateDataProcessActionHandler
queryBase
-
PortalException
protected void postUpdate() throws PortalException
MetaDataController
.
postUpdate
in class TableUpdateDataProcessActionHandler
PortalException
protected QueryBuilder createQueryBuilder() throws PortalException
ContentQueryBuilder
object for building update (or
insert) query.
createQueryBuilder
in class BaseTableDataProcessActionHandler
PortalException
protected QueryBase buildQuery() throws PortalException
ContentQueryBuilder
will generate a new primary key for the
inserted row. After that the value is reinserted as the new primary key.
buildQuery
in class TableUpdateDataProcessActionHandler
PortalException
protected void sendPreNotifications() throws PortalException
PortalEventManager
.
sendPreNotifications
in class TableUpdateDataProcessActionHandler
PortalException
protected void sendRenderDataChangedNotification() throws PortalException
TableUpdateDataProcessActionHandler
sendRenderDataChangedNotification
in class TableUpdateDataProcessActionHandler
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |