Hi All,
I am trying to retrieve the static file version on V8, I couldable to do it successfully with the content instance using the followingAPI.
ContentManagementOps.retrieveVersion(vcmref,objected,request params) but when i use the same API for a static file I am getting the following exception.
ava.lang.ClassCastException: com.vignette.cms.client.javabean.StaticFile
at com.vignette.as.server.logic.cms.ContentManagementOpsLogic.retrieveVersionHelper(ContentManagementOpsLogic.java:1214)
at com.vignette.as.server.logic.cms.ContentManagementOpsLogic.retrieveVersion(ContentManagementOpsLogic.java:1195)
at com.vignette.as.server.logic.cms.ContentManagementOpsLogicGen.retrieveVersion(ContentManagementOpsLogicGen.java:2909)
at com.vignette.as.server.ejb.ContentManagementOpsBean.retrieveVersion(ContentManagementOpsBean.java:2661)
at com.vignette.as.server.ejb.ContentManagementOpsBean_fz2as4_EOImpl.retrieveVersion(ContentManagementOpsBean_fz2as4_EOImpl.java:1303)
at com.vignette.as.server.ejb.ContentManagementOpsBean_fz2as4_EOImpl_WLSkel.invoke(UnknownSource)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(UnknownSource)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
In V8.0 Static file is also a ManagedObject, So I amassuming that whatever holds good for content instance should hold good forstatic file as well. Correct me if I am wrong.
Is there any other way to get the version of a static file?
Regards,
Mallik Vamaraju