@Name(value="principalListManager") @Scope(value=SESSION) public class PrincipalListManager extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected javax.faces.model.SelectItem[] |
availablePrincipals |
protected CoreSession |
documentManager |
static String |
GROUP_ICON |
static String |
GROUP_ICON_ALT |
static String |
GROUP_TYPE |
Map<String,String> |
iconAlt |
Map<String,String> |
iconPath |
static int |
MAX_SEARCH_RESULTS |
protected String |
previousSearchFilter |
protected boolean |
previousSearchOverflow |
protected String |
previousSearchType |
protected List<Map<String,Object>> |
previousSuggestedEntries |
protected Map<String,String> |
principalTypes |
protected ResourcesAccessor |
resourcesAccessor |
protected String |
searchType |
protected String |
selectedPrincipal |
protected List<String> |
selectedUsers |
static String |
USER_GROUP_TYPE |
static String |
USER_ICON |
static String |
USER_ICON_ALT |
static String |
USER_TYPE |
protected UserManager |
userManager |
Constructor and Description |
---|
PrincipalListManager() |
Modifier and Type | Method and Description |
---|---|
String |
addToSelectedUsers(String userName) |
boolean |
getDisplaySearchResults() |
String |
getPrincipalType(String name) |
String |
getSearchFilter() |
boolean |
getSearchOverflow() |
String |
getSearchType() |
String |
getSelectedPrincipal() |
boolean |
getSelectedUserListEmpty() |
List<String> |
getSelectedUsers() |
List<Map<String,Object>> |
getSuggestedEntries() |
protected DocumentModelList |
getSuggestedGroups() |
protected DocumentModelList |
getSuggestedUsers() |
String |
removeFromSelectedUsers(String userName) |
void |
resetSearchFilter() |
void |
resetSelectedUserList() |
void |
setSearchFilter(String searchFilter) |
void |
setSearchType(String searchType) |
void |
setSelectedPrincipal(String selectedPrincipal) |
void |
setSelectedUsers(List<String> selectedUsers) |
public static final String USER_TYPE
public static final String GROUP_TYPE
public static final String USER_GROUP_TYPE
public static final String USER_ICON
public static final String GROUP_ICON
public static final String USER_ICON_ALT
public static final String GROUP_ICON_ALT
public static final int MAX_SEARCH_RESULTS
@In(create=true, required=false) protected transient CoreSession documentManager
@In(create=true) protected transient UserManager userManager
@In(create=true) protected transient ResourcesAccessor resourcesAccessor
protected javax.faces.model.SelectItem[] availablePrincipals
protected Map<String,String> principalTypes
protected String selectedPrincipal
protected String searchType
protected List<String> selectedUsers
protected transient List<Map<String,Object>> previousSuggestedEntries
protected transient String previousSearchFilter
protected transient String previousSearchType
protected transient boolean previousSearchOverflow
public PrincipalListManager()
public String getSearchFilter()
public void setSearchFilter(String searchFilter)
public String getSelectedPrincipal()
public String getPrincipalType(String name)
public void setSelectedPrincipal(String selectedPrincipal)
protected DocumentModelList getSuggestedUsers()
protected DocumentModelList getSuggestedGroups()
public List<Map<String,Object>> getSuggestedEntries()
public boolean getDisplaySearchResults()
public void resetSearchFilter()
public String addToSelectedUsers(String userName)
public String removeFromSelectedUsers(String userName)
public List<String> getSelectedUsers()
public void setSelectedUsers(List<String> selectedUsers)
public boolean getSelectedUserListEmpty()
public void resetSelectedUserList()
public boolean getSearchOverflow()
public String getSearchType()
public void setSearchType(String searchType)
Copyright © 2016 Nuxeo SA. All rights reserved.