Posts

Showing posts with the label Content Presenter

WebCenter Portal 12.2.x.x: Performance Bug in VCR services

During my last project of Oracle WebCenter Portal 12c we have found a performance degradation when using Content Presenter. As you know, Content Presenter calls the following services which are coming from PortalVCRHelper component: VCR_GET_CONTENT_TYPES: Returns the list of Content Types which are Profiles and Region Definitions defined in WebCenter Content. VCR_GET_CONTENT_TYPE: Returns specific information of the Content Type. VCR_GET_DOCUMENT_BY_NAME: Returns the information of a DOC_INFO + the Content of the Data File (XML content). On Oracle WebCenter Content 12cR2, Imaging has been embedded into the Content Server as two components: Imaging : Bringing Imaging capabilities to the new Content Manager Task Flow (which is the WCC ADF UI embedded in WebCenter Portal). IpmRepository : The old capabilities of using Imaging as a repository. Imaging executes some filters in Oracle WebCenter Content which degrades the performance of the VCR calls when the number of Profile...

Content Presenter: Wizard vs Page Definition

Image
Content Presenter es uno de los Task Flow más populares en WebCenter Portal dado que permite la visualización de contentidos en WebCenter Content así como Assets del viejo Site Studio. Content Presenter para mostrar contenido de Site Studio y Content Este post explica las diferencias principales entre configurarlo utilizando el Content Presenter Wizard en Runtime y configurarlo en Design/Runtime a través de los parámetros de entrada. Configuración a través de la Page Definition . Configuración por parámetros de Content Presenter Esta configuración está pensada para desarrolladores que usan Content Presenter en sus desarrollos en Design Time o para configurar de una manera más "avanzada" en Runtime cuando se requiere el uso de EL Expressions complicadas. Configuración a través del Wizard Content Presenter Wizard Permite al usuario final configurar de manera sencilla los contenidos a visualizar y qué plantillas utilizar. Diferencias Las preferencias ...

Mostrando el tamaño de un fichero en Content Presenter

Image
Este post surge del siguiente Thread del foro de OTN: Show the file size in Kilobytes Para mostrar el tamano de un fichero se utiliza comunmente la siguiente EL Expression que nos da el tamaño en Bytes del nodo actual en una plantilla de Content Presenter. #{node.propertyMap['VaultFileSize'].value} Para mostrar en formato de texto dichos Bytes en Kilobytes etc... Tenemos dos maneras distintas: Usando el JSF Converter que proporciona la librería por defecto de Document Service de Oracle WebCenter. Usar nuestro propio JSF Converter. Fragmento del faces-config.xml registrando el Converter Converts the size of a file expressed as a Number to a String with a size unit. Documents Size Converter com.merchan.sample.jsf.converter.Size com.merchan.sample.jsf.converter.SizeConverter Código del Converter package com.merchan.sample.jsf.converter; import oracle.webcenter.doclib.internal.view.convert.AbstractCo...