<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom type not effect with image in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8206#M3729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear everyone,&lt;/P&gt;&lt;P&gt;I've define custom type, I try to create new document belong custom type is OK. But when i try JPG file System auto attach aspect&amp;nbsp;EXIF (exif:exif), and It seem custom type not effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session cmisSession = getCmisSession();&lt;/P&gt;&lt;P&gt;String fileName = file.getName();&lt;/P&gt;&lt;P&gt;// create a map of properties if one wasn't passed in&lt;BR /&gt; if (props == null) {&lt;BR /&gt; props = new HashMap&amp;lt;String, Object&amp;gt;();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// Add the object type ID if it wasn't already&lt;BR /&gt; if (props.get("cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId") == null) {&lt;BR /&gt; props.put("cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectTypeId", "D:mc:loanDocs");&lt;BR /&gt; // ,P:sc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductRelated,P:cm:titled&lt;BR /&gt; }&lt;BR /&gt; // Add the name if it wasn't already&lt;BR /&gt; if (props.get("cmis:name") == null) {&lt;BR /&gt; props.put("cmis:name", fileName);&lt;BR /&gt; }&lt;BR /&gt; props.put("mc:refNumber","142");&lt;BR /&gt; props.put("mc:refName", "142");&lt;BR /&gt; props.put("mc:customerName", "Le Trong Oanh");&lt;BR /&gt; props.put("mc:idCardNumber", "12345678910");&lt;BR /&gt; props.put("mc:loanTerm", "6");&lt;BR /&gt; props.put("mc:contractNumber", "123456789012345");&lt;BR /&gt; props.put("mc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductCode", "tragop");&lt;BR /&gt; props.put("mc:loanAmount", 500000);&lt;/P&gt;&lt;P&gt;ContentStream contentStream = cmisSession.getObjectFactory().createContentStream(fileName, file.length(),&lt;BR /&gt; fileType, new FileInputStream(file));&lt;BR /&gt; Document document = null;&lt;BR /&gt; try {&lt;BR /&gt; document = parentFolder.createDocument(props, contentStream, null);&lt;BR /&gt; System.out.println("Created new document: " + document.getId());&lt;BR /&gt; } catch (CmisContentAlreadyExistsException ccaee) {&lt;BR /&gt; document = (Document) cmisSession.getObjectByPath(parentFolder.getPath() + "/" + fileName);&lt;BR /&gt; System.out.println("Document already exists: " + fileName);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2017 04:38:19 GMT</pubDate>
    <dc:creator>phong_van</dc:creator>
    <dc:date>2017-07-11T04:38:19Z</dc:date>
    <item>
      <title>Custom type not effect with image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8206#M3729</link>
      <description>Dear everyone,I've define custom type, I try to create new document belong custom type is OK. But when i try JPG file System auto attach aspect&amp;nbsp;EXIF (exif:exif), and It seem custom type not effect.this is my codeSession cmisSession = getCmisSession();String fileName = file.getName();// create a map</description>
      <pubDate>Tue, 11 Jul 2017 04:38:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8206#M3729</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2017-07-11T04:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Custom type not effect with image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8207#M3730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check node details in Node Browser or in CMIS workbench ? I would say that the problem is how Alfresco forms are viewed (configured), when Alfresco applies automatically EXIF aspect&amp;nbsp;to your custom type. Check in Node Browser if the document has the given custom type. You can also delete aspect and look if your custom type is applied.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 07:21:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8207#M3730</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-07-11T07:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom type not effect with image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8208#M3731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear&amp;nbsp;&lt;A _jive_internal="true" class="" data-avatarid="2840" data-externalid="" data-online="false" data-presence="null" data-userid="80296" data-username="cesarista" href="https://community.alfresco.com/people/cesarista" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;" rel="nofollow noopener noreferrer"&gt;Cesar Capillas&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for reply. I'm using Node Brower. yes, when i remove exif aspect, all property of custom type is display. But I want to stop auto attach &amp;nbsp;exif aspect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 07:30:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8208#M3731</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2017-07-11T07:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom type not effect with image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8209#M3732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try setting&amp;nbsp;&lt;STRONG&gt;extracter.TikaAuto.enabled=false&lt;/STRONG&gt; in alfresco-global.properties (tested some time ago).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.zylk.net/es/web-2-0/blog/-/blogs/how-to-deactivate-metadata-extraction-in-alfresco" title="http://www.zylk.net/es/web-2-0/blog/-/blogs/how-to-deactivate-metadata-extraction-in-alfresco" rel="nofollow noopener noreferrer"&gt;- How to deactivate metadata extraction in Alfresco - zylk&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 15:23:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8209#M3732</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2017-07-11T15:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom type not effect with image</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8210#M3733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Cesar Capillas,&lt;/P&gt;&lt;P&gt;Thanks for your heplp, I've try to do as your instruction and I sucess.&lt;/P&gt;&lt;P&gt;Once again many thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 02:55:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-type-not-effect-with-image/m-p/8210#M3733</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2017-07-12T02:55:04Z</dc:date>
    </item>
  </channel>
</rss>

