Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A better / faster way to set object right on LL object.

Status
Not open for further replies.

JHarveyUser

Programmer
Jan 17, 2014
1
CA

I'm currently trying to improve our Java LiveLink application.
One of my biggest challenge is to improve the update of object right.

I'm actually using

Java:
private LAPI_DOCUMENTS documents;
//... exemple...//
documents.SetObjectRight(idVol, idObject, LAPI_DOCUMENTS.RIGHT_UPDATE, idGroup, permission, 1);

On each object that I need to update. Everyday there new group or rights change on every node and with all the RIGHT_UPDATE that I need to call It can take sometime multiple hours to upload less than 1000 files.

I was wondering if it's possible with the java API 9.7 to do mass object right update. Didn't found anything with the API doc.

Upload all the rights change in a single call ?

Thanks and sorry for my bad english :|
 
I think what you are trying to do is
A folder called my Folder with dataid=12345
Today there are 5 groups on its ACL
some user puts another group,take off another group or change the bits and then ask you to push it down

so you run your code with whatever changes that the user wants?
May I ask why do this in LAPI?
In the GUI there is provision to propagate multiple group changes.

If there are a lot of objects underneath what people will do is basically go to a beefy server like
the Admin server perhaps and change the key NumToUpgrade to a large number otherwise it will crawl 10
at a time.

The ACL can only be applied like that it is still a discrete call whether in lapi ,webservices or oscript each object
whether you want it or not has to have the rows of users and groups and its bitmasks.

If you want efficiencies what you have to do is to create some kind of pooling,for e.g if you know there are
1 million items,you would create a bunch of threads(very tricky sometimes in lapi) so thread 1 may come to the
pool and grab 500,complete its job ask if there is work that kind.We do it at my present work because ours is
and extremely large livelink sometimes children are in the millions.So instead of using lapi we have created
a frameork in oscript that basically does this much more efficient than OT code.

9.7.1 is the last version that officially supports lapi.with the current release lapi is in sunset mode which
means that OT will not support you.What works may work.

In lieu of LAPI now you have the WS API and a new RESTful API.






Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top