@Deprecated public class LegacyContentMetaDataController extends ContentMetaDataController
ContentMetaDataController
variant for some deprecated content process action handlers.ContentMetaDataController.MetaDataPersistenceResult
CONTENT_ID_ATTRIBUTE, CONTENT_VERSION_ID_ATTRIBUTE, CONTENTID_PARAMETER_SUFIX, DOUI_EDITING_VERSION_PARAMETER_NAME, IS_DEFAULT_LOCALE_PARAMETER_SUFIX, LANGUAGE_ID_PARAMETER_SUFIX, languageParameterPrefix, NEW_VERSION_PRIMARY_KEY_PARAMETER, parameters, source, transaction
Constructor and Description |
---|
LegacyContentMetaDataController(IProcessActionHandler processActionHandler,
ContentTableSource source,
ITransaction transaction)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getNewDataContentId()
Deprecated.
Returns the identifier of the content to use for new data.
|
protected Locale |
getNewDataLocale(Locale defaultLocale)
Deprecated.
Returns the new
Locale value to use for new data. |
protected boolean |
hasNewDataContentId()
Deprecated.
Returns whether the identifier of the content to use for new data was set.
|
protected ContentVersion |
insertMetaData(String primaryKey)
Deprecated.
Creates the meta data information for a new content.
|
protected ContentVersion |
updateMetaData(String originalItemId,
String newVersionItemId)
Deprecated.
Updates the content's metadata.
|
contentDeleted, contentInserted, contentUpdated, getActiveVersionEquivalentOfItemId, getNewDataDefaultLocale, hasNewDataDefaultLocale, selectMetaData
public LegacyContentMetaDataController(IProcessActionHandler processActionHandler, ContentTableSource source, ITransaction transaction) throws PortalException
PortalException
protected ContentVersion insertMetaData(String primaryKey) throws PortalException
ContentMetaDataController
insertMetaData
in class ContentMetaDataController
primaryKey
- the content's primary key.PortalException
protected ContentVersion updateMetaData(String originalItemId, String newVersionItemId) throws PortalException
ContentMetaDataController
updateMetaData
in class ContentMetaDataController
originalItemId
- the item identifier of the item that is being updated.newVersionItemId
- the item identifier of the item after the update. This is only used for contents with
versioning and will be the item identifier for the version added for the update.PortalException
protected Locale getNewDataLocale(Locale defaultLocale) throws PortalException
ContentMetaDataController
Locale
value to use for new data.getNewDataLocale
in class ContentMetaDataController
defaultLocale
- the default locale value to return if no locale was specified in parameters.PortalException
protected String getNewDataContentId()
ContentMetaDataController
ContentMetaDataController.hasNewDataContentId()
to differ a
explicit null
value from non-existent value.getNewDataContentId
in class ContentMetaDataController
ContentMetaDataController.hasNewDataContentId()
protected boolean hasNewDataContentId()
ContentMetaDataController
hasNewDataContentId
in class ContentMetaDataController
true
if it was set, false
otherwise.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.