com.atlassian.confluence.spaces.actions
Interface SpaceAware

All Superinterfaces:
Spaced
All Known Implementing Classes:
AbstractEditSpaceAction, AbstractLabelDisplayingAction, AbstractPaginatedListAction, AbstractSpaceAdminAction, AbstractSpacePermissionsAction, AddLabelToSpaceAction, AddSpaceToFavouriteAjaxAction, AddTeamLabelToSpaceAction, AlphabeticalListLabelsAction, AlphabeticalListPagesAction, ChildrenAction, ChooseThemeAction, ConfigureSpaceLogoAction, DirectoryViewListPagesAction, EditNotificationsAction, EditSpaceAction, EditSpaceEntryAction, EditSpaceLabelAction, EditSpacePermissionsAction, EmptyTrashAction, FindRestrictableEntitiesAction, GetPagePermissionsAction, ImportMboxAction, ImportPagesAction, ListAttachmentsAction, ListLabelsBySpaceAction, ListOrphanedPagesAction, ListPermissionPagesAction, ListUndefinedPagesAction, PageChildrenAction, QuickCommentEditorAction, RankListLabelsAction, RecentBlogPostsAction, RemoveSpaceAction, RemoveSpaceEntryAction, RemoveSpaceFromFavouriteAjaxAction, ReorderPageDialogAction, SpaceAdminAction, SpaceColourSchemeAction, SpaceEditDecoratorAction, SpaceEditStylesheetAction, SpaceLookAndFeelAction, ViewLabelAction, ViewMailAccountsAction, ViewMailArchiveAction, ViewSpacePermissionsAction, ViewSpaceSummaryAdminAction, ViewTrashAction

public interface SpaceAware
extends Spaced

Indicates that an action may have a space set on it by the SpaceAwareInterceptor


Method Summary
 boolean isSpaceRequired()
          If the action requires that the space be set before being run, then it should return true to this method.
 boolean isViewPermissionRequired()
           
 void setSpace(Space space)
          IOC method for setting the space on the action.
 
Methods inherited from interface com.atlassian.confluence.spaces.Spaced
getSpace
 

Method Detail

setSpace

void setSpace(Space space)
IOC method for setting the space on the action. This is called from the interceptor

Parameters:
space - the space that the action will be working on.

isSpaceRequired

boolean isSpaceRequired()
If the action requires that the space be set before being run, then it should return true to this method. If the action requires a space, but no space is available, then the interceptor will automatically redirect to the 'pagenotfound' result

Returns:
true if the action requires a space in order to execute

isViewPermissionRequired

boolean isViewPermissionRequired()
Returns:
true if the action requires view space permission


Copyright © 2003-2012 Atlassian. All Rights Reserved.