public class MultipleUploadControl extends WcmResourceControl implements com.sapportals.wdf.event.WdfEventReceiver
Modifier and Type | Class and Description |
---|---|
protected class |
MultipleUploadControl.UploadStatus |
WcmResourceControl.ResourceNotFoundException
START_PAGE_BROWSE, START_PAGE_DETAILS, uri
BLANK_LINK_TARGET, CELL_PADDING_STANDARD, CELL_SPACING_STANDARD, CONTROL_HEADER_STANDARD, DETAILS_CONFIG_FILE, NONE, RES_BUTTON_ADD, RES_BUTTON_APPLY, RES_BUTTON_BACK, RES_BUTTON_CANCEL, RES_BUTTON_CLOSE, RES_BUTTON_LOAD, RES_BUTTON_MORE, RES_BUTTON_OK, RES_BUTTON_REMOVE, RES_BUTTON_SAVE, RES_BUTTON_SELECT, RES_BUTTON_UPDATE, resourceContext, SUMMARY
Constructor and Description |
---|
MultipleUploadControl()
Constructor
|
MultipleUploadControl(String controlID)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkExistingName(String theName)
Check if already the input name exists as Resource name
|
protected void |
createNestedControls()
Register composite parts
|
String |
getArchivedFilesString() |
String |
getExistingFilesString() |
String |
getExpandedIndexesString() |
String |
getLastUploadedFileNames() |
String |
getlockedFilesString() |
int |
getMaxNumberOfFiles() |
String |
getPropertyStructureName() |
String |
getReadonlyFilesString() |
String |
getSelectedFilesPaths() |
boolean |
getSendBackEvent()
Gets the sendBackEvent attribute of the ResourceUploadControl object
|
String |
getStartUri()
Retrieve the startURI
|
String |
getUploadStatus() |
protected void |
initialize()
Initialize control by making a copy of data from resource.
|
com.sapportals.wdf.event.WdfEvent |
onCancel(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onDelete(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onDone(com.sapportals.htmlb.event.Event event)
Called when upload is completed and user returns to initial screen
|
com.sapportals.wdf.event.WdfEvent |
onGetUploadStatus(com.sapportals.htmlb.event.Event e)
Gets string parameter from the applet containing status of uploaded files
|
com.sapportals.wdf.event.WdfEvent |
onSelectFiles(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onSetFilesPaths(com.sapportals.htmlb.event.Event e)
Gets string parameter from the applet and sets it to the paths list
|
com.sapportals.wdf.event.WdfEvent |
onShowDetails(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onUpload(com.sapportals.htmlb.event.Event event) |
protected void |
readInputData() |
void |
receive(com.sapportals.wdf.event.WdfEvent cflEvent)
Reacts on CflResourceEvents and resets the present resource of the
control.
|
com.sapportals.htmlb.Component |
render() |
com.sapportals.htmlb.Component |
renderPersistentProperties()
Renders local properties map as hidden InputField.
|
void |
restorePersistentProperties(com.sapportals.htmlb.page.DynPage page)
Restores single properties map as hidden InputField.
|
void |
setArchivedFilesString(String archivedFilesString) |
void |
setExistingFilesString(List<Integer> files) |
void |
setExistingFilesString(String existingFilesString) |
void |
setExpandedIndexesString(String expandedIndexesString) |
void |
setLastUploadedFileNames(String lastUploadedFileNames) |
void |
setlockedFilesString(String lockedFilesString) |
void |
setMaxNumberOfFiles(int maxNumberOfFiles) |
void |
setPropertyStructureName(String propertyStructureName) |
void |
setReadonlyFilesString(String readonlyFilesString) |
void |
setSelectedFilesPaths(String selectedFilesPaths) |
void |
setSendBackEvent(boolean flag)
Sets the sendBackEvent attribute of the ResourceUploadControl object
|
void |
setUploadStatus(String uploadStatus) |
checkArchivingStauts, getAOStates, getDetailsPageUri, getResource, getResourceLink, getResourceList, getSafeResource, getUri, setResource, setUri
getBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisible
create, create, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initializeImpl, isInitialized, register, resetNestedControls, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInput
public MultipleUploadControl(String controlID)
controlID
- IDpublic MultipleUploadControl()
public String getStartUri()
public String getPropertyStructureName()
public void setPropertyStructureName(String propertyStructureName)
public String getUploadStatus()
public void setUploadStatus(String uploadStatus)
public String getSelectedFilesPaths()
public void setSelectedFilesPaths(String selectedFilesPaths)
public void setSendBackEvent(boolean flag)
flag
- The new sendBackEvent valuepublic boolean getSendBackEvent()
public int getMaxNumberOfFiles()
public void setMaxNumberOfFiles(int maxNumberOfFiles)
public String getExistingFilesString()
public String getArchivedFilesString()
public void setExistingFilesString(String existingFilesString)
public void setArchivedFilesString(String archivedFilesString)
public String getlockedFilesString()
public void setlockedFilesString(String lockedFilesString)
public String getReadonlyFilesString()
public void setReadonlyFilesString(String readonlyFilesString)
public String getExpandedIndexesString()
public void setExpandedIndexesString(String expandedIndexesString)
public void receive(com.sapportals.wdf.event.WdfEvent cflEvent) throws com.sapportals.wdf.WdfException
WcmResourceControl
receive
in interface com.sapportals.wdf.event.WdfEventReceiver
receive
in class WcmResourceControl
cflEvent
- the eventcom.sapportals.wdf.WdfException
- if an error occursprotected void readInputData() throws com.sapportals.wdf.WdfException
readInputData
in class WcmBaseControl
com.sapportals.wdf.WdfException
protected void createNestedControls() throws com.sapportals.wdf.WdfException
createNestedControls
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
- Exception raised in failure situationpublic void restorePersistentProperties(com.sapportals.htmlb.page.DynPage page) throws com.sapportals.wdf.WdfException
restorePersistentProperties
in class com.sapportals.wdf.stack.Control
page
- The DynPage to read out componentscom.sapportals.wdf.WdfException
- WdfExceptionpublic com.sapportals.htmlb.Component renderPersistentProperties() throws com.sapportals.wdf.WdfException
renderPersistentProperties
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
- WdfExceptionpublic com.sapportals.htmlb.Component render() throws com.sapportals.wdf.WdfException
render
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
public com.sapportals.wdf.event.WdfEvent onCancel(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- WcmExceptionpublic com.sapportals.wdf.event.WdfEvent onDone(com.sapportals.htmlb.event.Event event) throws WcmException
event
- Description of the paramWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onSelectFiles(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wdf.event.WdfEvent onUpload(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wdf.event.WdfEvent onSetFilesPaths(com.sapportals.htmlb.event.Event e)
e
- eventpublic com.sapportals.wdf.event.WdfEvent onGetUploadStatus(com.sapportals.htmlb.event.Event e) throws WcmException
e
- eventWcmException
- WcmExceptionpublic com.sapportals.wdf.event.WdfEvent onShowDetails(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
public com.sapportals.wdf.event.WdfEvent onDelete(com.sapportals.htmlb.event.Event event) throws WcmException
WcmException
protected void initialize() throws com.sapportals.wdf.WdfException
initialize
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
- WdfExceptionpublic boolean checkExistingName(String theName)
theName
- - the resource namepublic String getLastUploadedFileNames()
public void setLastUploadedFileNames(String lastUploadedFileNames)
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2018 SAP AG Complete Copyright Notice