|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.content.table.ContentMetaDataController
public class ContentMetaDataController
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, multi-language and tags.
Nested Class Summary | |
---|---|
static class |
ContentMetaDataController.MetaDataPersistenceResult
Stores the result of updating or adding a content. |
Field Summary | |
---|---|
static java.lang.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 java.lang.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 java.lang.String |
CONTENTID_PARAMETER_SUFIX
|
static java.lang.String |
DOUI_EDITING_VERSION_PARAMETER_NAME
Doui editing version parameter name. |
static java.lang.String |
IS_DEFAULT_LOCALE_PARAMETER_SUFIX
|
static java.lang.String |
LANGUAGE_ID_PARAMETER_SUFIX
|
static java.lang.String |
NEW_VERSION_PRIMARY_KEY_PARAMETER
|
static java.lang.String |
PUBLISH_TO_PRINCIPALS_PARAMETER
|
static java.lang.String |
PUBLISH_TO_SERVICE_INSTANCES_PARAMETER
|
static java.lang.String |
PUBLISH_TO_SOCIAL_NETWORKS_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(java.lang.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. |
protected java.lang.String |
getActiveVersionEquivalentItemId(java.lang.String itemId)
Returns the equivalent item id of active version based on given
item id . |
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 |
---|
public static final java.lang.String DOUI_EDITING_VERSION_PARAMETER_NAME
public static final java.lang.String PUBLISH_TO_SERVICE_INSTANCES_PARAMETER
public static final java.lang.String PUBLISH_TO_SOCIAL_NETWORKS_PARAMETER
public static final java.lang.String PUBLISH_TO_PRINCIPALS_PARAMETER
public static final java.lang.String LANGUAGE_ID_PARAMETER_SUFIX
public static final java.lang.String CONTENTID_PARAMETER_SUFIX
public static final java.lang.String IS_DEFAULT_LOCALE_PARAMETER_SUFIX
public static final java.lang.String NEW_VERSION_PRIMARY_KEY_PARAMETER
public static final java.lang.String CONTENT_VERSION_ID_ATTRIBUTE
public static final java.lang.String CONTENT_ID_ATTRIBUTE
Constructor Detail |
---|
public ContentMetaDataController(IProcessActionHandler processActionHandler, ContentTableSource source, ITransaction transaction) throws PortalException
processActionHandler
- source
- transaction
-
PortalException
Method Detail |
---|
public ContentMetaDataController.MetaDataPersistenceResult contentInserted(java.lang.String primaryKey) throws PortalException
primaryKey
- the content's primary key.
PortalException
public ContentMetaDataController.MetaDataPersistenceResult contentUpdated() throws PortalException
PortalException
public void contentDeleted() throws PortalException
PortalException
public void selectMetaData(QuerySelect querySelect) throws PortalException
querySelect
-
PortalException
protected java.lang.String getActiveVersionEquivalentItemId(java.lang.String itemId) throws PortalException
active version
based on given
item id
.
itemId
- the item id
.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |