@Name(value="userManagementActions") @Scope(value=CONVERSATION) @Install(precedence=10) public class UserManagementActions extends AbstractUserGroupManagement implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
SELECTED_LETTER_CHANGED |
static String |
USER_SELECTED_CHANGED |
static String |
USERS_LISTING_CHANGED |
static String |
USERS_SEARCH_CHANGED |
static String |
USERS_TAB |
DEFAULT_LISTING_MODE, DETAILS_VIEW_MODE, MAIN_TAB_HOME, MAIN_TABS_CATEGORY, NUXEO_ADMIN_CATEGORY, USER_CENTER_CATEGORY, 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| Constructor and Description |
|---|
UserManagementActions() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
anonymousUserDefined() |
String |
changePassword() |
void |
clearSearch() |
void |
createUser() |
void |
deleteUser() |
boolean |
getAllowChangePassword() |
boolean |
getAllowCreateUser() |
boolean |
getAllowDeleteUser() |
boolean |
getAllowEditUser() |
DocumentModel |
getNewUser() |
String |
getSelectedLetter() |
DocumentModel |
getSelectedUser() |
String |
getSelectedUserName() |
List<String> |
getUserVirtualGroups(String userId) |
boolean |
isCreateAnotherUser() |
boolean |
isImmediateCreation() |
boolean |
isNotReadOnly() |
void |
onSelectedLetterChanged() |
void |
onUsersListingChanged() |
void |
onUsersSearchChanged() |
void |
resetState() |
void |
setCreateAnotherUser(boolean createAnotherUser) |
void |
setImmediateCreation(boolean immediateCreation) |
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) |
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) |
getDetailsMode, getListingMode, getSearchString, isShowCreateForm, isShowUserOrGroup, setDetailsMode, setListingMode, setSearchString, toggleShowCreateForm, toggleShowUserOrGrouppublic 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
public DocumentModel getSelectedUser()
public void setSelectedUser(DocumentModel user)
@Deprecated public void setSelectedUser(String userName) throws ClientException
setSelectedUserName(java.lang.String) instead.ClientExceptionpublic void setSelectedUserName(String userName) throws ClientException
ClientExceptionpublic String getSelectedUserName() throws ClientException
ClientExceptionpublic String getSelectedLetter()
public void setSelectedLetter(String selectedLetter)
public DocumentModel getNewUser() throws ClientException
ClientExceptionpublic boolean getAllowEditUser()
throws ClientException
ClientExceptionpublic boolean getAllowChangePassword()
throws ClientException
ClientExceptionpublic boolean getAllowCreateUser()
throws ClientException
ClientExceptionpublic boolean getAllowDeleteUser()
throws ClientException
ClientExceptionpublic void clearSearch()
public void createUser()
throws ClientException
ClientExceptionpublic void updateUser()
throws ClientException
ClientExceptionpublic String changePassword() throws ClientException
ClientExceptionpublic void deleteUser()
throws ClientException
ClientExceptionpublic 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) throws ClientException
ClientExceptionpublic String viewUser(String userName) throws ClientException
ClientExceptionpublic String viewUser() throws ClientException
ClientExceptionpublic void setShowUser(String showUser)
@Factory(value="anonymousUserDefined",
scope=APPLICATION)
public boolean anonymousUserDefined()
throws ClientException
ClientException@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)
Copyright © 2015 Nuxeo SA. All rights reserved.