| java.lang.Object org.sakaiproject.content.tool.AttachmentAction
AttachmentAction | public class AttachmentAction (Code) | |
AttachmentAction is a helper Action that other tools can use to edit their attachments.
|
Method Summary | |
public static String | buildBrowseContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) | public static String | buildHelperContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) build the context. | public static String | buildMainContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) | public static String | buildPropertiesContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) | public static String | buildUploadContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) | public static String | buildUrlContext(VelocityPortlet portlet, Context context, RunData rundata, SessionState state) | public static void | doAdd(RunData data) Handle the eventSubmit_doAdd command to add attachments. | public static void | doBrowse(RunData data) Handle the eventSubmit_doBrowse command to go into browse for a resource on the site mode. | public static void | doBrowse_option(RunData data) Handle the eventSubmit_doBrowse_option command to process inputs from the browse form: go up, go down, or be done. | public static void | doCancel(RunData data) Handle the eventSubmit_doCancel command to abort the edits. | public static void | doCancel_add(RunData data) Handle the eventSubmit_doCancel_add command to abort an add. | public static void | doCancel_browse(RunData data) Handle the eventSubmit_doCancel_browse command to abort the browse. | public static void | doCancel_properties(RunData data) Handle the eventSubmit_doCancel_properties command to abort the properties edit. | public static void | doDispatch_attachment_upload(RunData data) | public static void | doProperties(RunData data) Handle the eventSubmit_doProperties command to edit the selected attachment's properties. | public static void | doRemove(RunData data) Handle the eventSubmit_doRemove command to remove the selected attachment(s). | public static void | doRemove_all(RunData data) Handle the eventSubmit_doRemove_all command to remove the selected attachment(s). | public static void | doSave(RunData data) Handle the eventSubmit_doSave command to save the edited attachments. | public static void | doUpdate_properties(RunData data) Handle the eventSubmit_doUpdate_properties command to keep the edited properties. | public static void | doUpload(RunData data) Handle the eventSubmit_doUpload command to go into upload resource mode. | public static void | doUrl(RunData data) Handle the eventSubmit_doUrl command to go into enter url mode. |
STATE_ATTACHMENTS | final public static String STATE_ATTACHMENTS(Code) | | State attribute for the Vector of References, one for each attachment. Using tools can pre-populate, and can read the results from here.
|
STATE_FROM_TEXT | final public static String STATE_FROM_TEXT(Code) | | The part of the message after "Attachments for:", set by the client tool.
|
STATE_HAS_ATTACHMENT_BEFORE | final public static String STATE_HAS_ATTACHMENT_BEFORE(Code) | | State attribute for where there is at least one attachment before invoking attachment tool
|
STATE_MODE | final public static String STATE_MODE(Code) | | State attributes for Attachments mode - when it's MODE_DONE the tool can process the results.
|
doAdd | public static void doAdd(RunData data)(Code) | | Handle the eventSubmit_doAdd command to add attachments.
|
doBrowse | public static void doBrowse(RunData data)(Code) | | Handle the eventSubmit_doBrowse command to go into browse for a resource on the site mode.
|
doBrowse_option | public static void doBrowse_option(RunData data)(Code) | | Handle the eventSubmit_doBrowse_option command to process inputs from the browse form: go up, go down, or be done.
|
doCancel | public static void doCancel(RunData data)(Code) | | Handle the eventSubmit_doCancel command to abort the edits.
|
doCancel_add | public static void doCancel_add(RunData data)(Code) | | Handle the eventSubmit_doCancel_add command to abort an add.
|
doCancel_browse | public static void doCancel_browse(RunData data)(Code) | | Handle the eventSubmit_doCancel_browse command to abort the browse.
|
doCancel_properties | public static void doCancel_properties(RunData data)(Code) | | Handle the eventSubmit_doCancel_properties command to abort the properties edit. Note: not yet used.
|
doDispatch_attachment_upload | public static void doDispatch_attachment_upload(RunData data)(Code) | | Dispatch function for upload attachment page
|
doProperties | public static void doProperties(RunData data)(Code) | | Handle the eventSubmit_doProperties command to edit the selected attachment's properties. Note: not yet used.
|
doRemove | public static void doRemove(RunData data)(Code) | | Handle the eventSubmit_doRemove command to remove the selected attachment(s).
|
doRemove_all | public static void doRemove_all(RunData data)(Code) | | Handle the eventSubmit_doRemove_all command to remove the selected attachment(s).
|
doSave | public static void doSave(RunData data)(Code) | | Handle the eventSubmit_doSave command to save the edited attachments.
|
doUpdate_properties | public static void doUpdate_properties(RunData data)(Code) | | Handle the eventSubmit_doUpdate_properties command to keep the edited properties. Note: not yet used.
|
doUpload | public static void doUpload(RunData data)(Code) | | Handle the eventSubmit_doUpload command to go into upload resource mode.
|
doUrl | public static void doUrl(RunData data)(Code) | | Handle the eventSubmit_doUrl command to go into enter url mode.
|
|
|