Hi,
We are using CDO. And I have to create interface for User Administrator who will be able to add new users to system, abort existing user, change password and change roles of a user. So I want to know which APIs will actually help me. I will be grateful to you if you can pin point them.

Am 07.02.2014 14:15, schrieb Kuldeep Yadav:
> Hi,
> We are using CDO. And I have to create interface for User Administrator who will be able to add new users to system,
> abort existing user, change password and change roles of a user. So I want to know which APIs will actually help me. I
> will be grateful to you if you can pin point them. :)
Have you already read https://wiki.eclipse.org/CDO/Security_Manager ?

Am 10.02.2014 09:50, schrieb Kuldeep Yadav:
> Yes, I have read this. But I want to make web UI. So for that I want to write webservices and I need APIs.

The API is the generated Security model on the client-side. Just call transaction.getResource("/security");

On the server you can additionally do more low-level stuff with org.eclipse.emf.cdo.server.security.ISecurityManager.
Use the Call Hierarchy to find out who else calls methods on it and how. Use this method to get at the security manager
for your repository:

I am able to create user and password. But changes are not reflected. Even when I create user using eclipse CDO UI, I need to restart cdo server to have my changes.
So my next question is how to have my changes done without restarting.

I am able to create user and log in successfully. But while reading and setting password of already created user, it throws NoPermissionException.

org.eclipse.emf.cdo.common.security.NoPermissionException: No permission to access UserPassword@OID29:0v1
at org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision.checkReadable(BaseCDORevision.java:1064)
at org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision.getValue(BaseCDORevision.java:820)
at org.eclipse.emf.cdo.spi.common.revision.BaseCDORevision.get(BaseCDORevision.java:665)
at org.eclipse.emf.internal.cdo.view.CDOStoreImpl.get(CDOStoreImpl.java:190)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.revisionToInstanceFeature(CDOObjectImpl.java:1342)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.cdoInternalPostDetach(CDOObjectImpl.java:505)
at org.eclipse.emf.internal.cdo.view.CDOStateMachine.detach(CDOStateMachine.java:289)
at org.eclipse.emf.cdo.eresource.impl.CDOResourceImpl.detached(CDOResourceImpl.java:1514)
at org.eclipse.emf.internal.cdo.CDOObjectImpl.eBasicSetContainer(CDOObjectImpl.java:793)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eInverseRemove(BasicEObjectImpl.java:1441)
at org.eclipse.emf.ecore.impl.EStructuralFeatureImpl$InternalSettingDelegateSingleEObject.dynamicSet(EStructuralFeatureImpl.java:2681)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eDynamicSet(BasicEObjectImpl.java:1127)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1101)
at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1071)
at org.eclipse.emf.cdo.security.impl.UserImpl.setPassword(UserImpl.java:395)
at com.strandls.com.admin.CDOUserAdmin.setPassword(UserAdmin.java:189)
at com.strandls.com.admin.CDOUserAdminTest.testSetPassword(UserAdminTest.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at com.google.guiceberry.junit4.GuiceBerryRule$1.evaluate(GuiceBerryRule.java:55)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

> I am able to create user and log in successfully. But while reading and setting password of already created user, it
> throws NoPermissionException.
A couple days ago Christian Damus has explained how to set user passwords. Please search this forum for the thread
"[CDO] User password change with new security manager" ;-)