[opencms-dev] RE: How to check access rights through API's
Jyoti Arora
jyoti.arora at amsoft.net
Tue Jan 4 06:33:51 CET 2005
Hi
Thanxs for the reply
But I tried out the same thing
I tried creating the object of the class cmsObject and tried to call the
method defined
CmsJspActionElement cmsTest = new CmsJspActionElement(pageContext, request,
response);
org.opencms.file.CmsObject cmsObj = null;
cmsObj = cmsTest.getCmsObject();
boolean b = false ;
b = cmsObj.accessWrite("resource1");
This throws an exception that the method accessWrite cannot be resolved for
the class
Any suggestions on this ????
Regards
Jyoti
CmsRessource#getAccessFlags() and
CmsObject#access[Write|Read|ReadVisible|Project|Lock|Create]()
hth, chris
_____
From: Jyoti Arora [mailto:jyoti.arora at amsoft.net]
Sent: Monday, January 03, 2005 2:49 PM
To: 'opencms-dev at opencms.org'
Subject: How to check access rights through API's
Hi
I'm trying to check the access rights of the logged in user on a specific
file and its authorization through the API's
Can anyone help me on the same
Regards
Jyoti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050104/4ee376ca/attachment.htm>
More information about the opencms-dev
mailing list