|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wdf.stack.Control
com.sapportals.wcm.control.base.WcmBaseControl
com.sapportals.wcm.control.base.WcmResourceControl
com.sapportals.wcm.control.edit.ResourceUploadControl
public class ResourceUploadControl
Copyright 2004 SAP AG
Created November 1, 2002
| Nested Class Summary | |
|---|---|
protected class |
ResourceUploadControl.UploadStatus
|
| Nested classes/interfaces inherited from class com.sapportals.wcm.control.base.WcmResourceControl |
|---|
WcmResourceControl.ResourceNotFoundException |
| Field Summary |
|---|
| Fields inherited from class com.sapportals.wcm.control.base.WcmResourceControl |
|---|
START_PAGE_BROWSE, START_PAGE_DETAILS, uri |
| Fields inherited from class com.sapportals.wcm.control.base.WcmBaseControl |
|---|
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 |
| Fields inherited from class com.sapportals.wdf.stack.Control |
|---|
id |
| Constructor Summary | |
|---|---|
ResourceUploadControl()
Constructor |
|
ResourceUploadControl(String controlID)
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class com.sapportals.wcm.control.base.WcmResourceControl |
|---|
checkArchivingStauts, getAOStates, getDetailsPageUri, getResource, getResourceLink, getResourceList, getSafeResource, getUri, setResource, setUri |
| Methods inherited from class com.sapportals.wcm.control.base.WcmBaseControl |
|---|
getBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisible |
| Methods inherited from class com.sapportals.wdf.stack.Control |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUploadControl()
public ResourceUploadControl(String controlID)
controlID - | Method Detail |
|---|
public void setStandalone(boolean isStandalone)
isStandalone - public boolean isStandalone()
public void setAdvanced(boolean flag)
flag - public 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 - public String getFileContentType()
public void setFileContentType(String newFileContentType)
newFileContentType - public 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.Controlcom.sapportals.wdf.WdfException - Exception raised in failure situation
public com.sapportals.htmlb.Component render()
throws com.sapportals.wdf.WdfException
render in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.htmlb.RadioButtonGroup overwriteExistingName(boolean versionEnabled)
versionEnabled - - the 'keep version' status of the existing resource
public com.sapportals.htmlb.Component renderKeepProperties(boolean versionEnabled)
versionEnabled - - the 'keep version' status of the existing resource
public 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 GridLayout
public com.sapportals.wdf.event.WdfEvent onYes(com.sapportals.htmlb.event.Event event)
throws WcmException
event -
WcmException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onNo(com.sapportals.htmlb.event.Event event)
throws WcmException
event -
WcmException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onUpload(com.sapportals.htmlb.event.Event event)
throws WcmException
event -
WcmException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onOk(com.sapportals.htmlb.event.Event event)
throws WcmException
event -
WcmException - Exception raised in failure situation
public com.sapportals.wdf.event.WdfEvent onCancel(com.sapportals.htmlb.event.Event event)
throws WcmException
event -
WcmException
public com.sapportals.wdf.event.WdfEvent onDone(com.sapportals.htmlb.event.Event event)
throws WcmException
event - Description of the param
WcmException - Exception raised in failure situation
public void receive(com.sapportals.wdf.event.WdfEvent cflEvent)
throws com.sapportals.wdf.WdfException
WcmResourceControl
receive in interface com.sapportals.wdf.event.WdfEventReceiverreceive in class WcmResourceControlcflEvent -
com.sapportals.wdf.WdfExceptionpublic boolean checkExistingName(String theName)
theName - - the resource name
protected void readInputData()
throws com.sapportals.wdf.WdfException
readInputData in class WcmBaseControlcom.sapportals.wdf.WdfExceptionpublic 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
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||