Hi,
I have tried the change the security like to remove read, write or delete access to the particular user.
and need to assign new role to the existing user.
I have tried this code:
bsh.ParseException: Parse error at line 7, column 24. Encountered: ,
kindly helps me to resolve this issue.
Thanks.
I have tried the change the security like to remove read, write or delete access to the particular user.
and need to assign new role to the existing user.
I have tried this code:
Code: Select all
and i'm getting this kind of error:import java.util.*;
import com.openkm.bean.Permission;
import com.openkm.api.OKMAuth;
try {
String nodePath = "6aaa9bc3-e0d2-4240-9c17-29769fecad0f";
Map<String, Integer> grantUsers = new HashMap<>();
Map<String, Integer> revokeUsers = new HashMap<>();
Map<String, Integer> grantRoles = new HashMap<>();
grantRoles.put("ROLE_USER", Permission.READ );
Map<String, Integer> revokeRoles = new HashMap<>();
OKMAuth.getInstance().changeSecurity(null, nodePath, grantUsers, revokeUsers, grantRoles, revokeRoles, false);
} catch (Exception e) {
print(e);
}
bsh.ParseException: Parse error at line 7, column 24. Encountered: ,
kindly helps me to resolve this issue.
Thanks.