Page 1 of 1

Permission In Interger value

PostPosted:Wed Oct 06, 2010 9:47 am
by Viral Raithatha
Hello to all,
BytePairArray getGrantedRoles(String token, String nodePath) in OKMAuth is return role and permission.

Permission in int. so I want to khow in depth about permission,

For different rights which int value is used?
if any int permission is return any function then what the mean by that int (which permission)?

Thank you,
Viral Raithatha

Re: Permission In Interger value

PostPosted:Thu Oct 07, 2010 6:33 pm
by jllort
You're interested in Permision.java class where's declared the permissions constant values:

public static final byte READ = 1;
public static final byte WRITE = 2;
public static final byte DELETE = 4;
public static final byte SECURITY = 8;

If you want to take a look at class in source code is in com.openkm.bean.Permission

Re: Permission In Interger value

PostPosted:Fri Oct 08, 2010 5:42 am
by Viral Raithatha
Thank you for quick reply.