public abstract class WcmResourceControl extends WcmBaseControl implements com.sapportals.wdf.event.WdfEventReceiver
.setOnClick(ControlEventDispatcher.DISPATCH_EVENT);
ControlEventDispatcher.dispatchableControlID()
Modifier and Type | Class and Description |
---|---|
protected class |
WcmResourceControl.ResourceNotFoundException
Deprecated.
As of NetWeaver 7.1
|
Modifier and Type | Field and Description |
---|---|
String |
START_PAGE_BROWSE
Deprecated.
|
String |
START_PAGE_DETAILS
Deprecated.
|
protected String |
uri
Deprecated.
current uri to the resource or list of resources
|
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 |
---|
WcmResourceControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkArchivingStauts(IResource resource)
Deprecated.
Read archiving status for the given resource and check it.
|
protected com.sapportals.wcm.repository.service.archiving.AOStates |
getAOStates(IResource resource)
Deprecated.
|
protected IUriReference |
getDetailsPageUri(RID rid,
RID startRID)
Deprecated.
As of NetWeaver 7.1
|
IResource |
getResource()
Deprecated.
As of NetWeaver 7.1
|
protected com.sapportals.htmlb.Link |
getResourceLink(IResource resource,
String url,
String linkName,
String displayName,
String targetName)
Deprecated.
As of NetWeaver 7.1
|
IResourceList |
getResourceList()
Deprecated.
As of NetWeaver 7.1
|
IResource |
getSafeResource()
Deprecated.
As of NetWeaver 7.1
|
String |
getUri()
Deprecated.
As of NetWeaver 7.1
|
void |
receive(com.sapportals.wdf.event.WdfEvent event)
Deprecated.
As of NetWeaver 7.1
|
void |
setResource(IResource aResource)
Deprecated.
As of NetWeaver 7.1
|
void |
setUri(String uri)
Deprecated.
As of NetWeaver 7.1
|
getBaseBundleString, getBaseBundleString, getBaseBundleString, getBaseBundleString, getBundleString, getBundleString, getBundleString, getBundleString, getBusinessCardLink, getImage, getParameterConfiguration, getResourceContext, getServicePageUri, handleException, isSection508Rendering, isTestMode, isVisible, readInputData, setControlContext, setResourceContext, setTestMode, setVisible
create, create, createNestedControls, createUnequivocallyComponentId, dispatchHtmlbEvent, dispatchWdfEvent, getControlContext, getDynPage, getID, getParent, getPersistenceComponentManager, getRootControl, getStackId, initialize, initializeImpl, isInitialized, register, render, renderPersistentProperties, resetNestedControls, restorePersistentProperties, restoreProperties, setID, setInitialized, setParent, setStackId, triggerInput
public final String START_PAGE_DETAILS
public final String START_PAGE_BROWSE
protected String uri
public void setUri(String uri)
public IResource getSafeResource() throws WcmException, WcmResourceControl.ResourceNotFoundException
null
.WcmException
- if an error occursWcmResourceControl.ResourceNotFoundException
- occurspublic IResource getResource() throws WcmException
null
.WcmException
- if an error occursWcmResourceControl.ResourceNotFoundException
- occurspublic void setResource(IResource aResource) throws ResourceException
aResource
- the resource to be assignedResourceException
- if an error occurspublic IResourceList getResourceList() throws WcmException
WcmException
- if an error occurspublic String getUri()
public void receive(com.sapportals.wdf.event.WdfEvent event) throws com.sapportals.wdf.WdfException
receive
in interface com.sapportals.wdf.event.WdfEventReceiver
event
- the eventcom.sapportals.wdf.WdfException
- if an error occursprotected com.sapportals.htmlb.Link getResourceLink(IResource resource, String url, String linkName, String displayName, String targetName) throws WcmException
Link
object referencing the specified
resource. If url
is specified, it will be used as reference.
If url
is null
, the reference will be a
concatenation of the content access path and the RID of the resource.resource
- the resource in questionurl
- the (encoded) URL of the resource (may be null
)linkName
- the internal name of the Link
object to be createddisplayName
- the name used for displaying the Link
object
(may be null
)targetName
- the target used for the Link
object
(may be null
)Link
object pointing to the
resource for accessing its contentWcmException
- if URL generator could not be retrievedprotected IUriReference getDetailsPageUri(RID rid, RID startRID) throws com.sapportals.wdf.WdfException
rid
.rid
- the RID of the resource in questionstartRID
- a RID restricting navigation in details pagecom.sapportals.wdf.WdfException
- on errorIURLGeneratorService.getResourcePageUri(com.sapportals.wcm.service.urlgenerator.PathKey, com.sapportals.wcm.util.uri.RID, com.sapportals.wcm.util.uri.RID)
protected boolean checkArchivingStauts(IResource resource)
protected com.sapportals.wcm.repository.service.archiving.AOStates getAOStates(IResource resource)
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[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