<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Override information on a content object</title><link>https://answers.axonivy.com/questions/1631/override-information-on-a-content-object</link><description>&lt;p&gt;In an Override Project, I need to know, if current Content Object is overridden or not. If so, customer can change the Value.&lt;/p&gt;
&lt;p&gt;Something like that:
ivy.cms.findContentObjectValue(String,java.util.Locale).isOverride()&lt;/p&gt;
&lt;p&gt;Exists a way, how I can get this information?&lt;/p&gt;
&lt;p&gt;Thank you very much in advance!&lt;/p&gt;
&lt;p&gt;Cheers Andreas&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1631/override-information-on-a-content-object" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 22 Jan 2016 09:47:43 -0500</lastBuildDate><item><title>Answer by Andreas</title><link>https://answers.axonivy.com/questions/1631/override-information-on-a-content-object/1635</link><description>&lt;p&gt;Hi Christian&lt;/p&gt;
&lt;p&gt;Thank you for your answer. &lt;/p&gt;
&lt;pre&gt;&lt;code&gt;String pmv = ivy.cms.findContentObjectValue(String,java.util.Locale).getProcessModelVersion().toString()
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;With this Information it is possible to determine, from which project the content comes from.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if(!pmv.matches(".*foo_bar\\$.*")) {
//ivy.log.info("content object from override");
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In that case, the user can change the Value in his own cms.&lt;/p&gt;
&lt;p&gt;Cheers
Andreas&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Andreas</dc:creator><pubDate>Fri, 22 Jan 2016 09:47:43 -0500</pubDate><guid>https://answers.axonivy.com/questions/1631/override-information-on-a-content-object/1635</guid></item><item><title>Answer by Christian Strebel</title><link>https://answers.axonivy.com/questions/1631/override-information-on-a-content-object/1632</link><description>&lt;p&gt;You could find out if it was form the cms you searched in or not:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ivy.cms.findContentObjectValue(String,java.util.Locale).getContentManagementSystem() == ivy.cms
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But with this solution you do not find out if it was really overridden or not, but may be this is already enough?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Christian Strebel</dc:creator><pubDate>Fri, 22 Jan 2016 09:01:09 -0500</pubDate><guid>https://answers.axonivy.com/questions/1631/override-information-on-a-content-object/1632</guid></item></channel></rss>