@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, 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
public DocumentModel getSelectedUser()
public void setSelectedUser(DocumentModel user)
@Deprecated public void setSelectedUser(String userName) throws ClientException
setSelectedUserName(java.lang.String)
instead.ClientException
public void setSelectedUserName(String userName) throws ClientException
ClientException
public String getSelectedUserName() throws ClientException
ClientException
public String getSelectedLetter()
public void setSelectedLetter(String selectedLetter)
public DocumentModel getNewUser() throws ClientException
ClientException
public boolean getAllowEditUser() throws ClientException
ClientException
public boolean getAllowChangePassword() throws ClientException
ClientException
public boolean getAllowCreateUser() throws ClientException
ClientException
public boolean getAllowDeleteUser() throws ClientException
ClientException
public void clearSearch()
public void createUser() throws ClientException
ClientException
public void updateUser() throws ClientException
ClientException
public String changePassword() throws ClientException
ClientException
public void deleteUser() throws ClientException
ClientException
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) throws ClientException
ClientException
public String viewUser(String userName) throws ClientException
ClientException
public String viewUser() throws ClientException
ClientException
public 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.