lumis.content.table
Class ContentMetaDataController

Package class diagram package ContentMetaDataController
java.lang.Object
  extended by lumis.content.table.ContentMetaDataController
Direct Known Subclasses:
MetaDataController

public class ContentMetaDataController
extends Object

This class handles all related to meta data on the select, insert, update and delete operations. While performing a select it includes on the query (gathering it from the appropriate table) all meta data information that shall be used. While performing an insert, update or delete it is responsible for all meta data manipulating, including adding/updating/removing publishing information, publishing to multiple instances, publishing to principals, comments, versioning and multi-language.

Since:
4.2.0

Nested Class Summary
static class ContentMetaDataController.MetaDataPersistenceResult
          Stores the result of updating or adding a content.
 
Field Summary
static String CONTENT_ID_ATTRIBUTE
          Attribute name used by default content process action handlers to store the content identifier of the data added or updated.
static String CONTENT_VERSION_ID_ATTRIBUTE
          Attribute name used by default content process action handlers to store the content version identifier of the data added or updated.
static String CONTENTID_PARAMETER_SUFIX
           
static String IS_DEFAULT_LOCALE_PARAMETER_SUFIX
           
static String LANGUAGE_ID_PARAMETER_SUFIX
           
static String NEW_VERSION_PRIMARY_KEY_PARAMETER
           
static String PUBLISH_TO_PRINCIPALS_PARAMETER
           
static String PUBLISH_TO_SERVICE_INSTANCES_PARAMETER
           
 
Constructor Summary
ContentMetaDataController(IProcessActionHandler processActionHandler, ContentTableSource source, ITransaction transaction)
          Creates the object and initializes it defining which meta data features are supported by the given Source.
 
Method Summary
 void contentDeleted()
          Delete meta data associated to the deleted contents.
 ContentMetaDataController.MetaDataPersistenceResult contentInserted(String primaryKey)
          Handles meta data manipulating necessary after inserting a content.
 ContentMetaDataController.MetaDataPersistenceResult contentUpdated()
          Do the necessary changes in a content's metadata due to its update.
 void selectMetaData(QuerySelect querySelect)
          Modifies querySelect so it will include all necessary meta data information and restrictions filtering, such as service instance isolation, publishing to principals filtering, active version filtering and special treatment when on preview or details interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLISH_TO_SERVICE_INSTANCES_PARAMETER

public static final String PUBLISH_TO_SERVICE_INSTANCES_PARAMETER
See Also:
Constant Field Values

PUBLISH_TO_PRINCIPALS_PARAMETER

public static final String PUBLISH_TO_PRINCIPALS_PARAMETER
See Also:
Constant Field Values

LANGUAGE_ID_PARAMETER_SUFIX

public static final String LANGUAGE_ID_PARAMETER_SUFIX
See Also:
Constant Field Values

CONTENTID_PARAMETER_SUFIX

public static final String CONTENTID_PARAMETER_SUFIX
See Also:
Constant Field Values

IS_DEFAULT_LOCALE_PARAMETER_SUFIX

public static final String IS_DEFAULT_LOCALE_PARAMETER_SUFIX
See Also:
Constant Field Values

NEW_VERSION_PRIMARY_KEY_PARAMETER

public static final String NEW_VERSION_PRIMARY_KEY_PARAMETER
See Also:
Constant Field Values

CONTENT_VERSION_ID_ATTRIBUTE

public static final String CONTENT_VERSION_ID_ATTRIBUTE
Attribute name used by default content process action handlers to store the content version identifier of the data added or updated.

Since:
4.2.0
See Also:
Constant Field Values

CONTENT_ID_ATTRIBUTE

public static final String CONTENT_ID_ATTRIBUTE
Attribute name used by default content process action handlers to store the content identifier of the data added or updated.

Since:
4.2.0
See Also:
Constant Field Values
Constructor Detail

ContentMetaDataController

public ContentMetaDataController(IProcessActionHandler processActionHandler,
                                 ContentTableSource source,
                                 ITransaction transaction)
                          throws PortalException
Creates the object and initializes it defining which meta data features are supported by the given Source.

Parameters:
processActionHandler -
source -
transaction -
Throws:
PortalException
Method Detail

contentInserted

public ContentMetaDataController.MetaDataPersistenceResult contentInserted(String primaryKey)
                                                                    throws PortalException
Handles meta data manipulating necessary after inserting a content.

Parameters:
primaryKey - the content's primary key.
Throws:
PortalException

contentUpdated

public ContentMetaDataController.MetaDataPersistenceResult contentUpdated()
                                                                   throws PortalException
Do the necessary changes in a content's metadata due to its update.

Throws:
PortalException
Since:
4.0.11

contentDeleted

public void contentDeleted()
                    throws PortalException
Delete meta data associated to the deleted contents.

Throws:
PortalException
Since:
4.0.11

selectMetaData

public void selectMetaData(QuerySelect querySelect)
                    throws PortalException
Modifies querySelect so it will include all necessary meta data information and restrictions filtering, such as service instance isolation, publishing to principals filtering, active version filtering and special treatment when on preview or details interface.

Parameters:
querySelect -
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.