|
SAP NetWeaver 7.40 SP 07 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
public abstract class WcmResourceControl
Base Class to create reusable controls with WCM.
All internally handled actions should be .setOnClick(ControlEventDispatcher.DISPATCH_EVENT);
The control IDs have to be generated using: ControlEventDispatcher.dispatchableControlID()
Classed deriving from this class need to implement a default constructor in order to be dynamically instanciated for events.
| Nested Class Summary | |
|---|---|
protected class |
WcmResourceControl.ResourceNotFoundException
Deprecated. As of NetWeaver 7.1 |
| Field Summary | |
|---|---|
String |
START_PAGE_BROWSE
Deprecated. |
String |
START_PAGE_DETAILS
Deprecated. |
protected String |
uri
Deprecated. current uri to the resource or list of resources |
| 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_OK, 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 | |
|---|---|
WcmResourceControl()
Deprecated. |
|
| Method Summary | |
|---|---|
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 |
| 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, readInputData, setControlContext, setResourceContext, setTestMode, setVisible |
| Methods inherited from class com.sapportals.wdf.stack.Control |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String START_PAGE_DETAILS
public final String START_PAGE_BROWSE
protected String uri
| Constructor Detail |
|---|
public WcmResourceControl()
| Method Detail |
|---|
public void setUri(String uri)
public IResource getSafeResource()
throws WcmException,
WcmResourceControl.ResourceNotFoundException
WcmException
WcmResourceControl.ResourceNotFoundException
public IResource getResource()
throws WcmException
WcmException
public void setResource(IResource aResource)
throws ResourceException
ResourceException
public IResourceList getResourceList()
throws WcmException
WcmExceptionpublic String getUri()
public void receive(com.sapportals.wdf.event.WdfEvent event)
throws com.sapportals.wdf.WdfException
receive in interface com.sapportals.wdf.event.WdfEventReceivercom.sapportals.wdf.WdfException
protected 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 content
WcmException - if URL generator could not be retrieved
protected 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 page
com.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
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||