Search in sources :

Example 1 with EditableUser

use of com.enonic.xp.security.EditableUser in project xp by enonic.

the class ModifyProfileHandlerTest method invokeUpdate.

private User invokeUpdate(final UpdateUserParams params, final User user) {
    final UserEditor editor = params.getEditor();
    assertNotNull(editor);
    final EditableUser editable = new EditableUser(user);
    editor.edit(editable);
    return editable.build();
}
Also used : UserEditor(com.enonic.xp.security.UserEditor) EditableUser(com.enonic.xp.security.EditableUser)

Example 2 with EditableUser

use of com.enonic.xp.security.EditableUser in project xp by enonic.

the class ModifyUserHandlerTest method invokeUpdate.

private User invokeUpdate(final UpdateUserParams params) {
    final UserEditor editor = params.getEditor();
    assertNotNull(editor);
    final User user = TestDataFixtures.getTestUser();
    final EditableUser editable = new EditableUser(user);
    editor.edit(editable);
    return editable.build();
}
Also used : User(com.enonic.xp.security.User) EditableUser(com.enonic.xp.security.EditableUser) UserEditor(com.enonic.xp.security.UserEditor) EditableUser(com.enonic.xp.security.EditableUser)

Aggregations

EditableUser (com.enonic.xp.security.EditableUser)2 UserEditor (com.enonic.xp.security.UserEditor)2 User (com.enonic.xp.security.User)1