com.atlassian.confluence.user.actions
Class PagePickerAction

java.lang.Object
  extended bycom.opensymphony.xwork.ActionSupport
      extended bycom.atlassian.confluence.core.ConfluenceActionSupport
          extended bycom.atlassian.confluence.user.actions.ViewUserHistoryAction
              extended bycom.atlassian.confluence.user.actions.PagePickerAction
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, Serializable, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware
Direct Known Subclasses:
SpacePagePickerAction

public class PagePickerAction
extends ViewUserHistoryAction

See Also:
Serialized Form

Field Summary
static int MAXRESULTS
           
 
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, 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
PagePickerAction()
           
 
Method Summary
 String execute()
           
 List getAggregateOptions()
           
 List getAttachments()
           
 List getAvailableSpaces()
          Find all spaces that user has permission to view and allow them to search among these
 ContentEntityObject getContentEntityObject()
           
 String getCurrentspace()
           
 List getFavouriteSpaces()
           
 String getFieldname()
           
 String getFormname()
           
 List getHistoryPages()
           
 String getMode()
           
 long getPageId()
           
 String getQuery()
          Provie access to the current search query string.
 List getRecentlyUpdatedPages()
           
 List getReferringPages()
           
 SearchBean getSearchBean()
           
 SearchQueryBean getSearchQuery()
           
 List getSearchResults()
           
 int getStartIndex()
           
 boolean isNewPage()
          convenience method because velocity can't do a simple arithmetic comparision ($pageId == 0)
 boolean isUpdate()
           
protected  void resetSearchQueryBean()
           
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void setCurrentspace(String currentspace)
           
 void setFieldname(String fieldname)
           
 void setFormname(String formname)
           
 void setLinkManager(LinkManager linkManager)
           
 void setMode(String mode)
           
 void setPageId(long pageId)
           
 void setPageManager(PageManager pageManager)
           
 void setQuery(String query)
          Provide an interface for setting the search query string.
 void setSearchBean(SearchBean searchBean)
           
 void setSpaceManager(SpaceManager spaceManager)
           
 void setStartIndex(int startIndex)
           
 
Methods inherited from class com.atlassian.confluence.user.actions.ViewUserHistoryAction
getHistory, setContentEntityManager
 
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addPermissionTypeTo, addToHistory, doDefault, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEditorLanguage, getEventManager, getGlobalHelper, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getSpaceHelper, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermitted, isPermittedAsString, isPrintableVersion, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, 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
 

Field Detail

MAXRESULTS

public static final int MAXRESULTS
See Also:
Constant Field Values
Constructor Detail

PagePickerAction

public PagePickerAction()
Method Detail

getHistoryPages

public List getHistoryPages()

getRecentlyUpdatedPages

public List getRecentlyUpdatedPages()

execute

public String execute()
               throws Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class ViewUserHistoryAction
Throws:
Exception

getSearchResults

public List getSearchResults()
                      throws IOException
Throws:
IOException

getReferringPages

public List getReferringPages()

getAvailableSpaces

public List getAvailableSpaces()
Find all spaces that user has permission to view and allow them to search among these

Returns:
List

getAggregateOptions

public List getAggregateOptions()

getFavouriteSpaces

public List getFavouriteSpaces()

isNewPage

public boolean isNewPage()
convenience method because velocity can't do a simple arithmetic comparision ($pageId == 0)


getSearchQuery

public SearchQueryBean getSearchQuery()

resetSearchQueryBean

protected void resetSearchQueryBean()

getAttachments

public List getAttachments()

getContentEntityObject

public ContentEntityObject getContentEntityObject()

isUpdate

public boolean isUpdate()

getFormname

public String getFormname()

setFormname

public void setFormname(String formname)

getFieldname

public String getFieldname()

setFieldname

public void setFieldname(String fieldname)

getCurrentspace

public String getCurrentspace()

setCurrentspace

public void setCurrentspace(String currentspace)

setPageManager

public void setPageManager(PageManager pageManager)

setSearchBean

public void setSearchBean(SearchBean searchBean)

getMode

public String getMode()

setMode

public void setMode(String mode)

setSpaceManager

public void setSpaceManager(SpaceManager spaceManager)

setLinkManager

public void setLinkManager(LinkManager linkManager)

getPageId

public long getPageId()

setPageId

public void setPageId(long pageId)

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)

getSearchBean

public SearchBean getSearchBean()

getStartIndex

public int getStartIndex()

setStartIndex

public void setStartIndex(int startIndex)

setQuery

public void setQuery(String query)
Provide an interface for setting the search query string.

Parameters:
query -

getQuery

public String getQuery()
Provie access to the current search query string.



Confluence is developed by Atlassian.