|
||||||||||
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.TableAddDataProcessActionHandler
@StableMinor(version="5.5", sinceVersion="4.0") public class TableAddDataProcessActionHandler
This class is responsible for the generic inserting process in the Content
context. It executes the insert query generated by
ContentQueryBuilder
. It also is responsible for
adding the new content to search index.
Field Summary |
---|
Constructor Summary | |
---|---|
TableAddDataProcessActionHandler()
|
Method Summary | |
---|---|
protected void |
doInsert()
The process of insertion in the database is done in this method. |
protected void |
execute(QueryInsert queryInsert)
This method actually executes the insert statement. |
protected void |
indexData()
Calls the method BaseTableDataProcessActionHandler.addToIndex() to index data. |
protected void |
postInsert(String primaryKey)
Sets the primary key render parameter. |
protected void |
preInsert(QueryInsert queryInsert)
Called before the insert action is taken. |
void |
processAction()
Processes the required action calling processActionWithoutResponse() and subsequently calls the ProcessActionHandler.addDefaultResponse() method. |
protected void |
processActionWithoutResponse()
Processes the insert action. |
protected void |
sendPostNotifications(String primaryKey)
Sends process action execution and interface changed notifications. |
protected void |
sendPreNotifications(String primaryKey)
Called before the insert action is taken. |
protected void |
setPrimaryKeyAttribute(String primaryKey)
Sets the primary key value in the request attribute. |
protected void |
setPrimaryKeyParameter(Object primaryKeyValue)
The primary key value of the inserted data is placed in the process action parameters. |
protected void |
setPrimaryKeyRenderParameter(String primaryKey)
Deprecated. Since 4.0.10 the primary key is no longer stored as a render parameter. This method was replaced by setPrimaryKeyAttribute(String) . For
backward compatibility, this method calls setPrimaryKeyAttribute(String) . |
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler |
---|
addToIndex, createQueryBuilder, createRenderDataChangedEvent, getIndexConfig, isSearchEnabled, readSelectedData, removeFromIndex, sendRenderDataChangedNotification, shouldSendRenderDataChangedNotification |
Methods inherited from class lumis.doui.processaction.ProcessActionHandler |
---|
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableAddDataProcessActionHandler()
Method Detail |
---|
public void processAction() throws PortalException
processActionWithoutResponse()
and subsequently calls the ProcessActionHandler.addDefaultResponse()
method.
PortalException
protected void processActionWithoutResponse() throws PortalException
Here the doInsert()
method is called to perform the insert.
PortalException
protected void doInsert() throws PortalException
This method sends pre notifications, performs the insert, sends post notifications and finally indexes the data.
PortalException
protected void setPrimaryKeyParameter(Object primaryKeyValue) throws PortalException
primaryKeyValue
-
PortalException
protected void preInsert(QueryInsert queryInsert) throws PortalException
No action is taken here. This is simply a hook for objects that extend this class.
queryInsert
-
PortalException
protected void sendPreNotifications(String primaryKey) throws PortalException
No action is taken here. This is simply a hook for objects that extend this class.
queryInsert
-
PortalException
protected void execute(QueryInsert queryInsert) throws PortalException
queryInsert
-
PortalException
protected void postInsert(String primaryKey) throws PortalException
primaryKey
-
PortalException
@Deprecated protected void setPrimaryKeyRenderParameter(String primaryKey) throws PortalException
setPrimaryKeyAttribute(String)
. For
backward compatibility, this method calls setPrimaryKeyAttribute(String)
.
PortalException
protected void setPrimaryKeyAttribute(String primaryKey) throws PortalException
primaryKey
- the primary key value. If null
this method does nothing.
PortalException
protected void indexData() throws PortalException
BaseTableDataProcessActionHandler.addToIndex()
to index data.
indexData
in class BaseTableDataProcessActionHandler
PortalException
protected void sendPostNotifications(String primaryKey) throws PortalException
primaryKey
-
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |