Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Deficiencies of AddDocument() and CreateVersion()
Robert_Davies_(unlondonadmin_-_(deleted))
Hi.I think there is a fundamental deficiency in the LAPI operations AddDocument() and CreateVersion(). That is that both of these functions accepts only a FilePath as a parameter specifying the document contents.Now in the first case when the document is uploaded it goes with the entire file system path provided, e.g. "c:\temp\adoc.doc". I don't think this information will be entirely relevant to all the other hundreds of users. To avoid this you have to use the current directory which I hope you will agree is bad medicine.My more substantial complaint however is that they only read from files in the first place. Since (in the java version at least) this will resolve to the API reading the file from a stream, it would have been much more flexible to allow versions of the calls that accept an InputStream to read from when creating the document-version.In my case I am adding document content that is coming from alternative sources, at the moment I am having to commit this to a file while it gets added to the system. This is an extra layer of overhead and management that my application doesn't need.Would it be possible to add these calls to the next version of LAPI?Best regards/matt.
Find more posts tagged with
Comments
DeTeCSMAdmin_(Delete)_2274648
We noticed the same deficiencies and we totally agreeto add (or change) the methods accepting an InputStream.I posted this message to enforce your request.
x-merrilllynchglobaluser3_-_(deleted)
Was this ever changed? Was the LAPI exteneded to support input streams. This message was posted over 2 year ago, and I do not see any changes in the API.LrAuMerrill Lynch
Steve_Piatt_(spiatt_(Delete)_891610)
Stream IO support will be added for LAPI Java in 9.1 SP3 there will be a new method for each existing method that accepts a file upload/download. For example, here is what CreateVersion and FetchVersion will look like:Existing: public int CreateVersion( int VolumeID, int NodeID, String FilePath, LLValue versionInfo )New method: public int CreateVersion( int VolumeID, int NodeID, String FilePath, java.io.InputStream inStream, int size, LLValue fileInfo, LLValue versionInfo )NOTE: The FilePath argument is the name of the version to be stored on the server and is not used as a file descriptor on the client.Existing: public int FetchVersion( int VolumeID, int NodeID, int VersionID, String FilePath )New method: public int FetchVersion( int VolumeID, int NodeID, int VersionID, java.io.OutputStream outputStream )
x-merrilllynchglobaluser3_-_(deleted)
When will SP3 be out, or is it already out?
eLink User
Message from David Slimmon via eLinkHi there,9.1 SP3 is scheduled for mid-December, subject to change of course.Regards,Dave___________________________________________O P E N T E X T C O R P O R A T I O NDavid Slimmon, M.L.I.S.Knowledge Manager
https://knowledge.opentext.comdslimmon@opentext.com-----Original
Message-----When will SP3 be out, or is it already out?
Magnus_Salgo_(IDNordicAdmin_(Delete)_2300172)
Any new release dates for SP3 ?Is it possible to "pre-ORDER" it ??RegardsMagnus S?lg?magnus@ids.se
Steve_Piatt_(spiatt_(Delete)_891610)
9.1.0 SP3 is released