public class ResourcePropertiesControl extends WcmResourceControl implements com.sapportals.wdf.event.WdfEventReceiver
WcmResourceControl.ResourceNotFoundException| Modifier and Type | Field and Description |
|---|---|
protected static String |
EVENT_ON_TOGGLE_TABSTRIP |
boolean |
newCollection |
boolean |
propertiesForUpload |
String |
resourceMimetype |
String[] |
resourceTypes |
START_PAGE_BROWSE, START_PAGE_DETAILS, uriBLANK_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 |
|---|
ResourcePropertiesControl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSave()
Workaround for composite control usage.
|
com.sapportals.wdf.event.WdfEvent |
checkMandatoryProperties()
Description of the Method
|
void |
create(com.sapportals.wdf.stack.ControlContext cc)
Description of the Method
|
protected void |
createNestedControls()
Register composite parts
|
List |
getAllProperties()
Retrieves all properties created for the resource
|
boolean |
getDebug()
Gets the debug attribute of the ResourcePropertyControl object
|
com.sapportals.htmlb.Component |
getExternalComponent()
Gets the externalComponent attribute of the ResourcePropertiesControl object
|
boolean |
getHideIdFlag()
Gets the hideIdFlag attribute of the ResourcePropertiesControl object
|
boolean |
getIdMandatoryFlag()
Gets the idMandatoryFlag attribute of the ResourcePropertiesControl object
|
String |
getName()
Gets the name attribute of the ResourcePropertiesControl object
|
boolean |
getNameDisableFlag()
Gets the nameDisableFlag attribute of the ResourcePropertiesControl object
|
boolean |
getNameInvalidFlag()
Gets the nameInvalidFlag attribute of the ResourcePropertiesControl object
|
boolean |
getNewCollection()
Gets the newCollection attribute of the ResourcePropertiesControl object
|
boolean |
getNewResourceFlag()
Gets the newResourceFlag attribute of the ResourcePropertiesControl object
|
String |
getPersistsPropertiesKey()
Gets the persistsPropertiesKey attribute of the ResourcePropertiesControl object
|
boolean |
getPropertiesForUpload()
Gets the propertiesForUpload attribute of the ResourcePropertiesControl object
|
IProperty |
getProperty(IPropertyName propertyName)
Retrieve a property from the property list
|
IPropertyMap |
getPropertyMap()
Retrieve all properties created for the resource
|
String |
getResourceMimetype()
Gets the resourceMimetype attribute of the ResourcePropertiesControl object
|
String[] |
getResourceTypes()
Gets the resourceTypes attribute of the ResourcePropertiesControl object
|
int |
getSelectedTab()
Gets the selectedTab attribute of the ResourcePropertiesControl object
|
boolean |
getSendBackEvent()
Gets the sendBackEvent attribute of the ResourcePropertiesControl object
|
boolean |
getShowProperties()
Gets the showProperties attribute of the ResourcePropertiesControl object
|
boolean |
getShowPropertiesLink()
Gets the showPropertiesLink attribute of the ResourcePropertiesControl object
|
boolean |
getShowSaveButton()
Get the ShowSaveButton attribute of the ResourceCustomPropertyControl2 object.
|
boolean |
getUiDetailsHeader()
Gets the uiDetailsHeader attribute of the ResourcePropertiesControl object
|
boolean |
getUpdateProperties()
Gets the updateProperties attribute of the ResourcePropertiesControl object
|
protected void |
initialize()
Initialize control by making a copy of data from resource.
|
protected boolean |
isAccessibleImpl() |
com.sapportals.wdf.event.WdfEvent |
onAddNewValue(com.sapportals.htmlb.event.Event event)
Adds a new empty component for a multi-valued property
|
com.sapportals.wdf.event.WdfEvent |
onCancel(com.sapportals.htmlb.event.Event event)
Description of the Method
|
com.sapportals.wdf.event.WdfEvent |
onEditHtml(com.sapportals.htmlb.event.Event event)
Renders the Html editor for a HTML metyproperty type
|
com.sapportals.wdf.event.WdfEvent |
onSaveProperties(com.sapportals.htmlb.event.Event event)
Description of the Method
|
com.sapportals.wdf.event.WdfEvent |
onSetProperties(com.sapportals.htmlb.event.Event event)
Description of the Method
|
void |
onToggleTabStrip(com.sapportals.htmlb.event.Event event)
Changes the group tab
|
com.sapportals.wdf.event.WdfEvent |
processCommandException(Command command)
Description of the Method
|
protected void |
readInputData() |
void |
receive(com.sapportals.wdf.event.WdfEvent wdfEvent)
Description of the Method
|
com.sapportals.htmlb.Component |
render()
Return the GridLayout that contains all the controls sub controls.
|
com.sapportals.htmlb.Component |
renderBaseProperties(boolean isResourceLockedByOther)
Render ID, Name and Description fields
|
protected com.sapportals.htmlb.Component |
renderCustomProperties()
Render Custom group
|
com.sapportals.htmlb.Component |
renderPersistentProperties()
Renders local properties map as hidden InputField.
|
com.sapportals.htmlb.Component |
renderPropertiesTabs()
Renders the group tabs
|
void |
restorePersistentProperties(com.sapportals.htmlb.page.DynPage page)
Restores local properties map as hidden InputField.
|
com.sapportals.wdf.event.WdfEvent |
saveAllProperties(com.sapportals.htmlb.event.Event event)
Description of the Method
|
void |
setDebug(boolean debug)
Sets the debug attribute of the ResourcePropertyControl object
|
void |
setEmptyProperties()
Empty the properties list
|
void |
setExternalComponent(com.sapportals.htmlb.Component uiDetails)
Sets the externalComponent attribute of the ResourcePropertiesControl object
|
void |
setHideIdFlag(boolean flag)
Sets the hideIdFlag attribute of the ResourcePropertiesControl object
|
void |
setIdMandatoryFlag(boolean flag)
Sets the idMandatoryFlag attribute of the ResourcePropertiesControl object
|
void |
setName(String displayName)
Sets the name attribute of the ResourcePropertiesControl object
|
void |
setNameDisableFlag(boolean flag)
Sets the nameDisableFlag attribute of the ResourcePropertiesControl object
|
void |
setNameInvalidFlag(boolean flag)
Sets the nameInvalidFlag attribute of the ResourcePropertiesControl object
|
void |
setNewCollection(boolean flag)
Sets the newCollection attribute of the ResourcePropertiesControl object
|
void |
setNewResourceFlag(boolean flag)
Sets the newResourceFlag attribute of the ResourcePropertiesControl object
|
void |
setPersistsPropertiesKey(String persistsPropertiesKeyValue)
Sets the persistsPropertiesKey attribute of the ResourcePropertiesControl object
|
void |
setPropertiesForUpload(boolean flag)
Sets the propertiesForUpload attribute of the ResourcePropertiesControl object
|
void |
setResourceMimetype(String mimetype)
Sets the resourceMimetype attribute of the ResourcePropertiesControl object
|
void |
setResourceTypes(String[] newResourceTypes)
Sets the resourceTypes attribute of the ResourcePropertiesControl object
|
void |
setSelectedTab(int flag)
Sets the selectedTab attribute of the ResourcePropertiesControl object
|
void |
setSendBackEvent(boolean flag)
Sets the sendBackEvent attribute of the ResourcePropertiesControl object
|
void |
setShowProperties(boolean flag)
Sets the showProperties attribute of the ResourcePropertiesControl object
|
void |
setShowPropertiesLink(boolean flag)
Sets the showPropertiesLink attribute of the ResourcePropertiesControl object
|
void |
setShowSaveButton(boolean showSaveButton)
Set the ShowSaveButton attribute of the ResourceCustomPropertyControl2 object.
|
void |
setUiDetailsHeader(boolean uiDetails)
Sets the uiDetailsHeader attribute of the ResourcePropertiesControl object
|
void |
setUpdateProperties(boolean flag)
Sets the updateProperties attribute of the ResourcePropertiesControl object
|
void |
setUri(String uri)
Sets the uri attribute of the ResourcePropertiesControl object
|
checkArchivingStauts, getAOStates, getDetailsPageUri, getResource, getResourceLink, getResourceList, getSafeResource, getUri, setResourcegetBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, setControlContext, setResourceContext, setTestMode, setVisiblecreate, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initializeImpl, isInitialized, register, resetNestedControls, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInputprotected static final String EVENT_ON_TOGGLE_TABSTRIP
public boolean newCollection
public String resourceMimetype
public String[] resourceTypes
public boolean propertiesForUpload
public void setUri(String uri)
setUri in class WcmResourceControluri - The new uri valuepublic void setDebug(boolean debug)
debug - The new debug valuepublic boolean getDebug()
public void setShowProperties(boolean flag)
flag - The new showProperties valuepublic boolean getShowProperties()
public void setShowPropertiesLink(boolean flag)
flag - The new showPropertiesLink valuepublic boolean getShowPropertiesLink()
public void setPersistsPropertiesKey(String persistsPropertiesKeyValue)
persistsPropertiesKeyValue - The new persistsPropertiesKey valuepublic String getPersistsPropertiesKey()
public void setSendBackEvent(boolean flag)
flag - The new sendBackEvent valuepublic boolean getSendBackEvent()
public void setUpdateProperties(boolean flag)
flag - The new updateProperties valuepublic boolean getUpdateProperties()
public void setNameInvalidFlag(boolean flag)
flag - The new nameInvalidFlag valuepublic boolean getNameInvalidFlag()
public void setIdMandatoryFlag(boolean flag)
flag - The new idMandatoryFlag valuepublic boolean getIdMandatoryFlag()
public void setHideIdFlag(boolean flag)
flag - The new hideIdFlag valuepublic boolean getHideIdFlag()
public void setNameDisableFlag(boolean flag)
flag - The new nameDisableFlag valuepublic boolean getNameDisableFlag()
public void setShowSaveButton(boolean showSaveButton)
showSaveButton - The new ShowSaveButton valuepublic boolean getShowSaveButton()
public void setNewResourceFlag(boolean flag)
flag - The new newResourceFlag valuepublic boolean getNewResourceFlag()
public void setNewCollection(boolean flag)
flag - The new newCollection valuepublic boolean getNewCollection()
public void setResourceMimetype(String mimetype)
mimetype - The new resourceMimetype valuepublic String getResourceMimetype()
public void setResourceTypes(String[] newResourceTypes)
newResourceTypes - The new resourceTypes valuepublic String[] getResourceTypes()
public void setPropertiesForUpload(boolean flag)
flag - The new propertiesForUpload valuepublic boolean getPropertiesForUpload()
public void setSelectedTab(int flag)
flag - The new selectedTab valuepublic int getSelectedTab()
public void setUiDetailsHeader(boolean uiDetails)
uiDetails - The new uiDetailsHeader valuepublic boolean getUiDetailsHeader()
public void setExternalComponent(com.sapportals.htmlb.Component uiDetails)
uiDetails - The new externalComponent valuepublic com.sapportals.htmlb.Component getExternalComponent()
public void setName(String displayName)
displayName - The new name valuepublic String getName()
public boolean canSave()
throws WcmException,
com.sapportals.wdf.WdfException
WcmException - Exception raised in failure situationcom.sapportals.wdf.WdfException - Exception raised in failure situationprotected void createNestedControls()
throws com.sapportals.wdf.WdfException
createNestedControls in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic void create(com.sapportals.wdf.stack.ControlContext cc)
throws com.sapportals.wdf.WdfException
create in class com.sapportals.wdf.stack.Controlcc - Description of the paramcom.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.Controlcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.htmlb.Component renderBaseProperties(boolean isResourceLockedByOther)
throws WcmException
isResourceLockedByOther - Description of the paramWcmException - Exception raised in failure situationpublic void receive(com.sapportals.wdf.event.WdfEvent wdfEvent)
throws com.sapportals.wdf.WdfException
receive in interface com.sapportals.wdf.event.WdfEventReceiverreceive in class WcmResourceControlwdfEvent - Description of the paramcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onSetProperties(com.sapportals.htmlb.event.Event event)
throws WcmException
event - Description of the paramWcmException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onSaveProperties(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the paramcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent saveAllProperties(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the paramcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onCancel(com.sapportals.htmlb.event.Event event)
throws ResourceException
event - Description of the paramResourceException - Exception raised in failure situationpublic void onToggleTabStrip(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the paramcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onAddNewValue(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the paramcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.wdf.event.WdfEvent onEditHtml(com.sapportals.htmlb.event.Event event)
throws com.sapportals.wdf.WdfException
event - Description of the paramcom.sapportals.wdf.WdfException - Exception raised in failure situationpublic com.sapportals.htmlb.Component renderPropertiesTabs()
throws WcmException
WcmException - Exception raised in failure situationprotected com.sapportals.htmlb.Component renderCustomProperties()
throws WcmException
WcmException - Exception raised in failure situationprotected void readInputData()
throws com.sapportals.wdf.WdfException
readInputData in class WcmBaseControlcom.sapportals.wdf.WdfExceptionprotected void initialize()
throws com.sapportals.wdf.WdfException
initialize in class com.sapportals.wdf.stack.Controlcom.sapportals.wdf.WdfException - WdfExceptionpublic void restorePersistentProperties(com.sapportals.htmlb.page.DynPage page)
throws com.sapportals.wdf.WdfException
restorePersistentProperties in class com.sapportals.wdf.stack.Controlpage - 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.Controlcom.sapportals.wdf.WdfException - WdfExceptionprotected boolean isAccessibleImpl()
throws WcmException
WcmExceptionpublic List getAllProperties()
public IProperty getProperty(IPropertyName propertyName)
propertyName - Description of the Parameterpublic void setEmptyProperties()
public com.sapportals.wdf.event.WdfEvent checkMandatoryProperties()
public IPropertyMap getPropertyMap()
public com.sapportals.wdf.event.WdfEvent processCommandException(Command command)
command - Description of the param| 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 2021 SAP SE Complete Copyright Notice