You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
finalGroup group = userManager.createGroup(authorizableID, newAuthorizablePrincipal(authorizableID), getIntermediateAuthorizablePath())
97
+
session.save()
98
+
return group
93
99
}
94
100
95
101
96
102
/**
97
-
* From a client API perspective, there is really no way to truely update an existing authorizable node. All of the properties are protected, and there is no
103
+
* From a client API perspective, there is really no way to truly update an existing authorizable node. All of the properties are protected, and there is no
98
104
* known way to update them. What we do here is essentially remove the existing authorizable as denoted by the authorizableID, and recreate it.
* Step two. We need access to the internal Authorizable object's tree in order to call the internal setPassword method
222
-
* User is an instance of org.apache.jackrabbit.oak.jcr.delegate.UserDelegator. We need to get the delegate off of this class's super class org.apache.jackrabbit.oak.jcr.delegate.AuthorizableDelegator
223
-
*/
252
+
* Step two. We need access to the internal Authorizable object's tree in order to call the internal setPassword method
253
+
* User is an instance of org.apache.jackrabbit.oak.jcr.delegate.UserDelegator. We need to get the delegate off of this class's super class org.apache.jackrabbit.oak.jcr.delegate.AuthorizableDelegator
254
+
*/
224
255
Class authorizableDelegateClass = user.getClass().getSuperclass()
225
256
Field authorizableDelegateField = authorizableDelegateClass.getDeclaredField('delegate')
226
257
authorizableDelegateField.setAccessible(true)
@@ -230,9 +261,19 @@ class AuthorizableProtoNodeDecorator extends ProtoNodeDecorator {
230
261
getTreeMethod.setAccessible(true)
231
262
232
263
/**
233
-
* The last argument where we are passing in 'false' in the secret sauce we need. This parameter is forceHash. As long as forceHash is false, and the password is not
234
-
* clear-text, which it isn't since we got it from another Jackrabbit instance, we can set the password as-is.
235
-
*/
264
+
* The last argument where we are passing in 'false' in the secret sauce we need. This parameter is forceHash. As long as forceHash is false, and the password is not
265
+
* clear-text, which it isn't since we got it from another Jackrabbit instance, we can set the password as-is.
0 commit comments