We currently have custom Java code that makes calls to LAPI class methods in our LL 9.7.1 installation. If we upgrade to CS 16.* we are hoping to retain our custom code but replace these LAPI calls with something else. For example is there a way to replace this code without having to do a total rewrite of our application?.:
LAPI_DOCUMENTS documents = new LAPI_DOCUMENTS( session ); // create a new Library object
LLValue objectInfo = new LLValue();
LLValue versionInfo = new LLValue();
LLValue libData = ( new LLValue() ).setAssocNotSet(); // declare an assoc to hold the enterprise volume info
if (documents.AccessEnterpriseWS( libData ) == 0){
//Call LAPI method to save the report in LL workspace
if (documents.AddDocument(parentVolId, parentId,documentName,reportFileName,objectInfo,versionInfo) != 0){
........
}