Class BrowseGroupsAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.user.actions.AbstractGroupAction
-
- com.atlassian.confluence.user.actions.BrowseGroupsAction
-
- All Implemented Interfaces:
WebInterface
,ExternalUserManagementAware
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class BrowseGroupsAction extends AbstractGroupAction
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected PaginationSupport
paginationSupport
protected int
startIndex
protected static String
TERM_DELIM_CHARS
-
Fields inherited from class com.atlassian.confluence.user.actions.AbstractGroupAction
groups, name
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description BrowseGroupsAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
appendWildcard(String s)
boolean
canModifyGroups()
boolean
canRemove(com.atlassian.user.Group group)
String
doAdd()
String
doSearch()
String
execute()
PaginationSupport
getPaginationSupport()
int
getResultsPerPage()
List<com.atlassian.core.util.PairType>
getResultsPerPageOptions()
String
getSearchTerm()
int
getStartIndex()
String
getUrlEncodeName()
boolean
isRemovable(com.atlassian.user.Group group)
void
setResultsPerPage(int resultsPerPage)
Change the pageSizevoid
setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
void
setSearchTerm(String searchTerm)
void
setStartIndex(int startIndex)
void
setWritableDirectoryForGroupsExistsCriteria(DefaultWritableDirectoryForGroupsExistsCriteria writableDirectoryForGroupsExistsCriteria)
void
validate()
-
Methods inherited from class com.atlassian.confluence.user.actions.AbstractGroupAction
getGroup, getName, isPermitted, setName
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiContentUiSupport, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors
-
-
-
-
Field Detail
-
TERM_DELIM_CHARS
protected static final String TERM_DELIM_CHARS
- See Also:
- Constant Field Values
-
paginationSupport
protected PaginationSupport paginationSupport
-
startIndex
protected int startIndex
-
-
Method Detail
-
validate
public void validate()
- Specified by:
validate
in interfaceMessageHolderAware
- Specified by:
validate
in interfacecom.opensymphony.xwork2.Validateable
- Overrides:
validate
in classcom.opensymphony.xwork2.ActionSupport
-
execute
@XsrfProtectionExcluded public String execute()
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
-
doSearch
public String doSearch()
-
getPaginationSupport
public PaginationSupport getPaginationSupport()
-
canRemove
public boolean canRemove(com.atlassian.user.Group group)
- Returns:
- true if the group is a local group that can be removed and the currently logged in user has sufficient permissions to remove the group
-
isRemovable
public boolean isRemovable(com.atlassian.user.Group group)
-
getResultsPerPage
public int getResultsPerPage()
-
setResultsPerPage
public void setResultsPerPage(int resultsPerPage)
Change the pageSize- Parameters:
resultsPerPage
- Number to show per page
-
getResultsPerPageOptions
public List<com.atlassian.core.util.PairType> getResultsPerPageOptions()
-
canModifyGroups
public boolean canModifyGroups()
-
getStartIndex
public int getStartIndex()
-
setStartIndex
public void setStartIndex(int startIndex)
-
getSearchTerm
public String getSearchTerm()
-
setSearchTerm
public void setSearchTerm(String searchTerm)
-
setSearchEntitiesManager
public void setSearchEntitiesManager(SearchEntitiesManager searchEntitiesManager)
-
setWritableDirectoryForGroupsExistsCriteria
public void setWritableDirectoryForGroupsExistsCriteria(DefaultWritableDirectoryForGroupsExistsCriteria writableDirectoryForGroupsExistsCriteria)
-
getUrlEncodeName
public String getUrlEncodeName()
-
-