| org.sakaiproject.cheftool.VelocityPortletPaneledAction org.sakaiproject.cheftool.PagedResourceHelperAction org.sakaiproject.content.tool.FilePickerAction
FilePickerAction | public class FilePickerAction extends PagedResourceHelperAction (Code) | | The FilePickerAction drives the FilePicker helper.
This works with the ResourcesTool to show a file picker / attachment editor that can be used by any Sakai tools as a helper.
If the user ends without a cancel, the original collection of attachments is replaced with the edited list - otherwise it is left unchanged.
|
Inner Class :public static class AttachItem | |
Method Summary | |
public void | attachCopy(String itemId, SessionState state) | public void | attachLink(String itemId, SessionState state) | public String | buildMainPanelContext(VelocityPortlet portlet, Context context, RunData data, SessionState state) | protected String | buildSelectAttachmentContext(VelocityPortlet portlet, Context context, RunData data, SessionState state) | protected static boolean | checkItemFilter(ContentResource resource, ListItem newItem, ContentResourceFilter filter) | protected boolean | checkSelctItemFilter(ContentResource resource, SessionState state) | protected static boolean | checkSelctItemFilter(ContentResource resource, ContentResourceFilter filter) | protected void | cleanup(SessionState state) | public void | doAddattachments(RunData data) | public void | doAttachitem(RunData data) | public void | doAttachupload(RunData data) | public void | doAttachurl(RunData data) | public void | doCancel(RunData data) | public void | doCollapse_collection(RunData data) | public void | doCompleteCreateWizard(RunData data) | public void | doDispatchAction(RunData data) | public void | doExpand_collection(RunData data) | public void | doExpandall(RunData data) Expand all the collection resources. | public void | doHideOtherSites(RunData data) | public void | doRemoveitem(RunData data) | public void | doShowOtherSites(RunData data) | public void | doUnexpandall(RunData data) | protected int | findResourceInList(List resources, String id) Find the resource with this id in the list.
Parameters: messages - The list of messages. Parameters: id - The message id. | protected void | finishAction(SessionState state, ToolSession toolSession, ResourceToolActionPipe pipe) | protected String | initHelperAction(SessionState state, ToolSession toolSession) | protected void | initMessage(ToolSession toolSession, SessionState state) | protected void | initState(SessionState state, VelocityPortlet portlet, RunData data) | protected static String | isolateName(String id) Find the resource name of a given resource id or filepath.
Parameters: id - The resource id. | protected String | panelMethodName(String panel) | protected List<ListItem> | prepPage(SessionState state) Prepare the current page of site collections to display. | protected List<ListItem> | readAllResources(SessionState state) Develop a list of all the site collections that there are to page. | protected void | toolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res) | protected static String | validateURL(String url) |
MODE_ADD_METADATA | final protected static String MODE_ADD_METADATA(Code) | | |
MODE_ATTACHMENT_CREATE | final protected static String MODE_ATTACHMENT_CREATE(Code) | | |
MODE_ATTACHMENT_CREATE_INIT | final protected static String MODE_ATTACHMENT_CREATE_INIT(Code) | | |
MODE_ATTACHMENT_DONE | final protected static String MODE_ATTACHMENT_DONE(Code) | | |
MODE_ATTACHMENT_EDIT_ITEM | final protected static String MODE_ATTACHMENT_EDIT_ITEM(Code) | | |
MODE_ATTACHMENT_EDIT_ITEM_INIT | final protected static String MODE_ATTACHMENT_EDIT_ITEM_INIT(Code) | | |
MODE_ATTACHMENT_NEW_ITEM | final protected static String MODE_ATTACHMENT_NEW_ITEM(Code) | | |
MODE_ATTACHMENT_NEW_ITEM_INIT | final protected static String MODE_ATTACHMENT_NEW_ITEM_INIT(Code) | | |
MODE_ATTACHMENT_SELECT | final protected static String MODE_ATTACHMENT_SELECT(Code) | | |
MODE_ATTACHMENT_SELECT_INIT | final protected static String MODE_ATTACHMENT_SELECT_INIT(Code) | | |
STATE_ADDED_ITEMS | final protected static String STATE_ADDED_ITEMS(Code) | | |
STATE_ATTACHMENT_FILTER | final protected static String STATE_ATTACHMENT_FILTER(Code) | | |
STATE_ATTACHMENT_ORIGINAL_LIST | final protected static String STATE_ATTACHMENT_ORIGINAL_LIST(Code) | | |
STATE_ATTACH_CARDINALITY | final protected static String STATE_ATTACH_CARDINALITY(Code) | | The name of the state attribute for the maximum number of items to attach. The attribute value will be an Integer,
usually FilePickerHelper.CARDINALITY_SINGLE or FilePickerHelper.CARDINALITY_MULTIPLE.
|
STATE_ATTACH_INSTRUCTION | final protected static String STATE_ATTACH_INSTRUCTION(Code) | | |
STATE_ATTACH_LINKS | final protected static String STATE_ATTACH_LINKS(Code) | | |
STATE_ATTACH_SUBTITLE | final protected static String STATE_ATTACH_SUBTITLE(Code) | | |
STATE_ATTACH_TITLE | final protected static String STATE_ATTACH_TITLE(Code) | | |
STATE_ATTACH_TOOL_NAME | final public static String STATE_ATTACH_TOOL_NAME(Code) | | The name of the state attribute containing the name of the tool that invoked Resources as attachment helper
|
STATE_CONTENT_SERVICE | final protected static String STATE_CONTENT_SERVICE(Code) | | |
STATE_CONTENT_TYPE_IMAGE_SERVICE | final protected static String STATE_CONTENT_TYPE_IMAGE_SERVICE(Code) | | The content type image lookup service in the State.
|
STATE_DEFAULT_COLLECTION_ID | final protected static String STATE_DEFAULT_COLLECTION_ID(Code) | | |
STATE_DEFAULT_COPYRIGHT | final protected static String STATE_DEFAULT_COPYRIGHT(Code) | | |
STATE_DEFAULT_RETRACT_TIME | final protected static String STATE_DEFAULT_RETRACT_TIME(Code) | | |
STATE_EXPANDED_COLLECTIONS | final protected static String STATE_EXPANDED_COLLECTIONS(Code) | | |
STATE_EXPAND_ALL | final protected static String STATE_EXPAND_ALL(Code) | | |
STATE_EXPAND_ALL_FLAG | final protected static String STATE_EXPAND_ALL_FLAG(Code) | | |
STATE_FILEPICKER_MODE | final protected static String STATE_FILEPICKER_MODE(Code) | | |
STATE_FILE_UPLOAD_MAX_SIZE | final protected static String STATE_FILE_UPLOAD_MAX_SIZE(Code) | | |
STATE_HELPER_CANCELED_BY_USER | final protected static String STATE_HELPER_CANCELED_BY_USER(Code) | | |
STATE_HELPER_CHANGED | final protected static String STATE_HELPER_CHANGED(Code) | | |
STATE_HOME_COLLECTION_ID | final protected static String STATE_HOME_COLLECTION_ID(Code) | | |
STATE_LIST_SELECTIONS | final protected static String STATE_LIST_SELECTIONS(Code) | | |
STATE_LIST_VIEW_SORT | final protected static String STATE_LIST_VIEW_SORT(Code) | | |
STATE_NAVIGATION_ROOT | final protected static String STATE_NAVIGATION_ROOT(Code) | | |
STATE_NEED_TO_EXPAND_ALL | final protected static String STATE_NEED_TO_EXPAND_ALL(Code) | | |
STATE_NEW_ATTACHMENT | final protected static String STATE_NEW_ATTACHMENT(Code) | | |
STATE_PREVENT_PUBLIC_DISPLAY | final protected static String STATE_PREVENT_PUBLIC_DISPLAY(Code) | | |
STATE_REMOVED_ITEMS | final protected static String STATE_REMOVED_ITEMS(Code) | | |
STATE_RESOURCES_TYPE_REGISTRY | final protected static String STATE_RESOURCES_TYPE_REGISTRY(Code) | | |
STATE_SESSION_INITIALIZED | final protected static String STATE_SESSION_INITIALIZED(Code) | | |
STATE_SHOW_ALL_SITES | final protected static String STATE_SHOW_ALL_SITES(Code) | | |
STATE_SHOW_OTHER_SITES | final protected static String STATE_SHOW_OTHER_SITES(Code) | | |
STATE_TOP_MESSAGE_INDEX | final protected static String STATE_TOP_MESSAGE_INDEX(Code) | | |
doAttachitem | public void doAttachitem(RunData data)(Code) | | Parameters: data - |
doAttachupload | public void doAttachupload(RunData data)(Code) | | Parameters: data - |
doAttachurl | public void doAttachurl(RunData data)(Code) | | Parameters: data - |
doCancel | public void doCancel(RunData data)(Code) | | doCancel to return to the previous state
|
doCollapse_collection | public void doCollapse_collection(RunData data)(Code) | | Remove the collection id from the expanded collection list
|
doCompleteCreateWizard | public void doCompleteCreateWizard(RunData data)(Code) | | Parameters: data - |
doDispatchAction | public void doDispatchAction(RunData data)(Code) | | Parameters: data - |
doExpandall | public void doExpandall(RunData data)(Code) | | Expand all the collection resources.
|
doHideOtherSites | public void doHideOtherSites(RunData data)(Code) | | Parameters: data - |
doShowOtherSites | public void doShowOtherSites(RunData data)(Code) | | Parameters: data - |
doUnexpandall | public void doUnexpandall(RunData data)(Code) | | Unexpand all the collection resources
|
findResourceInList | protected int findResourceInList(List resources, String id)(Code) | | Find the resource with this id in the list.
Parameters: messages - The list of messages. Parameters: id - The message id. The index position in the list of the message with this id, or -1 if not found. |
isolateName | protected static String isolateName(String id)(Code) | | Find the resource name of a given resource id or filepath.
Parameters: id - The resource id. the resource name. |
panelMethodName | protected String panelMethodName(String panel)(Code) | | Allow extension classes to control which build method gets called for this pannel
Parameters: panel - |
prepPage | protected List<ListItem> prepPage(SessionState state)(Code) | | Prepare the current page of site collections to display.
List of ListItem objects to display on this page. |
readAllResources | protected List<ListItem> readAllResources(SessionState state)(Code) | | Develop a list of all the site collections that there are to page.
Sort them as appropriate, and apply search criteria.
|
Methods inherited from org.sakaiproject.cheftool.VelocityPortletPaneledAction | protected void actionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc) public static void addAlert(SessionState state, String message)(Code)(Java Doc) protected void addOptionsMenu(Menu bar, JetspeedRunData data)(Code)(Java Doc) protected boolean allowedToOptions()(Code)(Java Doc) protected void cancelOptions()(Code)(Java Doc) protected String clientWindowId(SessionState state, String toolId)(Code)(Java Doc) public static void disableObservers(SessionState state)(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException(Code)(Java Doc) public void doOptions(RunData runData, Context context)(Code)(Java Doc) public void doReset(RunData runData, Context context)(Code)(Java Doc) public static void enableObservers(SessionState state)(Code)(Java Doc) protected Map getContext(RunData data)(Code)(Java Doc) protected void helperActionDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res, String className)(Code)(Java Doc) protected void initState(SessionState state, VelocityPortlet portlet, JetspeedRunData rundata)(Code)(Java Doc) protected void initState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc) public static void justDelivered(SessionState state)(Code)(Java Doc) public static String mainPanelUpdateId(String toolId)(Code)(Java Doc) protected String panelMethodName(String panel)(Code)(Java Doc) public void processAction(HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc) protected void resetTool(SessionState state)(Code)(Java Doc) protected void saveOptions()(Code)(Java Doc) protected void scheduleFocusRefresh(String[] path)(Code)(Java Doc) protected void schedulePeerFrameRefresh(String id)(Code)(Java Doc) protected void scheduleTopRefresh()(Code)(Java Doc) protected void setVmCourier(HttpServletRequest request, int refresh)(Code)(Java Doc) protected void setVmStdRef(HttpServletRequest request, HttpServletResponse response)(Code)(Java Doc) public static String titlePanelUpdateId(String toolId)(Code)(Java Doc) protected void toolModeDispatch(String methodBase, String methodExt, HttpServletRequest req, HttpServletResponse res) throws ToolException(Code)(Java Doc) protected void updateState(SessionState state, HttpServletRequest req, HttpServletResponse res)(Code)(Java Doc)
|
|
|