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())
96
+
session.save()
97
+
return group
93
98
}
94
99
95
100
96
101
/**
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
102
+
* 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
103
* 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
-
*/
251
+
* Step two. We need access to the internal Authorizable object's tree in order to call the internal setPassword method
252
+
* 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
253
+
*/
224
254
Class authorizableDelegateClass = user.getClass().getSuperclass()
225
255
Field authorizableDelegateField = authorizableDelegateClass.getDeclaredField('delegate')
226
256
authorizableDelegateField.setAccessible(true)
@@ -230,9 +260,19 @@ class AuthorizableProtoNodeDecorator extends ProtoNodeDecorator {
230
260
getTreeMethod.setAccessible(true)
231
261
232
262
/**
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
-
*/
263
+
* 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
264
+
* clear-text, which it isn't since we got it from another Jackrabbit instance, we can set the password as-is.
0 commit comments