|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.metadata.MetaDataManager
public class MetaDataManager
Manager for meta data
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 |
---|
public MetaDataManager()
Method Detail |
---|
public MetaDataConfig get(SessionConfig sessionConfig, String metaDataId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
get
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getByItemId(SessionConfig sessionConfig, String itemId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByItemId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getByItemId(SessionConfig sessionConfig, String itemId, boolean considerInactiveVersion, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByItemId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getByItemIdAndServiceId(SessionConfig sessionConfig, String itemId, String serviceId, String sourceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByItemIdAndServiceId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getByItemIdAndServiceId(SessionConfig sessionConfig, String itemId, String serviceId, String sourceId, boolean considerInactiveVersion, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByItemIdAndServiceId
in interface IMetaDataManager
considerInactiveVersion
- TODO
ManagerException
PortalException
public MetaDataConfig getByItemIdAndServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByItemIdAndServiceInstanceId
in interface IMetaDataManager
ManagerException
PortalException
public MetaDataConfig getByItemIdAndServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, boolean considerInactiveVersion, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByItemIdAndServiceInstanceId
in interface IMetaDataManager
considerInactiveVersion
- TODO
ManagerException
PortalException
public String getParentServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getParentServiceInstanceId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<String> getIdsByServiceInstanceId(SessionConfig sessionConfig, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getIdsByServiceInstanceId
in interface IMetaDataManager
ManagerException
PortalException
public List<MetaDataConfig> getByParentServiceInstanceId(SessionConfig sessionConfig, String parentServiceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getByParentServiceInstanceId
in interface IMetaDataManager
ManagerException
PortalException
public String add(SessionConfig sessionConfig, MetaDataConfig metaDataConfig, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
add
in interface IMetaDataManager
ManagerException
PortalException
public void update(SessionConfig sessionConfig, MetaDataConfig metaDataConfig, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
update
in interface IMetaDataManager
ManagerException
PortalException
public void delete(SessionConfig sessionConfig, String metaDataId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
delete
in interface IMetaDataManager
ManagerException
PortalException
public void delete(SessionConfig sessionConfig, Collection<String> metaDataIds, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
delete
in interface IMetaDataManager
ManagerException
PortalException
public void deleteByItemIds(SessionConfig sessionConfig, Collection<String> itemIds, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
deleteByItemIds
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getMetaDataToPublishByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getMetaDataToPublishByServiceId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getMetaDataToExpireByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getMetaDataToExpireByServiceId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<MetaDataConfig> getMetaDataToExpireHighlightByServiceId(SessionConfig sessionConfig, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getMetaDataToExpireHighlightByServiceId
in interface IMetaDataManager
ManagerException
PortalException
public void updatePublished(SessionConfig sessionConfig, Collection<MetaDataConfig> metaDataConfigs, boolean newPublishedValue, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
updatePublished
in interface IMetaDataManager
ManagerException
PortalException
public void updateHighlight(SessionConfig sessionConfig, Collection<MetaDataConfig> metaDataConfigs, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
updateHighlight
in interface IMetaDataManager
ManagerException
PortalException
public int getNumComments(SessionConfig sessionConfig, String metaDataId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getNumComments
in interface IMetaDataManager
ManagerException
PortalException
public List<CommentConfig> getComments(SessionConfig sessionConfig, String metaDataId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getComments
in interface IMetaDataManager
ManagerException
PortalException
public String addComment(SessionConfig sessionConfig, CommentConfig commentConfig, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
addComment
in interface IMetaDataManager
ManagerException
PortalException
public Collection<PublishToPrincipalConfig> getPublishedToPrincipalsByMetaDataId(SessionConfig sessionConfig, String metaDataId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getPublishedToPrincipalsByMetaDataId
in interface IMetaDataManager
ManagerException
PortalException
public String addPublishedToPrincipal(SessionConfig sessionConfig, PublishToPrincipalConfig publishToPrincipalConfig, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
addPublishedToPrincipal
in interface IMetaDataManager
ManagerException
PortalException
public void deletePublishedToPrincipal(SessionConfig sessionConfig, String metaDataId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
deletePublishedToPrincipal
in interface IMetaDataManager
ManagerException
PortalException
public void deletePublishedToPrincipalByPrincipalId(SessionConfig sessionConfig, String principalId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
deletePublishedToPrincipalByPrincipalId
in interface IMetaDataManager
ManagerException
PortalException
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
IMetaDataManager
getContentsByLanguageAssociation
in interface IMetaDataManager
tableName
- The table name of the serviceprimaryKeyFieldId
- 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.
ManagerException
PortalException
public Collection<LanguageConfig> getAssociatedContents(SessionConfig sessionConfig, String tableName, String primaryKeyFieldId, String primaryNameFieldId, String languageContentId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getAssociatedContents
in interface IMetaDataManager
tableName
- The table name of the serviceprimaryKeyFieldId
- 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.
ManagerException
PortalException
public Collection<String> getVersionsItemIds(SessionConfig sessionConfig, Collection<String> itemIds, String serviceInstanceId, String sourceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getVersionsItemIds
in interface IMetaDataManager
ManagerException
PortalException
public int getNumVersions(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getNumVersions
in interface IMetaDataManager
ManagerException
PortalException
public String getVersionContentIdByItemIdAndServiceInstanceId(SessionConfig sessionConfig, String itemId, String serviceInstanceId, String sourceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getVersionContentIdByItemIdAndServiceInstanceId
in interface IMetaDataManager
ManagerException
PortalException
public String getVersionContentIdByItemIdAndServiceId(SessionConfig sessionConfig, String itemId, String serviceId, String sourceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getVersionContentIdByItemIdAndServiceId
in interface IMetaDataManager
ManagerException
PortalException
public VersionConfig getVersion(SessionConfig sessionConfig, String versionId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getVersion
in interface IMetaDataManager
ManagerException
PortalException
public String addVersion(SessionConfig sessionConfig, VersionConfig versionConfig, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
addVersion
in interface IMetaDataManager
ManagerException
PortalException
public void updateVersion(SessionConfig sessionConfig, VersionConfig versionConfig, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
updateVersion
in interface IMetaDataManager
ManagerException
PortalException
public void deleteVersion(SessionConfig sessionConfig, String versionId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
deleteVersion
in interface IMetaDataManager
ManagerException
PortalException
public Collection<VersionConfig> getVersionsByVersionContentId(SessionConfig sessionConfig, String versionContentId, boolean includeActiveOnly, boolean getAllMetaDataVersions, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
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.
ManagerException
PortalException
public String getIdByVersionContentIdAndServiceInstanceId(SessionConfig sessionConfig, String versionContentId, String serviceInstanceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getIdByVersionContentIdAndServiceInstanceId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<String> getIdsByVersionContentIdAndServiceId(SessionConfig sessionConfig, String versionContentId, String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getIdsByVersionContentIdAndServiceId
in interface IMetaDataManager
ManagerException
PortalException
public Collection<String> getSourceIdsByServiceId(String serviceId, ITransaction transaction) throws ManagerException, PortalException
IMetaDataManager
getSourceIdsByServiceId
in interface IMetaDataManager
serviceId
- service identifiertransaction
- transaction
PortalException
ManagerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |