com.atlassian.confluence.security.actions
Class AbstractPermissionsAction

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.confluence.core.ConfluenceActionSupport
          extended by com.atlassian.confluence.security.actions.AbstractPermissionsAction
All Implemented Interfaces:
BootstrapAware, WebInterface, PermissionsAware, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable
Direct Known Subclasses:
AbstractEditPermissionAction, AbstractGlobalPermissionsAction, AbstractSpacePermissionsAction, ViewGlobalPermissionsAction, ViewSpacePermissionsAction

public abstract class AbstractPermissionsAction
extends ConfluenceActionSupport
implements PermissionsAware, BootstrapAware

See Also:
Serialized Form

Field Summary
protected  PermissionRow anonymousPermissionRow
           
protected  java.util.Collection<PermissionRow> groupPermissionRows
          Map of groupnames to DefaultPermissionsAdministrator.GroupPermissionRows.
protected  PermissionsAdministratorBuilder permissionsAdministratorBuilder
           
protected  java.util.Collection<PermissionRow> userPermissionRows
          Map of usernames to DefaultPermissionsAdministrator.UserPermissionRows.
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
AbstractPermissionsAction()
           
 
Method Summary
 void bootstrap()
           
 PermissionRow getAnonymousPermissionRow()
          Retrieves the AnonymousPermissionRow for printing in a UI.
 java.util.Collection<PermissionRow> getGroupPermissionRows()
          Gets the list of current DefaultPermissionsAdministrator.GroupPermissionRows for printing in a UI.
 java.util.List<java.lang.String> getPermissions()
           
 java.util.Map getRequestParams()
          Returns the parameters of the request
 java.util.Collection<PermissionRow> getUserPermissionRows()
          Gets the list of current DefaultPermissionsAdministrator.UserPermissionRows for printing in a UI.
 boolean isAdminUser()
           
 void setPermissionsAdministratorBuilder(PermissionsAdministratorBuilder permissionsAdministratorBuilder)
           
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getContext, getDateFormatter, getDefaultResourceBundle, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.security.actions.PermissionsAware
getGuardPermission, getPermissionsAdministrator, isSharedMode, populateAdministrator
 

Field Detail

userPermissionRows

protected java.util.Collection<PermissionRow> userPermissionRows
Map of usernames to DefaultPermissionsAdministrator.UserPermissionRows.


groupPermissionRows

protected java.util.Collection<PermissionRow> groupPermissionRows
Map of groupnames to DefaultPermissionsAdministrator.GroupPermissionRows.


anonymousPermissionRow

protected PermissionRow anonymousPermissionRow

permissionsAdministratorBuilder

protected PermissionsAdministratorBuilder permissionsAdministratorBuilder
Constructor Detail

AbstractPermissionsAction

public AbstractPermissionsAction()
Method Detail

setPermissionsAdministratorBuilder

public void setPermissionsAdministratorBuilder(PermissionsAdministratorBuilder permissionsAdministratorBuilder)

getUserPermissionRows

public java.util.Collection<PermissionRow> getUserPermissionRows()
Gets the list of current DefaultPermissionsAdministrator.UserPermissionRows for printing in a UI.

Specified by:
getUserPermissionRows in interface PermissionsAware
Returns:
list of DefaultPermissionsAdministrator.UserPermissionRow

getGroupPermissionRows

public java.util.Collection<PermissionRow> getGroupPermissionRows()
Gets the list of current DefaultPermissionsAdministrator.GroupPermissionRows for printing in a UI.

Specified by:
getGroupPermissionRows in interface PermissionsAware
Returns:
list of DefaultPermissionsAdministrator.GroupPermissionRow

getAnonymousPermissionRow

public PermissionRow getAnonymousPermissionRow()
Description copied from interface: PermissionsAware
Retrieves the AnonymousPermissionRow for printing in a UI.

Specified by:
getAnonymousPermissionRow in interface PermissionsAware
Returns:
the anonymous permissions.

getRequestParams

public java.util.Map getRequestParams()
Description copied from interface: PermissionsAware
Returns the parameters of the request

Specified by:
getRequestParams in interface PermissionsAware
Returns:
the parameters of the request

bootstrap

public void bootstrap()
Specified by:
bootstrap in interface BootstrapAware

isAdminUser

public boolean isAdminUser()

getPermissions

public java.util.List<java.lang.String> getPermissions()


Copyright © 2003-2011 Atlassian. All Rights Reserved.