com.ibm.commerce.pagelayout.contentmanagement.resources
Class LayoutManagementResourceManagerImpl
- java.lang.Object
-
- com.ibm.commerce.contentmanagement.service.ContentManagementResourceManagerImpl
-
- com.ibm.commerce.pagelayout.contentmanagement.resources.LayoutManagementResourceManagerImpl
-
- All Implemented Interfaces:
- ContentManagementResourceManager, LayoutManagementResourceManager
public class LayoutManagementResourceManagerImpl extends ContentManagementResourceManagerImpl implements LayoutManagementResourceManager
This class provides content management services for the layout object.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.commerce.contentmanagement.service.ContentManagementResourceManager
ContentManagementResourceManager.Action, ContentManagementResourceManager.ChangeHistoryRecordAction, ContentManagementResourceManager.MoveDestinationActionParameters
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
PAGELAYOUT_NOUN_PATH
Constant to represent the BOD object path for layouts
-
Constructor Summary
Constructors Constructor and Description LayoutManagementResourceManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String
getBaseSchema()
Returns the base schema name for this service.java.lang.String
getReadSchema()
Returns the read schema name for this service.java.lang.String
getWriteSchema()
Returns the write schema name for this service.java.lang.String
prepareQueryForWorkspaces(java.lang.String query)
Prepare the query for execution under Workspaces.void
undoHelper(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.-
Methods inherited from class com.ibm.commerce.contentmanagement.service.ContentManagementResourceManagerImpl
execute, getAction, getActionParameters, getChangeControlBusinessObjectMediator, getChangeHistoryRecordAction, initialize, setAction, setActionParameters, setChangeHistoryRecordAction
-
-
-
-
Field Detail
-
PAGELAYOUT_NOUN_PATH
public static final java.lang.String PAGELAYOUT_NOUN_PATH
Constant to represent the BOD object path for layouts- See Also:
- Constant Field Values
-
-
Method Detail
-
prepareQueryForWorkspaces
public java.lang.String prepareQueryForWorkspaces(java.lang.String query)
Prepare the query for execution under Workspaces. The query passed in the parameter can contain markers as a reference to the read, write or base schemas. These references will be modified to use the schema names in the database. The markers are:, and . Example: SELECT * FROM .STORE - Specified by:
prepareQueryForWorkspaces
in interfaceLayoutManagementResourceManager
- Parameters:
query
- Query to prepare- Returns:
- A query with correct references to the the base, read and write schemas.
-
getBaseSchema
public java.lang.String getBaseSchema()
Returns the base schema name for this service.- Specified by:
getBaseSchema
in interfaceLayoutManagementResourceManager
- Returns:
- the base schema name
-
getWriteSchema
public java.lang.String getWriteSchema()
Returns the write schema name for this service.- Specified by:
getWriteSchema
in interfaceLayoutManagementResourceManager
- Returns:
- the write schema name
-
getReadSchema
public java.lang.String getReadSchema()
Returns the read schema name for this service.- Specified by:
getReadSchema
in interfaceLayoutManagementResourceManager
- Returns:
- the read schema name
-
undoHelper
public void undoHelper(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
Undo the record for the provided object.- Specified by:
undoHelper
in interfaceLayoutManagementResourceManager
- Parameters:
objectId
- The ID for the object.nounName
- The noun name of the object to undo.uiObjectName
- The UI Object name of the object to undo.storeId
- The store ID that the object belongs to.tgchDataSet
- The task group change history data set for layout.action
- The action to take with the change history record, as defined in ChangeHistoryRecordAction.- Throws:
java.lang.Exception
- If there was an error or if the operation should be canceled
-
-