VCM V8 content management tips

1. workplace extension compile

Weblogic.jar has dependency on its manefist file to reference to other jars.

 

2. CMA extension development

Get ServletContext for v8 cma extension

HttpServletRequest httpRequest = (HttpServletRequest)request.getService().getRequest(). getWrappedObject();

ServletContext ctx = httpRequest.getSession().getServletContext();

 

3. Export only the updated content from QA to update my Prod

SELECT VCO.ID
FROM VGNCMSOBJECT VCO, VGNASCONTENTTYPE VACT, VGNASMOMETADATA VAMM
WHERE VAMM.OBJECTTYPEID = VACT.ID
AND VAMM.CONTENTMGMTID = VCO.ID
AND VCO.LASTMODTIME > (last export start time)

This query will return the IDs that need to be exported. You take these IDs
and use them to create a package manifest file to export those objects.


List of vgn system table:

Managed Object definition

VGNCMSOBJECT

Mapping between ManagedObject and Content Table.

VGNASMOMAP



4.  VCM - Unable to Search Content Using GUID in V8

Add the parameter vcmSys-identifier before the GUID, and then perform a search.

Example:

vcmSys-identifier:0039c52393c89210VgnVCM1000008221120aRCRD

 

5. How to change the FROM address in workflow email notifications

 

Open the Configuration Console and navigate to:
Vignette V7 Content Suite – vgninst –> Vignette V7 Content Management
Services –> VCM Server –> PWS –> Workflow –> Mail –> Settings

Change the value of the FROM variable.

 

6. How to change clear DSM/FURL cache

 <%@page import="com.vignette.ext.templating.cache.HeapLimitedObjectCache"%>
<%@page import="com.vignette.ext.templating.util.SysUtil"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>

<%


               HeapLimitedObjectCache cache = (HeapLimitedObjectCache)SysUtil.getObjectCache();
               if(cache != null) {
                   SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyyHH:mm:ss");
                   String tstamp = sdf.format(new Date());
                       long cachedObjectSize = cache.getCachedObjectSize();
                       long cacheInfo = cache.getCacheInfo();
                   %><%=tstamp%> <%=cachedObjectSize%>,<%=cacheInfo%><%
                       cache.removeAll();
                   %><%=tstamp%> <%=cachedObjectSize%>,<%=cacheInfo%><%
               }
%>

7. v8.1 CMA debug environment jar file list: 

 

wlfullclient.jar

vgn-shared-logging.jar

log4j.jar

vgn-appsvcs-cma.jar

thirdparty-combined.jar

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章