Is there any documentation or code examples on how to use the session with the
API. I've been experimenting with ARBAC roles, for example, assigning user to a
role
adminManager.assignUser(new UserRole("testUser", "testRole"));
I have an ARBAC role setup to allow this, but the only way I can activate the
ARBAC roles, is to use the access manager to create a session and assign it to
the adminManager before making the assignUser call above.
Session session = accessManager_.createSession(new User("userInArbacRole"),
true)
adminManager.setAdmin(session);
Is this the expected behaviour? Creating the admin manager with a session
doesn't seem to have any effect
Session session = new Session(new User("userInArbacRole"));
session.setAdminSession(session);
adminManager = AdminMgrFactory.createInstance(session);