Hello,
We need to find out the current user's permissions (SEE, SEECONTENTS...) to a particular object. I tried this method
String query = "subType = " + API_DOCUMENTS.DOCUMENTSUBTYPE;
int intContentId = new Integer(contentId).intValue();
int mysSrchQuery =
doc.ListObjects(entInfo.toInteger ("VolumeID"), objectID, null, query, LAPI_DOCUMENTS.PERM_SEECONTENTS,
llQueryResults);
if (mysSrchQuery == 0)
iCnt = llQueryResults.size();
else
iCnt = 0;
But this does not seem to work. What did I do wrong? Please advise.
Thank you for all your help.
We need to find out the current user's permissions (SEE, SEECONTENTS...) to a particular object. I tried this method
String query = "subType = " + API_DOCUMENTS.DOCUMENTSUBTYPE;
int intContentId = new Integer(contentId).intValue();
int mysSrchQuery =
doc.ListObjects(entInfo.toInteger ("VolumeID"), objectID, null, query, LAPI_DOCUMENTS.PERM_SEECONTENTS,
llQueryResults);
if (mysSrchQuery == 0)
iCnt = llQueryResults.size();
else
iCnt = 0;
But this does not seem to work. What did I do wrong? Please advise.
Thank you for all your help.