Hi All,
I want to creat a new privilege and role for my extension. Now I use this code to set privilege info on my extension,
PrivilegeInfo myPriv = new ExtensionImpl.PrivilegeInfoImpl();
myPriv.setPrivGroupName("MyPrivilege");
myPriv.setPrivID("Login");
extension.setPrivilegeList(new Extension.PrivilegeInfo[] {myPriv});
And create a role with below code,
authorizationManager.addRole("myRole", new String[]{"MyPrivilege.Login"});
But It always throws an Exception with message 'A specified parameter was not correct. privIds'. It seems that this API cannot accept customized privilege.
So how should I do this?
Regards,
Selina