@Name(value="userManagementActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class UserManagementActions extends AbstractUserGroupManagement implements Serializable
Modifier and Type | Field and Description |
---|---|
protected boolean |
createAnotherUser |
protected String |
defaultRepositoryName |
protected boolean |
immediateCreation |
protected DocumentModel |
newUser |
protected String |
oldPassword |
static String |
SELECTED_LETTER_CHANGED |
protected String |
selectedLetter |
protected DocumentModel |
selectedUser |
static String |
USER_SELECTED_CHANGED |
static String |
USERS_LISTING_CHANGED |
static String |
USERS_SEARCH_CHANGED |
static String |
USERS_TAB |
contentViewActions, currentUser, DEFAULT_LISTING_MODE, DETAILS_VIEW_MODE, detailsMode, facesMessages, listingMode, MAIN_TAB_HOME, MAIN_TABS_CATEGORY, navigationContext, NUXEO_ADMIN_CATEGORY, resourcesAccessor, searchString, shouldResetStateOnTabChange, showCreateForm, showUserOrGroup, USER_CENTER_CATEGORY, userManager, USERS_GROUPS_HOME, USERS_GROUPS_HOME_SUB_TAB, USERS_GROUPS_MANAGEMENT_ACCESS_FILTER, USERS_GROUPS_MANAGER, USERS_GROUPS_MANAGER_SUB_TAB, VALID_CHARS, VIEW_HOME, webActions
Constructor and Description |
---|
UserManagementActions() |
Modifier and Type | Method and Description |
---|---|
boolean |
anonymousUserDefined() |
String |
changePassword() |
void |
clearSearch() |
protected String |
computeListingMode() |
void |
createUser() |
void |
deleteUser() |
protected void |
doAsSystemUser(Runnable runnable) |
protected void |
fireSeamEvent(String eventName) |
boolean |
getAllowChangePassword() |
boolean |
getAllowCreateUser() |
boolean |
getAllowDeleteUser() |
boolean |
getAllowEditUser() |
protected boolean |
getCanEditUsers(boolean allowCurrentUser) |
DocumentModel |
getNewUser() |
String |
getOldPassword() |
String |
getSelectedLetter() |
DocumentModel |
getSelectedUser() |
String |
getSelectedUserName() |
List<String> |
getUserVirtualGroups(String userId) |
boolean |
isCreateAnotherUser() |
boolean |
isImmediateCreation() |
boolean |
isNotReadOnly() |
void |
onSelectedLetterChanged() |
void |
onUsersListingChanged() |
void |
onUsersSearchChanged() |
protected DocumentModel |
refreshUser(String userName) |
void |
resetState() |
void |
setCreateAnotherUser(boolean createAnotherUser) |
void |
setImmediateCreation(boolean immediateCreation) |
void |
setOldPassword(String oldPassword) |
void |
setSelectedLetter(String selectedLetter) |
void |
setSelectedUser(DocumentModel user) |
void |
setSelectedUser(String userName)
Deprecated.
since version 5.5, use
setSelectedUserName(java.lang.String) instead. |
void |
setSelectedUserName(String userName)
UserRegistrationService userRegistrationService = Framework.getLocalService(UserRegistrationService.class);
|
void |
setShowUser(String showUser) |
String |
updateProfilePassword() |
void |
updateUser() |
void |
validateGroups(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Verify that only administrators can add administrator groups.
|
void |
validatePassword(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
void |
validateUserName(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
String |
viewUser() |
String |
viewUser(String userName) |
getAllAdminGroups, getDetailsMode, getListingMode, getSearchString, isShowCreateForm, isShowUserOrGroup, setDetailsMode, setListingMode, setSearchString, toggleShowCreateForm, toggleShowUserOrGroup
public static final String USERS_TAB
public static final String USERS_LISTING_CHANGED
public static final String USERS_SEARCH_CHANGED
public static final String USER_SELECTED_CHANGED
public static final String SELECTED_LETTER_CHANGED
protected String selectedLetter
protected DocumentModel selectedUser
protected DocumentModel newUser
protected boolean immediateCreation
protected boolean createAnotherUser
protected String defaultRepositoryName
protected String oldPassword
public UserManagementActions()
protected String computeListingMode()
computeListingMode
in class AbstractUserGroupManagement
public DocumentModel getSelectedUser()
public void setSelectedUser(DocumentModel user)
@Deprecated public void setSelectedUser(String userName)
setSelectedUserName(java.lang.String)
instead.public void setSelectedUserName(String userName)
public String getSelectedUserName()
protected DocumentModel refreshUser(String userName)
public String getSelectedLetter()
public void setSelectedLetter(String selectedLetter)
public DocumentModel getNewUser()
public boolean getAllowEditUser()
protected boolean getCanEditUsers(boolean allowCurrentUser)
public boolean getAllowChangePassword()
public boolean getAllowCreateUser()
public boolean getAllowDeleteUser()
public void clearSearch()
public void createUser()
public void updateUser()
public String changePassword()
public String updateProfilePassword()
protected void doAsSystemUser(Runnable runnable)
public void deleteUser()
public void validateUserName(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
public void validateGroups(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
context
- component
- value
- public void validatePassword(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
@Factory(value="notReadOnly", scope=APPLICATION) public boolean isNotReadOnly()
public List<String> getUserVirtualGroups(String userId)
public void setShowUser(String showUser)
protected void fireSeamEvent(String eventName)
@Factory(value="anonymousUserDefined", scope=APPLICATION) public boolean anonymousUserDefined()
@Observer(value="usersListingChanged") public void onUsersListingChanged()
@Observer(value="usersSearchChanged") public void onUsersSearchChanged()
@Observer(value="selectedLetterChanged") public void onSelectedLetterChanged()
@Observer(value={"currentTabChanged_MAIN_TABS","currentTabChanged_NUXEO_ADMIN","currentTabChanged_USER_CENTER","currentTabChanged_UsersGroupsManager_sub_tab","currentTabChanged_UsersGroupsHome_sub_tab","currentTabSelected_MAIN_TABS","currentTabSelected_NUXEO_ADMIN","currentTabSelected_USER_CENTER","currentTabSelected_UsersGroupsManager_sub_tab","currentTabSelected_UsersGroupsHome_sub_tab"}) public void resetState()
public boolean isImmediateCreation()
public void setImmediateCreation(boolean immediateCreation)
immediateCreation
- public boolean isCreateAnotherUser()
public void setCreateAnotherUser(boolean createAnotherUser)
public String getOldPassword()
public void setOldPassword(String oldPassword)
Copyright © 2017 Nuxeo. All rights reserved.