public class AbstractContentVersionServiceImpl extends java.lang.Object implements ContentVersionService
Constructor and Description |
---|
AbstractContentVersionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected boolean | canModify(java.lang.Object noun, java.lang.Object nounPart)
Checks if the noun and noun part can be modified.
|
protected void | checkLock()
It is called before the restore() is called when the action is restore.
|
protected void | create()
This method creates a version based on the content version noun object.
|
protected void | delete()
This method delete a version based on the content version noun object.
|
void | execute()
The main entry to execute the action.
|
protected ContentVersionService.Action | getAction()
Gets the action
|
protected java.lang.String | getComponentId()
It returns null.
|
protected java.sql.Connection | getConnection()
Gets the connection.
|
protected ContentVersionType | getNoun()
Gets the content version noun object.
|
protected java.lang.Long | getObjectId()
Gets the object ID in the version noun.
|
protected java.lang.Object | getObjectNoun(java.lang.Long objectId)
This method returns null.
|
java.lang.String | getObjectNounName()
Gets the noun name for the targeted object of the version.
|
java.lang.String | getObjectNounPath()
Gets the container based path name for the targeted object of the version.
|
protected java.lang.String | getObjectType()
Gets the object type
|
protected java.util.List<java.lang.String> | getRelatedTableNames(java.lang.String objectName)
Gets the list of related table names
|
protected java.util.List<com.ibm.commerce.content.config.ContentVersionRelatedTable> | getRelatedTables(java.lang.String objectName)
Gets the related tables for the current object type.
|
protected java.lang.Integer | getStoreId()
Gets the store ID in the version noun
|
protected void | lock()
It is called after the restore() is called when the action is restore.
|
protected void | lock(java.lang.Object noun, java.lang.Object nounPart, short action)
Locks the noun or noun part if it is in the workspace environment.
|
protected void | raiseRestoreEvent(java.lang.Long objectID)
This method raises a change event as a result of the restore action.
|
protected void | restore()
This method restore a version based on the content version noun object.
|
void | setAction(ContentVersionService.Action action)
Sets the action which can be CREATE, RESTORE or DELETE.
|
void | setConnection(java.sql.Connection connection)
Sets the connection
|
void | setNoun(ContentVersionType noun)
Sets the noun.
|
protected void | validate()
This method validates the information in the input noun to see if it is okay to do the specific action.
|
protected void | validateConfigGroupId(int configGroupId, java.lang.String uiObjectName)
Validate if the config group ID is still associated with the ui object name in the configuration file.
|
protected int | validateDataAndGetConfigGroupId(ContentVersionType aVersion)
Validate the data passed in the content version noun object and retrieve the config group ID from the database based on the data in the noun.
|
public void setNoun(ContentVersionType noun)
public void setConnection(java.sql.Connection connection)
public void setAction(ContentVersionService.Action action)
protected ContentVersionType getNoun()
protected java.sql.Connection getConnection()
protected ContentVersionService.Action getAction()
protected java.lang.Long getObjectId()
protected java.lang.Integer getStoreId()
public void execute() throws AbstractApplicationException
protected void validate() throws AbstractApplicationException
protected void create() throws AbstractApplicationException
protected void restore() throws AbstractApplicationException
protected void delete() throws AbstractApplicationException
protected void raiseRestoreEvent(java.lang.Long objectID) throws AbstractApplicationException
public java.lang.String getObjectNounName()
public java.lang.String getObjectNounPath()
protected int validateDataAndGetConfigGroupId(ContentVersionType aVersion) throws AbstractApplicationException
protected void validateConfigGroupId(int configGroupId, java.lang.String uiObjectName) throws AbstractApplicationException
protected java.lang.String getObjectType()
protected java.util.List<com.ibm.commerce.content.config.ContentVersionRelatedTable> getRelatedTables(java.lang.String objectName) throws com.ibm.commerce.content.exception.ContentApplicationException
protected java.util.List<java.lang.String> getRelatedTableNames(java.lang.String objectName) throws com.ibm.commerce.content.exception.ContentApplicationException
protected java.lang.String getComponentId()
protected boolean canModify(java.lang.Object noun, java.lang.Object nounPart) throws AbstractApplicationException
protected void lock(java.lang.Object noun, java.lang.Object nounPart, short action) throws AbstractApplicationException
protected java.lang.Object getObjectNoun(java.lang.Long objectId)
protected void checkLock() throws AbstractApplicationException
protected void lock() throws AbstractApplicationException