lumis.content.metadata
Class MetaDataManager

Package class diagram package MetaDataManager
java.lang.Object
  extended by lumis.content.metadata.MetaDataManager
All Implemented Interfaces:
IMetaDataManager

public class MetaDataManager
extends Object
implements IMetaDataManager

Manager for meta data

Since:
4.0.4

Constructor Summary
MetaDataManager()
           
 
Method Summary
 String add(SessionConfig sessionConfig, MetaDataConfig metaDataConfig, ITransaction transaction)
          Adds the meta data config.
 String addComment(SessionConfig sessionConfig, CommentConfig commentConfig, ITransaction transaction)
          Add the comment.
 String addPublishedToPrincipal(SessionConfig sessionConfig, PublishToPrincipalConfig publishToPrincipalConfig, ITransaction transaction)
          Adds the publish to principal config.
 String addVersion(SessionConfig sessionConfig, VersionConfig versionConfig, ITransaction transaction)
          Adds the version information.
 void delete(SessionConfig sessionConfig, Collection<String> metaDataIds, ITransaction transaction)
          Deletes the meta data configs for the given collection of meta data ids.
 void delete(SessionConfig sessionConfig, String metaDataId, ITransaction transaction)
          Deletes the meta data config for the given meta data id.
 void deleteByItemIds(SessionConfig sessionConfig, Collection<String> itemIds, String serviceId, ITransaction transaction)
          Deletes the meta data configs for the given collection of itemIds associated to the given serviceId.
 void deletePublishedToPrincipal(SessionConfig sessionConfig, String metaDataId, ITransaction transaction)
          Deletes all publish to principal config for the given meta data.
 void deletePublishedToPrincipalByPrincipalId(SessionConfig sessionConfig, String principalId, ITransaction transaction)
          Delete the published to principal informations for all meta data published to the specified principal.
 void deleteVersion(SessionConfig sessionConfig, String versionId, ITransaction transaction)
          Deletes version information.
 MetaDataConfig get(SessionConfig sessionConfig, String metaDataId, ITransaction transaction)
          Gets the meta data config.
 Collection<LanguageConfig> getAssociatedContents(SessionConfig sessionConfig, String tableName, String primaryKeyFieldId, String primaryNameFieldId, String languageContentId, ITransaction transaction)
          Gets all language associated contents with the given content.
 Collection<MetaDataConfig> getByItemId(SessionConfig sessionConfig, String itemId, boolean considerInactiveVersion, ITransaction transaction)
          Gets a Collection of meta data configs associated to the same content (identified by the itemId).
 Collection<MetaDataConfig> getByItemId(SessionConfig sessionConfig, String itemId, ITransaction transaction)
          Gets a Collection of meta data configs associated to the same content (identified by the itemId).
 Collection<MetaDataConfig> getByItemIdAndServiceId(SessionConfig sessionConfig, String itemId, String serviceId, String sourceId, boolean considerInactiveVersion, ITransaction transaction)
          Gets a Collection of meta data configs associated to the same content (identified by the itemId, serviceId and sourceId).
 Collection<MetaDataConfig> getByItemIdAndServiceId(SessionConfig sessionConfig, String itemId, String serviceId, String sourceId, ITransaction transaction)
          Gets a Collection of meta data configs associated to the same content (identified by the itemId, serviceId and sourceId).
 MetaDataConfig getByItemIdAndServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, boolean considerInactiveVersion, ITransaction transaction)
          Gets the meta data config associated to the content (identified by the itemId, serviceInstanceId and sourceId).
 MetaDataConfig getByItemIdAndServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, ITransaction transaction)
          Gets the meta data config associated to the content (identified by the itemId, serviceInstanceId and sourceId).
 List<MetaDataConfig> getByParentServiceInstanceId(SessionConfig sessionConfig, String parentServiceInstanceId, ITransaction transaction)
          Gets all meta data configs associated to a content that was created by the given service instance, wheter the meta data are directly associated with the service instance or not.
 List<CommentConfig> getComments(SessionConfig sessionConfig, String metaDataId, ITransaction transaction)
          Gets the comments associated with the given meta data.
 Collection<LanguageConfig> getContentsByLanguageAssociation(SessionConfig sessionConfig, String tableName, String primaryKeyFieldId, String primaryKeyValue, String primaryNameFieldId, String serviceInstanceId, String nameFilterValue, String selectedLanguageId, String languageContentId, ITransaction transaction)
          Gets all contents that might be associated by language with the given content.
 String getIdByVersionContentIdAndServiceInstanceId(SessionConfig sessionConfig, String versionContentId, String serviceInstanceId, ITransaction transaction)
          Gets meta data id for the given content (identified by versionContentId and serviceInstanceId).
 Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction)
          Gets all meta data ids associated with the given service instance.
 Collection<String> getIdsByVersionContentIdAndServiceId(SessionConfig sessionConfig, String versionContentId, String serviceId, ITransaction transaction)
          Gets meta data id for the given content (identified by versionContentId and serviceId).
 Collection<MetaDataConfig> getMetaDataToExpireByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction)
          Gets all published meta data configs of the given serviceId that are outside the publishing period according to publishing dates.
 Collection<MetaDataConfig> getMetaDataToExpireHighlightByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction)
          Gets all currently set as highlight meta data configs of the given serviceId that are outside the highlight period according to highlight publishing date.
 Collection<MetaDataConfig> getMetaDataToPublishByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction)
          Gets all unpublished meta data configs of the given serviceId that are inside the publishing period according to publishing dates.
 int getNumComments(SessionConfig sessionConfig, String metaDataId, ITransaction transaction)
          Gets the number of comments associated with given meta data.
 int getNumVersions(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, ITransaction transaction)
          Gets the number of versions (ignoring meta data plurality) existent for a given content.
 String getParentServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceId, ITransaction transaction)
          Gets the service instance where the given content (identified by itemId and serviceId) was created.
 Collection<PublishToPrincipalConfig> getPublishedToPrincipalsByMetaDataId(SessionConfig sessionConfig, String metaDataId, ITransaction transaction)
          Gets a collection of publish to principals config for the given meta data.
 Collection<String> getSourceIdsByServiceId(String serviceId, ITransaction transaction)
          Returns a list of sources of a given service that are being referenced by existing metadata.
 VersionConfig getVersion(SessionConfig sessionConfig, String versionId, ITransaction transaction)
          Gets the version information.
 String getVersionContentIdByItemIdAndServiceId(SessionConfig sessionConfig, String itemId, String serviceId, String sourceId, ITransaction transaction)
          Gets the version content id of the content (identified by itemId, service id and source id).
 String getVersionContentIdByItemIdAndServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, ITransaction transaction)
          Gets the version content id of the content (identified by itemId, service instance id and source id).
 Collection<VersionConfig> getVersionsByVersionContentId(SessionConfig sessionConfig, String versionContentId, boolean includeActiveOnly, boolean getAllMetaDataVersions, ITransaction transaction)
          Get versions information by version content id.
 Collection<String> getVersionsItemIds(SessionConfig sessionConfig, Collection<String> itemIds, String serviceInstanceId, String sourceId, ITransaction transaction)
          Gets a collection of itemIds containing all the versions of each version represented by an itemId on the collection given.
 void update(SessionConfig sessionConfig, MetaDataConfig metaDataConfig, ITransaction transaction)
          Updates the meta data config
 void updateHighlight(SessionConfig sessionConfig, Collection<MetaDataConfig> metaDataConfigs, ITransaction transaction)
          Updates highligt status of the given collection of meta data configs setting it as false (such as there is no "Start highlight date").
 void updatePublished(SessionConfig sessionConfig, Collection<MetaDataConfig> metaDataConfigs, boolean newPublishedValue, ITransaction transaction)
          Updates published status of the given collection of meta data configs with the given value.
 void updateVersion(SessionConfig sessionConfig, VersionConfig versionConfig, ITransaction transaction)
          Updates the version information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataManager

public MetaDataManager()
Method Detail

get

public MetaDataConfig get(SessionConfig sessionConfig,
                          String metaDataId,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Description copied from interface: IMetaDataManager
Gets the meta data config.

Specified by:
get in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getByItemId

public Collection<MetaDataConfig> getByItemId(SessionConfig sessionConfig,
                                              String itemId,
                                              ITransaction transaction)
                                       throws ManagerException,
                                              PortalException
Description copied from interface: IMetaDataManager
Gets a Collection of meta data configs associated to the same content (identified by the itemId). The collection will contain meta data configs for all the service instances that the content is published to.

Specified by:
getByItemId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getByItemId

public Collection<MetaDataConfig> getByItemId(SessionConfig sessionConfig,
                                              String itemId,
                                              boolean considerInactiveVersion,
                                              ITransaction transaction)
                                       throws ManagerException,
                                              PortalException
Description copied from interface: IMetaDataManager
Gets a Collection of meta data configs associated to the same content (identified by the itemId). The collection will contain meta data configs for all the service instances that the content is published to.

Specified by:
getByItemId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getByItemIdAndServiceId

public Collection<MetaDataConfig> getByItemIdAndServiceId(SessionConfig sessionConfig,
                                                          String itemId,
                                                          String serviceId,
                                                          String sourceId,
                                                          ITransaction transaction)
                                                   throws ManagerException,
                                                          PortalException
Description copied from interface: IMetaDataManager
Gets a Collection of meta data configs associated to the same content (identified by the itemId, serviceId and sourceId). The collection will contain meta data configs for all the service instances that the content is published to.

Specified by:
getByItemIdAndServiceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getByItemIdAndServiceId

public Collection<MetaDataConfig> getByItemIdAndServiceId(SessionConfig sessionConfig,
                                                          String itemId,
                                                          String serviceId,
                                                          String sourceId,
                                                          boolean considerInactiveVersion,
                                                          ITransaction transaction)
                                                   throws ManagerException,
                                                          PortalException
Description copied from interface: IMetaDataManager
Gets a Collection of meta data configs associated to the same content (identified by the itemId, serviceId and sourceId). The collection will contain meta data configs for all the service instances that the content is published to.

Specified by:
getByItemIdAndServiceId in interface IMetaDataManager
considerInactiveVersion - TODO
Returns:
Throws:
ManagerException
PortalException

getByItemIdAndServiceInstanceId

public MetaDataConfig getByItemIdAndServiceInstanceId(SessionConfig sessionConfig,
                                                      String itemId,
                                                      String serviceInstanceId,
                                                      String sourceId,
                                                      ITransaction transaction)
                                               throws ManagerException,
                                                      PortalException
Description copied from interface: IMetaDataManager
Gets the meta data config associated to the content (identified by the itemId, serviceInstanceId and sourceId).

Specified by:
getByItemIdAndServiceInstanceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getByItemIdAndServiceInstanceId

public MetaDataConfig getByItemIdAndServiceInstanceId(SessionConfig sessionConfig,
                                                      String itemId,
                                                      String serviceInstanceId,
                                                      String sourceId,
                                                      boolean considerInactiveVersion,
                                                      ITransaction transaction)
                                               throws ManagerException,
                                                      PortalException
Description copied from interface: IMetaDataManager
Gets the meta data config associated to the content (identified by the itemId, serviceInstanceId and sourceId).

Specified by:
getByItemIdAndServiceInstanceId in interface IMetaDataManager
considerInactiveVersion - TODO
Returns:
Throws:
ManagerException
PortalException

getParentServiceInstanceId

public String getParentServiceInstanceId(SessionConfig sessionConfig,
                                         String itemId,
                                         String serviceId,
                                         ITransaction transaction)
                                  throws ManagerException,
                                         PortalException
Description copied from interface: IMetaDataManager
Gets the service instance where the given content (identified by itemId and serviceId) was created.

Specified by:
getParentServiceInstanceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getIdsByServiceInstanceId

public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig,
                                                    String serviceInstanceId,
                                                    ITransaction transaction)
                                             throws ManagerException,
                                                    PortalException
Description copied from interface: IMetaDataManager
Gets all meta data ids associated with the given service instance.

Specified by:
getIdsByServiceInstanceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getByParentServiceInstanceId

public List<MetaDataConfig> getByParentServiceInstanceId(SessionConfig sessionConfig,
                                                         String parentServiceInstanceId,
                                                         ITransaction transaction)
                                                  throws ManagerException,
                                                         PortalException
Description copied from interface: IMetaDataManager
Gets all meta data configs associated to a content that was created by the given service instance, wheter the meta data are directly associated with the service instance or not.

Specified by:
getByParentServiceInstanceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

add

public String add(SessionConfig sessionConfig,
                  MetaDataConfig metaDataConfig,
                  ITransaction transaction)
           throws ManagerException,
                  PortalException
Description copied from interface: IMetaDataManager
Adds the meta data config.

Specified by:
add in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

update

public void update(SessionConfig sessionConfig,
                   MetaDataConfig metaDataConfig,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IMetaDataManager
Updates the meta data config

Specified by:
update in interface IMetaDataManager
Throws:
ManagerException
PortalException

delete

public void delete(SessionConfig sessionConfig,
                   String metaDataId,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IMetaDataManager
Deletes the meta data config for the given meta data id.

Specified by:
delete in interface IMetaDataManager
Throws:
ManagerException
PortalException

delete

public void delete(SessionConfig sessionConfig,
                   Collection<String> metaDataIds,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IMetaDataManager
Deletes the meta data configs for the given collection of meta data ids.

Specified by:
delete in interface IMetaDataManager
Throws:
ManagerException
PortalException

deleteByItemIds

public void deleteByItemIds(SessionConfig sessionConfig,
                            Collection<String> itemIds,
                            String serviceId,
                            ITransaction transaction)
                     throws ManagerException,
                            PortalException
Description copied from interface: IMetaDataManager
Deletes the meta data configs for the given collection of itemIds associated to the given serviceId.

Specified by:
deleteByItemIds in interface IMetaDataManager
Throws:
ManagerException
PortalException

getMetaDataToPublishByServiceId

public Collection<MetaDataConfig> getMetaDataToPublishByServiceId(SessionConfig sessionConfig,
                                                                  String serviceId,
                                                                  ITransaction transaction)
                                                           throws ManagerException,
                                                                  PortalException
Description copied from interface: IMetaDataManager
Gets all unpublished meta data configs of the given serviceId that are inside the publishing period according to publishing dates.

Specified by:
getMetaDataToPublishByServiceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getMetaDataToExpireByServiceId

public Collection<MetaDataConfig> getMetaDataToExpireByServiceId(SessionConfig sessionConfig,
                                                                 String serviceId,
                                                                 ITransaction transaction)
                                                          throws ManagerException,
                                                                 PortalException
Description copied from interface: IMetaDataManager
Gets all published meta data configs of the given serviceId that are outside the publishing period according to publishing dates.

Specified by:
getMetaDataToExpireByServiceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getMetaDataToExpireHighlightByServiceId

public Collection<MetaDataConfig> getMetaDataToExpireHighlightByServiceId(SessionConfig sessionConfig,
                                                                          String serviceId,
                                                                          ITransaction transaction)
                                                                   throws ManagerException,
                                                                          PortalException
Description copied from interface: IMetaDataManager
Gets all currently set as highlight meta data configs of the given serviceId that are outside the highlight period according to highlight publishing date.

Specified by:
getMetaDataToExpireHighlightByServiceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

updatePublished

public void updatePublished(SessionConfig sessionConfig,
                            Collection<MetaDataConfig> metaDataConfigs,
                            boolean newPublishedValue,
                            ITransaction transaction)
                     throws ManagerException,
                            PortalException
Description copied from interface: IMetaDataManager
Updates published status of the given collection of meta data configs with the given value.

Specified by:
updatePublished in interface IMetaDataManager
Throws:
ManagerException
PortalException

updateHighlight

public void updateHighlight(SessionConfig sessionConfig,
                            Collection<MetaDataConfig> metaDataConfigs,
                            ITransaction transaction)
                     throws ManagerException,
                            PortalException
Description copied from interface: IMetaDataManager
Updates highligt status of the given collection of meta data configs setting it as false (such as there is no "Start highlight date").

Specified by:
updateHighlight in interface IMetaDataManager
Throws:
ManagerException
PortalException

getNumComments

public int getNumComments(SessionConfig sessionConfig,
                          String metaDataId,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Description copied from interface: IMetaDataManager
Gets the number of comments associated with given meta data.

Specified by:
getNumComments in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getComments

public List<CommentConfig> getComments(SessionConfig sessionConfig,
                                       String metaDataId,
                                       ITransaction transaction)
                                throws ManagerException,
                                       PortalException
Description copied from interface: IMetaDataManager
Gets the comments associated with the given meta data.

Specified by:
getComments in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

addComment

public String addComment(SessionConfig sessionConfig,
                         CommentConfig commentConfig,
                         ITransaction transaction)
                  throws ManagerException,
                         PortalException
Description copied from interface: IMetaDataManager
Add the comment.

Specified by:
addComment in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getPublishedToPrincipalsByMetaDataId

public Collection<PublishToPrincipalConfig> getPublishedToPrincipalsByMetaDataId(SessionConfig sessionConfig,
                                                                                 String metaDataId,
                                                                                 ITransaction transaction)
                                                                          throws ManagerException,
                                                                                 PortalException
Description copied from interface: IMetaDataManager
Gets a collection of publish to principals config for the given meta data.

Specified by:
getPublishedToPrincipalsByMetaDataId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

addPublishedToPrincipal

public String addPublishedToPrincipal(SessionConfig sessionConfig,
                                      PublishToPrincipalConfig publishToPrincipalConfig,
                                      ITransaction transaction)
                               throws ManagerException,
                                      PortalException
Description copied from interface: IMetaDataManager
Adds the publish to principal config.

Specified by:
addPublishedToPrincipal in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

deletePublishedToPrincipal

public void deletePublishedToPrincipal(SessionConfig sessionConfig,
                                       String metaDataId,
                                       ITransaction transaction)
                                throws ManagerException,
                                       PortalException
Description copied from interface: IMetaDataManager
Deletes all publish to principal config for the given meta data.

Specified by:
deletePublishedToPrincipal in interface IMetaDataManager
Throws:
ManagerException
PortalException

deletePublishedToPrincipalByPrincipalId

public void deletePublishedToPrincipalByPrincipalId(SessionConfig sessionConfig,
                                                    String principalId,
                                                    ITransaction transaction)
                                             throws ManagerException,
                                                    PortalException
Description copied from interface: IMetaDataManager
Delete the published to principal informations for all meta data published to the specified principal.

Specified by:
deletePublishedToPrincipalByPrincipalId in interface IMetaDataManager
Throws:
ManagerException
PortalException

getContentsByLanguageAssociation

public Collection<LanguageConfig> getContentsByLanguageAssociation(SessionConfig sessionConfig,
                                                                   String tableName,
                                                                   String primaryKeyFieldId,
                                                                   String primaryKeyValue,
                                                                   String primaryNameFieldId,
                                                                   String serviceInstanceId,
                                                                   String nameFilterValue,
                                                                   String selectedLanguageId,
                                                                   String languageContentId,
                                                                   ITransaction transaction)
                                                            throws ManagerException,
                                                                   PortalException
Description copied from interface: IMetaDataManager
Gets all contents that might be associated by language with the given content. Those cannot be already associated with any other content with the same language as the given content. Contents set as "all languages" cannot be associated with any other contents also.

Specified by:
getContentsByLanguageAssociation in interface IMetaDataManager
tableName - The table name of the service
primaryKeyFieldId - Primary Key column name of the table of the service.
primaryKeyValue - Primary Key value of the given content on the table of the service.
primaryNameFieldId - Primary Name column name of the table of the service.
nameFilterValue - Value used for a "like filter" over the primary name of the associable contents.
selectedLanguageId - Selected language for the given content.
languageContentId - Language content id for the given content.
Returns:
Throws:
ManagerException
PortalException

getAssociatedContents

public Collection<LanguageConfig> getAssociatedContents(SessionConfig sessionConfig,
                                                        String tableName,
                                                        String primaryKeyFieldId,
                                                        String primaryNameFieldId,
                                                        String languageContentId,
                                                        ITransaction transaction)
                                                 throws ManagerException,
                                                        PortalException
Description copied from interface: IMetaDataManager
Gets all language associated contents with the given content.

Specified by:
getAssociatedContents in interface IMetaDataManager
tableName - The table name of the service
primaryKeyFieldId - Primary Key column name of the table of the service.
primaryNameFieldId - Primary Name column name of the table of the service.
languageContentId - Language content id for the given content.
Returns:
Throws:
ManagerException
PortalException

getVersionsItemIds

public Collection<String> getVersionsItemIds(SessionConfig sessionConfig,
                                             Collection<String> itemIds,
                                             String serviceInstanceId,
                                             String sourceId,
                                             ITransaction transaction)
                                      throws ManagerException,
                                             PortalException
Description copied from interface: IMetaDataManager
Gets a collection of itemIds containing all the versions of each version represented by an itemId on the collection given.

Specified by:
getVersionsItemIds in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getNumVersions

public int getNumVersions(SessionConfig sessionConfig,
                          String itemId,
                          String serviceInstanceId,
                          String sourceId,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Description copied from interface: IMetaDataManager
Gets the number of versions (ignoring meta data plurality) existent for a given content. That means, for example, if a given content is published for two service instances (and so associated with two meta datas) and has three edited versions for each, this method will return three, instead of six (that is the actual number of rows on meta data version table for this content).

Specified by:
getNumVersions in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getVersionContentIdByItemIdAndServiceInstanceId

public String getVersionContentIdByItemIdAndServiceInstanceId(SessionConfig sessionConfig,
                                                              String itemId,
                                                              String serviceInstanceId,
                                                              String sourceId,
                                                              ITransaction transaction)
                                                       throws ManagerException,
                                                              PortalException
Description copied from interface: IMetaDataManager
Gets the version content id of the content (identified by itemId, service instance id and source id).

Specified by:
getVersionContentIdByItemIdAndServiceInstanceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getVersionContentIdByItemIdAndServiceId

public String getVersionContentIdByItemIdAndServiceId(SessionConfig sessionConfig,
                                                      String itemId,
                                                      String serviceId,
                                                      String sourceId,
                                                      ITransaction transaction)
                                               throws ManagerException,
                                                      PortalException
Description copied from interface: IMetaDataManager
Gets the version content id of the content (identified by itemId, service id and source id).

Specified by:
getVersionContentIdByItemIdAndServiceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getVersion

public VersionConfig getVersion(SessionConfig sessionConfig,
                                String versionId,
                                ITransaction transaction)
                         throws ManagerException,
                                PortalException
Description copied from interface: IMetaDataManager
Gets the version information.

Specified by:
getVersion in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

addVersion

public String addVersion(SessionConfig sessionConfig,
                         VersionConfig versionConfig,
                         ITransaction transaction)
                  throws ManagerException,
                         PortalException
Description copied from interface: IMetaDataManager
Adds the version information.

Specified by:
addVersion in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

updateVersion

public void updateVersion(SessionConfig sessionConfig,
                          VersionConfig versionConfig,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Description copied from interface: IMetaDataManager
Updates the version information.

Specified by:
updateVersion in interface IMetaDataManager
Throws:
ManagerException
PortalException

deleteVersion

public void deleteVersion(SessionConfig sessionConfig,
                          String versionId,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Description copied from interface: IMetaDataManager
Deletes version information.

Specified by:
deleteVersion in interface IMetaDataManager
Throws:
ManagerException
PortalException

getVersionsByVersionContentId

public Collection<VersionConfig> getVersionsByVersionContentId(SessionConfig sessionConfig,
                                                               String versionContentId,
                                                               boolean includeActiveOnly,
                                                               boolean getAllMetaDataVersions,
                                                               ITransaction transaction)
                                                        throws ManagerException,
                                                               PortalException
Description copied from interface: IMetaDataManager
Get versions information by version content id.

Specified by:
getVersionsByVersionContentId in interface IMetaDataManager
includeActiveOnly - If true, filters query so it will return only active versions.
getAllMetaDataVersions - If true, query will consider meta data plurality. That means that if the given content is published for multiple service instances, the collection returned will contain information for each version of each service instance that the content is published to. If false, query will not consider meta data plurality and so, returned collection items will contain no information on metaDataId and collection will have as many items as the number of times content was edited, independent of the number of service instances that it is published to.
Returns:
Throws:
ManagerException
PortalException

getIdByVersionContentIdAndServiceInstanceId

public String getIdByVersionContentIdAndServiceInstanceId(SessionConfig sessionConfig,
                                                          String versionContentId,
                                                          String serviceInstanceId,
                                                          ITransaction transaction)
                                                   throws ManagerException,
                                                          PortalException
Description copied from interface: IMetaDataManager
Gets meta data id for the given content (identified by versionContentId and serviceInstanceId).

Specified by:
getIdByVersionContentIdAndServiceInstanceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getIdsByVersionContentIdAndServiceId

public Collection<String> getIdsByVersionContentIdAndServiceId(SessionConfig sessionConfig,
                                                               String versionContentId,
                                                               String serviceId,
                                                               ITransaction transaction)
                                                        throws ManagerException,
                                                               PortalException
Description copied from interface: IMetaDataManager
Gets meta data id for the given content (identified by versionContentId and serviceId).

Specified by:
getIdsByVersionContentIdAndServiceId in interface IMetaDataManager
Returns:
Throws:
ManagerException
PortalException

getSourceIdsByServiceId

public Collection<String> getSourceIdsByServiceId(String serviceId,
                                                  ITransaction transaction)
                                           throws ManagerException,
                                                  PortalException
Description copied from interface: IMetaDataManager
Returns a list of sources of a given service that are being referenced by existing metadata.

Specified by:
getSourceIdsByServiceId in interface IMetaDataManager
Parameters:
serviceId - service identifier
transaction - transaction
Returns:
collection of referenced sources' identifiers.
Throws:
PortalException
ManagerException


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