public class ResourceUploadControl extends WcmResourceControl implements com.sapportals.wdf.event.WdfEventReceiver
Created November 1, 2002
Modifier and Type | Class and Description |
---|---|
protected class |
ResourceUploadControl.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_REMOVE, RES_BUTTON_SAVE, RES_BUTTON_SELECT, RES_BUTTON_UPDATE, resourceContext, SUMMARY
Constructor and Description |
---|
ResourceUploadControl()
Constructor
|
ResourceUploadControl(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
|
boolean |
getAdvanced() |
boolean |
getAllProperties() |
boolean |
getDisplayHeader()
Gets the displayHeader attribute of the ResourceUploadControl object
|
String |
getFileContentType() |
String |
getFileExtension()
Gets the fileExtension attribute of the ResourceUploadControl object
|
boolean |
getFurtherUploadsFlag()
Gets the furtherUploadsFlag attribute of the ResourceUploadControl object
|
boolean |
getKeepProperties() |
String |
getLastRid() |
boolean |
getNameInvalidFlag()
Gets the nameInvalidFlag attribute of the ResourceUploadControl object
|
boolean |
getNewResourceFlag()
Gets the newResourceFlag attribute of the ResourceUploadControl object
|
String |
getPreviousName()
Gets the previousName attribute of the ResourceUploadControl object
|
String |
getProperties() |
boolean |
getRenameResource()
Gets the renameResource attribute of the ResourceUploadControl object
|
String |
getResourceType() |
boolean |
getSendBackEvent()
Gets the sendBackEvent attribute of the ResourceUploadControl object
|
String |
getServerFilePath()
Gets the serverFilePath attribute of the ResourceUploadControl object
|
boolean |
getShowKeepProperties() |
String |
getStartUri()
Retrieve the startURI
|
String |
getTargetFolder()
Gets the targetFolder attribute of the ResourceUploadControl object
|
boolean |
getUiDetailsHeader()
Gets the uiDetailsHeader attribute of the ResourceUploadControl object
|
String |
getUniqueName()
Gets the uniqueName attribute of the ResourceUploadControl object
|
String |
getUploadedFilePath() |
String |
getUploadStatus() |
boolean |
getVersionFlag()
Gets the versionFlag attribute of the ResourceUploadControl object
|
com.sapportals.htmlb.Component |
inputNewName(com.sapportals.htmlb.GridLayout inputGrid,
int row)
Create a Component which contains a Label and a for InputText for the new name
of the file
|
boolean |
isStandalone() |
boolean |
isToolbarStyle() |
com.sapportals.wdf.event.WdfEvent |
onCancel(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onDone(com.sapportals.htmlb.event.Event event)
Description of the Method
|
com.sapportals.wdf.event.WdfEvent |
onNo(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onOk(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onUpload(com.sapportals.htmlb.event.Event event) |
com.sapportals.wdf.event.WdfEvent |
onYes(com.sapportals.htmlb.event.Event event) |
com.sapportals.htmlb.RadioButtonGroup |
overwriteExistingName(boolean versionEnabled)
Creates a radiobutton group for setting the next actions ( overwrite, save with
another name...) regarding uploading an existing resource.
|
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()
Build the UI for this control
|
com.sapportals.htmlb.Component |
renderKeepProperties(boolean versionEnabled)
Renders the checkbox for keeping the properties from previous file uploaded
|
void |
setAdvanced(boolean flag) |
void |
setAllProperties(boolean flag) |
void |
setDisplayHeader(boolean newIsViewValue)
Sets the displayHeader attribute of the ResourceUploadControl object
|
void |
setFileContentType(String newFileContentType) |
void |
setFileExtension(String newExtension)
Sets the fileExtension attribute of the ResourceUploadControl object
|
void |
setFurtherUploadsFlag(boolean newFlagValue)
Sets the furtherUploadsFlag attribute of the ResourceUploadControl object
|
void |
setKeepProperties(boolean flag) |
void |
setLastRid(String startUri)
Set the startURI with a new value
|
void |
setNameInvalidFlag(boolean flag)
Sets the nameInvalidFlag attribute of the ResourceUploadControl object
|
void |
setNewResourceFlag(boolean flag)
Sets the newResourceFlag attribute of the ResourceUploadControl object
|
void |
setPreviousName(String newName)
Sets the previousName attribute of the ResourceUploadControl object
|
void |
setProperties(String properties) |
void |
setRenameResource(boolean flag)
Sets the renameResource attribute of the ResourceUploadControl object
|
void |
setResourceType(String newResourceTypes) |
void |
setSendBackEvent(boolean flag)
Sets the sendBackEvent attribute of the ResourceUploadControl object
|
void |
setServerFilePath(String newServerFilePath)
Sets the serverFilePath attribute of the ResourceUploadControl object
|
void |
setShowKeepProperties(boolean flag) |
void |
setStandalone(boolean isStandalone) |
void |
setStartUri(String startUri)
Set the startURI with a new value
|
void |
setTargetFolder(String newPath)
Sets the targetFolder attribute of the ResourceUploadControl object
|
void |
setToolbarStyle(boolean flag) |
void |
setUiDetailsHeader(boolean uiDetails)
Sets the uiDetailsHeader attribute of the ResourceUploadControl object
|
void |
setUniqueName(String newName)
Sets the uniqueName attribute of the ResourceUploadControl object
|
void |
setUploadedFilePath(String newFilePath) |
void |
setUploadStatus(String newStatus) |
void |
setVersionFlag(boolean newFlag)
Sets the versionFlag attribute of the ResourceUploadControl object
|
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, initialize, initializeImpl, isInitialized, register, renderPersistentProperties, resetNestedControls, restorePersistentProperties, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInput
public ResourceUploadControl()
public ResourceUploadControl(String controlID)
controlID
- controlIDpublic void setStandalone(boolean isStandalone)
isStandalone
- isStandalonepublic boolean isStandalone()
public void setAdvanced(boolean flag)
flag
- flagpublic boolean getAdvanced()
public void setAllProperties(boolean flag)
public boolean getAllProperties()
public void setKeepProperties(boolean flag)
public boolean getKeepProperties()
public void setShowKeepProperties(boolean flag)
public boolean getShowKeepProperties()
public void setToolbarStyle(boolean flag)
public boolean isToolbarStyle()
public void setNameInvalidFlag(boolean flag)
flag
- The new nameInvalidFlag valuepublic boolean getNameInvalidFlag()
public void setSendBackEvent(boolean flag)
flag
- The new sendBackEvent valuepublic boolean getSendBackEvent()
public void setUiDetailsHeader(boolean uiDetails)
uiDetails
- The new uiDetailsHeader valuepublic boolean getUiDetailsHeader()
public String getStartUri()
public void setStartUri(String startUri)
startUri
- - new vakue of the startUripublic String getLastRid()
public void setLastRid(String startUri)
startUri
- - new vakue of the startUripublic String getUploadStatus()
public void setUploadStatus(String newStatus)
public String getUniqueName()
public void setUniqueName(String newName)
newName
- The new uniqueName valuepublic String getPreviousName()
public void setPreviousName(String newName)
newName
- The new previousName valuepublic boolean getVersionFlag()
public void setVersionFlag(boolean newFlag)
newFlag
- The new versionFlag valuepublic String getUploadedFilePath()
public void setUploadedFilePath(String newFilePath)
newFilePath
- File Pathpublic String getFileContentType()
public void setFileContentType(String newFileContentType)
newFileContentType
- content typepublic String getTargetFolder()
public void setTargetFolder(String newPath)
newPath
- The new targetFolder valuepublic String getServerFilePath()
public void setServerFilePath(String newServerFilePath)
newServerFilePath
- The new serverFilePath valuepublic boolean getDisplayHeader()
public void setDisplayHeader(boolean newIsViewValue)
newIsViewValue
- The new displayHeader valuepublic boolean getFurtherUploadsFlag()
public void setFurtherUploadsFlag(boolean newFlagValue)
newFlagValue
- The new furtherUploadsFlag valuepublic String getFileExtension()
public void setFileExtension(String newExtension)
newExtension
- The new fileExtension valuepublic void setNewResourceFlag(boolean flag)
flag
- The new newResourceFlag valuepublic boolean getNewResourceFlag()
public void setRenameResource(boolean flag)
flag
- The new renameResource valuepublic boolean getRenameResource()
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 com.sapportals.htmlb.Component render() throws com.sapportals.wdf.WdfException
render
in class com.sapportals.wdf.stack.Control
com.sapportals.wdf.WdfException
- Exception raised in failure situationpublic com.sapportals.htmlb.RadioButtonGroup overwriteExistingName(boolean versionEnabled)
versionEnabled
- - the 'keep version' status of the existing resourcepublic com.sapportals.htmlb.Component renderKeepProperties(boolean versionEnabled)
versionEnabled
- - the 'keep version' status of the existing resourcepublic com.sapportals.htmlb.Component inputNewName(com.sapportals.htmlb.GridLayout inputGrid, int row)
inputGrid
- - the GridLayout were the components will be placedrow
- - the row number were the components will be placed into GridLayoutpublic com.sapportals.wdf.event.WdfEvent onYes(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onNo(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onUpload(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onOk(com.sapportals.htmlb.event.Event event) throws WcmException
event
- eventWcmException
- Exception raised in failure situationpublic 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 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
- cflEventcom.sapportals.wdf.WdfException
- WdfExceptionpublic boolean checkExistingName(String theName)
theName
- - the resource nameprotected void readInputData() throws com.sapportals.wdf.WdfException
readInputData
in class WcmBaseControl
com.sapportals.wdf.WdfException
public void setResourceType(String newResourceTypes)
public String getResourceType()
public void setProperties(String properties)
public String getProperties()
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