public abstract class ContentManagementResourceManagerImpl extends java.lang.Object implements ContentManagementResourceManager
Modifier and Type | Field and Description |
---|---|
protected java.util.Map | actionParameters
Action parameters
|
protected static java.lang.String | ADD_TASK_GROUP
SQL fragment to filter delete by task group identifier.
|
protected static java.lang.String | BASE_REPLACE_TAG
Base schema name tag used in queries for catalogs
|
protected static int | CACHE_UNKNOWN
A bit mask to indicate a row was created, updated, or deleted.
|
protected static java.lang.String | CATALOG_STOREREL_REPLACE_TAG
Query STORES name tag used in queries for catalog.
|
protected ContentManagementResourceManager.Action | eAction
Action
|
protected ContentManagementResourceManager.ChangeHistoryRecordAction | eChangeHistoryRecordAction
Change history record action
|
protected java.lang.String | iBaseSchemaName
Base schema
|
protected com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryUtilityHelper | iChangeHistoryHelper
Change History Helper
|
protected java.lang.Long | iObjectId
Object id
|
protected java.lang.String | iObjectNounName
Object noun name
|
protected java.lang.String | iOldUniqueObjectName
Old Unique object name.
|
protected java.lang.String | iReadSchemaName
Read schema
|
protected java.lang.Long | iStoreEntId
Storeent id
|
protected java.lang.String | iTask
Task identifier
|
protected java.lang.String | iTaskGroup
Task group identifier
|
protected java.lang.String | iTaskGroupId
Task group id
|
protected java.lang.String | iTaskId
Task id
|
protected java.lang.String | iUiObjectName
UI object name
|
protected java.lang.String | iUniqueObjectName
Unique object name
|
protected java.lang.String | iWorkspace
Workspace identifier
|
protected java.lang.String | iWorkspaceId
Workspace id
|
protected java.lang.String | iWriteSchemaName
Write schema
|
protected com.ibm.commerce.base.objects.ServerJDBCHelperAccessBean | jdbcHelper
Instance of ServerJDBCHelperAccessBean JDBC Helper class.
|
protected static java.lang.String | KEYS_REPLACE_TAG
Query keys name tag used in queries for catalogs
|
protected static java.lang.String | PARAMETER_REPLACE_TAG
Parameter name tag.
|
protected static java.lang.String | READ_REPLACE_TAG
Read schema name tag used in queries for catalogs
|
protected static java.lang.String | STOREREL_REPLACE_TAG
Query STORES name tag used in queries.
|
protected static java.lang.String | WRITE_REPLACE_TAG
Write schema name tag used in queries for catalogs
|
Constructor and Description |
---|
ContentManagementResourceManagerImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void | clearContentContext()
Removes workspace from the content context.
|
protected void | deleteCurrentChangeHistoryRecord()
Deletes the current change history record.
|
protected void | deleteLock()
Removes the lock from the workspace for the main object associated to change history record.
|
protected void | deleteLock(java.lang.Object noun, java.lang.Object nounPart)
Removes the lock based on the noun and noun part passed in.
|
protected void | deleteRelatedChangeHistoryRecords()
Deletes all related change history record.
|
void | execute()
Default implementation of execute.
|
protected void | executeAction(com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable relatedTable, java.lang.Long[] keyValues)
Execution of the operation
|
ContentManagementResourceManager.Action | getAction()
Returns the action.
|
java.util.Map | getActionParameters()
Get action parameters
|
protected java.lang.String | getBaseSchemaName()
Returns the base schema name for this service.
|
protected ChangeControlBusinessObjectMediator | getChangeControlBusinessObjectMediator()
Gets the change control business object mediator providing a noun instance and component and initialize it.
|
static ChangeControlBusinessObjectMediator | getChangeControlBusinessObjectMediator(java.lang.Object noun, java.lang.String componentId)
Gets the change control business object mediator for the noun and component and initialize it.
|
ContentManagementResourceManager.ChangeHistoryRecordAction | getChangeHistoryRecordAction()
Returns the action to perform on the change history record.
|
protected abstract java.lang.String | getComponentId()
Gets the component ID.
|
protected java.lang.String | getHistoryAction()
Returns the action (N, U, D) associated to this service.
|
protected java.lang.Long | getObjectId()
Returns the object identifier for this service.
|
protected abstract java.lang.Object | getObjectNoun()
Creates a skeleton noun with only the unique ID is populated.
|
protected java.lang.String | getObjectNounName()
Returns the object noun name for this service.
|
protected abstract java.lang.String | getObjectNounPath()
Gets the object noun path.
|
protected java.lang.String | getReadSchemaName()
Returns the read schema name for this service.
|
protected java.lang.String | getStatementToFindUniqueIDFromObjectCode()
This method returns the statement which retrieves the unique id according to the unique code (identifier) and store id.
|
protected java.lang.Long | getStoreId()
Returns the store identifier for this service.
|
protected java.lang.String | getTask()
Returns the task identifier for this service.
|
protected java.lang.String | getTaskGroup()
Returns the task group name/identifier for this service.
|
protected com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet | getTaskGroupChangeHistoryDataSet()
Returns the task group change history data set for this service.
|
protected java.lang.String | getTaskGroupId()
Returns the task group id for this service.
|
protected java.lang.String | getTaskId()
/** Returns the task id for this service.
|
protected java.lang.String | getUiObjectName()
Returns the UI object name for this service.
|
protected java.lang.String | getUniqueObjectName()
Returns the unique object name for this service.
|
protected java.lang.String | getWorkspace()
Returns the workspace name/identifier for this service.
|
protected java.lang.String | getWorkspaceId()
Returns the workspace id for this service.
|
protected java.lang.String | getWriteSchemaName()
Returns the write schema name for this service.
|
protected void | handleUndoHelper(java.lang.Long objectId, java.lang.String nounName, java.lang.String uiObjectName, java.lang.Long storeId, com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, ContentManagementResourceManager.ChangeHistoryRecordAction action)
Undo the record for the provided object.
|
void | initialize(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet)
Object initialization.
|
protected boolean | isAction(ContentManagementResourceManager.Action action)
Checks if the current action matches.
|
protected boolean | isChangeHistoryRecordAction(ContentManagementResourceManager.ChangeHistoryRecordAction historyRecordAction)
Checks if the current change history record action matches.
|
protected java.lang.String | moveUpdateStatement(com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable relatedTable)
Create the query to be executed for Move operation
|
protected void | performAction(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable, java.lang.Long[] parentKeyValues)
Performs the action on objects for the set of tables.
|
protected void | performActionDelete(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable)
Action on delete
|
protected void | performActionNew(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable)
Action on new
|
protected void | performActionUpdate(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable)
Action on update
|
protected void | raiseEvent()
This method raises a change event as a result of the action.
|
protected void | reLock()
Relocks all locks from the workspace for this object associated to change history record
|
void | setAction(ContentManagementResourceManager.Action action)
Set action.
|
void | setActionParameters(java.util.Map parameters)
Set action parameters
|
void | setChangeHistoryRecordAction(ContentManagementResourceManager.ChangeHistoryRecordAction historyRecordAction)
Sets the action to perform on the change history record.
|
protected void | setContentContext()
Sets the content context to the workspace of the current workspace history.
|
protected void | throwError(java.lang.String errorKey, java.lang.Object[] errorParameters)
Prepares and throws the exception using the give message key and parameter values
|
protected java.lang.String | undoDeleteStatement(com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable relatedTable)
Create the query to be executed for Undo operation
|
protected void | updateCurrentChangeHistoryRecord()
Updates the current change history record.
|
protected void | validateUniqueObjectCode(java.lang.String objectId, java.lang.String objectCode)
Validates if the specified object code is unique in the read schema.
|
protected final com.ibm.commerce.base.objects.ServerJDBCHelperAccessBean jdbcHelper
protected static final java.lang.String ADD_TASK_GROUP
protected static final int CACHE_UNKNOWN
protected ContentManagementResourceManager.Action eAction
protected java.util.Map actionParameters
protected final com.ibm.commerce.foundation.internal.server.services.changehistory.utility.ChangeHistoryUtilityHelper iChangeHistoryHelper
protected static final java.lang.String STOREREL_REPLACE_TAG
protected static final java.lang.String CATALOG_STOREREL_REPLACE_TAG
protected static final java.lang.String BASE_REPLACE_TAG
protected static final java.lang.String WRITE_REPLACE_TAG
protected static final java.lang.String READ_REPLACE_TAG
protected static final java.lang.String KEYS_REPLACE_TAG
protected static final java.lang.String PARAMETER_REPLACE_TAG
protected java.lang.String iBaseSchemaName
protected java.lang.String iReadSchemaName
protected java.lang.String iWriteSchemaName
protected java.lang.String iWorkspace
protected java.lang.String iWorkspaceId
protected java.lang.String iTaskGroup
protected java.lang.String iTaskGroupId
protected java.lang.String iTask
protected java.lang.String iTaskId
protected java.lang.Long iObjectId
protected java.lang.String iObjectNounName
protected java.lang.String iUniqueObjectName
protected java.lang.String iOldUniqueObjectName
protected java.lang.String iUiObjectName
protected java.lang.Long iStoreEntId
protected ContentManagementResourceManager.ChangeHistoryRecordAction eChangeHistoryRecordAction
public ContentManagementResourceManagerImpl()
public void initialize(com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet) throws java.sql.SQLException, javax.naming.NamingException
public void setAction(ContentManagementResourceManager.Action action)
protected boolean isAction(ContentManagementResourceManager.Action action)
public void setActionParameters(java.util.Map parameters)
public java.util.Map getActionParameters()
public ContentManagementResourceManager.Action getAction()
protected void deleteLock() throws java.lang.Exception
protected void deleteLock(java.lang.Object noun, java.lang.Object nounPart) throws java.lang.Exception
protected void reLock() throws java.lang.Exception
protected void throwError(java.lang.String errorKey, java.lang.Object[] errorParameters) throws ECApplicationException
protected void raiseEvent() throws java.lang.Exception
protected java.lang.String undoDeleteStatement(com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable relatedTable)
protected java.lang.String moveUpdateStatement(com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable relatedTable)
protected void executeAction(com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable relatedTable, java.lang.Long[] keyValues) throws java.lang.Exception
protected void performAction(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable, java.lang.Long[] parentKeyValues) throws java.lang.Exception
protected void performActionNew(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable) throws java.lang.Exception
protected void performActionUpdate(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable) throws java.lang.Exception
protected void performActionDelete(java.util.List<com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable> cmRelatedTables, com.ibm.commerce.contentmanagement.config.ContentManagementRelatedTable cmParentRelatedTable) throws java.lang.Exception
public void execute() throws java.lang.Exception
protected void deleteRelatedChangeHistoryRecords() throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
protected void deleteCurrentChangeHistoryRecord() throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
protected void updateCurrentChangeHistoryRecord() throws com.ibm.commerce.foundation.internal.server.services.changehistory.exception.ChangeHistoryApplicationException
protected ChangeControlBusinessObjectMediator getChangeControlBusinessObjectMediator() throws AbstractApplicationException
public static ChangeControlBusinessObjectMediator getChangeControlBusinessObjectMediator(java.lang.Object noun, java.lang.String componentId) throws AbstractApplicationException
protected java.lang.String getHistoryAction()
protected java.lang.String getBaseSchemaName()
protected java.lang.String getWriteSchemaName()
protected java.lang.String getReadSchemaName()
protected java.lang.String getWorkspace()
protected java.lang.String getWorkspaceId()
protected java.lang.String getTaskGroup()
protected java.lang.String getTaskGroupId()
protected java.lang.String getTask()
protected java.lang.String getTaskId()
protected java.lang.Long getObjectId()
protected java.lang.String getObjectNounName()
protected java.lang.String getUniqueObjectName()
protected java.lang.String getUiObjectName()
protected java.lang.Long getStoreId()
protected com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet getTaskGroupChangeHistoryDataSet()
public ContentManagementResourceManager.ChangeHistoryRecordAction getChangeHistoryRecordAction()
public void setChangeHistoryRecordAction(ContentManagementResourceManager.ChangeHistoryRecordAction historyRecordAction)
protected boolean isChangeHistoryRecordAction(ContentManagementResourceManager.ChangeHistoryRecordAction historyRecordAction)
protected abstract java.lang.Object getObjectNoun()
protected abstract java.lang.String getComponentId()
protected abstract java.lang.String getObjectNounPath()
protected void setContentContext()
protected void clearContentContext()
protected java.lang.String getStatementToFindUniqueIDFromObjectCode()
protected void validateUniqueObjectCode(java.lang.String objectId, java.lang.String objectCode) throws java.lang.Exception
protected void handleUndoHelper(java.lang.Long objectId, java.lang.String nounName, java.lang.String uiObjectName, java.lang.Long storeId, com.ibm.commerce.foundation.internal.server.services.changehistory.beans.TaskGroupChangeHistoryDataSet tgchDataSet, ContentManagementResourceManager.ChangeHistoryRecordAction action) throws java.lang.Exception