com.atlassian.confluence.security.actions
Interface PermissionsAware

All Known Subinterfaces:
EditPermissionsAware
All Known Implementing Classes:
AbstractEditPermissionAction, AbstractGlobalPermissionsAction, AbstractPermissionsAction, AbstractSpacePermissionsAction, EditGlobalPermissionsAction, EditSpacePermissionDefaultsAction, EditSpacePermissionsAction, ViewGlobalPermissionsAction, ViewSpacePermissionDefaultsAction, ViewSpacePermissionsAction

public interface PermissionsAware

This interface is used by all actions that need to access permissions.


Method Summary
 PermissionRow getAnonymousPermissionRow()
          Retrieves the AnonymousPermissionRow for printing in a UI.
 Collection<PermissionRow> getGroupPermissionRows()
          Gets the list of current DefaultPermissionsAdministrator.GroupPermissionRows for printing in a UI.
 String getGuardPermission()
          Obtains the relevant guard permission for the action
 PermissionsAdministrator getPermissionsAdministrator()
           
 Map getRequestParams()
          Returns the parameters of the request
 Collection<PermissionRow> getUserPermissionRows()
          Gets the list of current DefaultPermissionsAdministrator.UserPermissionRows for printing in a UI.
 boolean isSharedMode()
          Deprecated. since 5.0. Shared-mode not supported since 3.0.
 void populateAdministrator()
           
 

Method Detail

getUserPermissionRows

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

Returns:
list of DefaultPermissionsAdministrator.UserPermissionRow

getGroupPermissionRows

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

Returns:
list of DefaultPermissionsAdministrator.GroupPermissionRow

getAnonymousPermissionRow

PermissionRow getAnonymousPermissionRow()
Retrieves the AnonymousPermissionRow for printing in a UI.

Returns:
the anonymous permissions.

getGuardPermission

String getGuardPermission()
Obtains the relevant guard permission for the action

Returns:
the relevant guard permission for the action

getRequestParams

Map getRequestParams()
Returns the parameters of the request

Returns:
the parameters of the request

getPermissionsAdministrator

PermissionsAdministrator getPermissionsAdministrator()

populateAdministrator

void populateAdministrator()

isSharedMode

@Deprecated
boolean isSharedMode()
Deprecated. since 5.0. Shared-mode not supported since 3.0.



Copyright © 2003–2015 Atlassian. All rights reserved.