IDfFormatRecognizer gives old content type of documents
Hello ,
I have a method which gives content type of document
public String getContentType (String strPath){
String format = "";
try{
IDfFormatRecognizer formatRec = clientX.getFormatRecognizer(idfSession, strPath, null);
if(formatRec.getDefaultSuggestedFileFormat() != null) {
format = formatRec.getDefaultSuggestedFileFormat();
} else {
format = "unknown";
}
} catch(DfException e){
e.printStackTrace();
}
return format;
}
in this case if i have a word document with extension as ".doc" it gives me content type as "msw" , instead i want latest and most appropriate
content type , when i have checked dm_format by using DQL query " select distinct name from dm_format" for doc it gives me
msw | |
msw12 | |
msw12me | |
msw12metemplate | |
msw12template | |
msw14 | |
msw14template | |
msw3 | |
msw6 | |
msw6template | |
msw8 | |
msw8template |
list , now if i have file extension with me how can i get the " name " ie latest and most appropriate content type from documentum for
file path which i will provide
Regards
Comments
-
Alternatively, if you dont want to delete the old format class (b/c they are in use), you can update the description attribute for the old format objects and NULL the value out. Then in your DQL query, just query for the ones that have description value.
0 -
Hello johny ,
I have scenario where i am getting file path from a method now from that file path or file extension , i want to retrieve
a content type in document so by using query or dfc class other than IDfFormatRecognizer() , how can i do it
Regards
Mayur Mitkari
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 152 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories