I'm extending the Editor save functionality and need to know how to get the Content Instance on a newly created CI?
When a content instance is edited, I can retrieve the information as follows:
String editorID = getEditorId(request);
ManagedObjectVCMRef ref = new ManagedObjectVCMRef(editorID);
ManagedObject mo = ManagedObject.findByContentManagementId(ref);
ContentInstance ci = (ContentInstance)ContentInstance.findByContentManagementId(ref);
ContentType ctType = (ContentType) mo.getObjectType();
ctXMLName = ctType.getData().getName();
logicalPath = ctType.getLogicalPath();
etc.......
However, when a new content instance is created, the EditorID is blank.
Any tips?