|
||||||||||
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.TableDeleteDataProcessActionHandler lumis.content.table.ContentTableDeleteDataProcessActionHandler
@StableMinor(version="5.5", sinceVersion="4.0") public class ContentTableDeleteDataProcessActionHandler
This class is responsible for the generic deleting process in the Content
context. It executes the delete query generated by
ContentQueryBuilder
and calls MetaDataController
so
it will handle meta data and information appropriately.
When versioning is enabled, this class is
responsible for modifying the primary key parameter values to build a delete
query, so it will remove all versions of the selected items. It also is
responsible for updating search index according to the changes made to the
content.
Field Summary | |
---|---|
protected String |
primaryKeyFieldId
|
protected String |
versionActiveFieldId
|
protected ArrayList<String> |
versionContentIds
|
Fields inherited from class lumis.doui.table.TableDeleteDataProcessActionHandler |
---|
queryBuilder |
Constructor Summary | |
---|---|
ContentTableDeleteDataProcessActionHandler()
|
Method Summary | |
---|---|
protected QueryBase |
buildQuery()
Builds query using ContentQueryBuilder created. |
protected QueryBuilder |
createQueryBuilder()
Creates ContentQueryBuilder object for building delete query. |
protected void |
deleteRelatedData(Collection<String> itemIds,
Node currentSourceDefinitionNode,
String foreignPrimaryKeyFieldId,
ITransaction transaction)
Deletes all data related to the given primary key ids. |
protected void |
indexData()
Updates search index information for modified content. |
protected void |
postDelete()
Executes all post delete necessary to manage meta data after removing the content, including calling MetaDataController . |
protected void |
sendRenderDataChangedNotification(Object pks)
Notifies observers that the render data may have changed. |
Methods inherited from class lumis.doui.table.TableDeleteDataProcessActionHandler |
---|
createRenderDataChangedEvent, createTableSource, deleteRelatedFiles, execute, preDelete, processAction, processActionWithoutResponse, sendPostNotifications, sendPreNotifications, sendRenderDataChangedNotification, setParameter |
Methods inherited from class lumis.doui.table.BaseTableDataProcessActionHandler |
---|
addToIndex, getIndexConfig, isSearchEnabled, readSelectedData, removeFromIndex, shouldSendRenderDataChangedNotification |
Methods inherited from class lumis.doui.processaction.ProcessActionHandler |
---|
addDefaultResponse, addResponseParameter, checkServiceInstancePermission, checkServiceInstancePermission, getId, getParameter, getParameter, getResource, getServiceInterfaceHyperLink, getUrl, init, localize, processHyperLinkResponse, processPopupInterfaceResponse, resolveFieldValueNode |
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 ArrayList<String> versionContentIds
Constructor Detail |
---|
public ContentTableDeleteDataProcessActionHandler()
Method Detail |
---|
protected void postDelete() throws PortalException
MetaDataController
.
postDelete
in class TableDeleteDataProcessActionHandler
PortalException
protected void indexData() throws PortalException
TableDeleteDataProcessActionHandler
indexData
in class TableDeleteDataProcessActionHandler
PortalException
protected void deleteRelatedData(Collection<String> itemIds, Node currentSourceDefinitionNode, String foreignPrimaryKeyFieldId, ITransaction transaction) throws PortalException
TableDeleteDataProcessActionHandler
This method looks up all the relations of the data being deleted. If any of them have the attribute cascadeOnDelete set to true, the related source data is automatically deleted.
deleteRelatedData
in class TableDeleteDataProcessActionHandler
PortalException
protected QueryBuilder createQueryBuilder() throws PortalException
ContentQueryBuilder
object for building delete query.
createQueryBuilder
in class BaseTableDataProcessActionHandler
PortalException
protected QueryBase buildQuery() throws PortalException
buildQuery
in class TableDeleteDataProcessActionHandler
PortalException
protected void sendRenderDataChangedNotification(Object pks) throws PortalException
BaseTableDataProcessActionHandler
sendRenderDataChangedNotification
in class BaseTableDataProcessActionHandler
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |