public interface IOBNMetadata
createOBNMetadata(String,String,String,IPrincipal)
createOBNMetadata(String,IPrincipal)
getOBNUrl(boolean).
IOBNResolvingContainer using this metadata.
Once you have an IOBNResolvingContainer object,
you can retrieve OBN information, for example:
setParameter(String, IOBNParameterData),
for applications use.
NAVIGATION_PARAM_NAVIGATE_MODE.
When using OBN for navigation, the OBN search is done according to all user's roles.
You can narrow down the search scope to the role the user started his navigation with by setting the
NAVIGATION_PARAM_NAVIGATE_MODE to
NAVIGATE_MODE_SOURCE_ROLE.
When exploring OBN data via IOBNResolvingContainer, however, the navigation mode will not affect your search.
If you want to narrow your search scope when exploring to specific folders, roles or worksets, use getOBNResolvingContainer(List, IOBNMetadata).
myMetaData to source-role mode:
String navModeName = com.sap.portal.obn.service.IOBNConstants.IOBNUrl.IParameters.NAVIGATION_PARAM_NAVIGATE_MODE;
String sourceRoleValue = com.sap.portal.obn.service.IOBNConstants.IOBNUrl.IParameters.IParametersValues.NAVIGATE_MODE_SOURCE_ROLE;
IOBNParameterData sourceNavModeParam = myOBNFactory.createOBNParameterData(sourceRoleValue);
myMetaData.setParameter(navModeName , sourceNavModeParam);
getExpressionParameterNames() or independently).IOBNParameterData with the attribute value .setUseForResolving(boolean).IOBNParameterData
you just created as the value for this parameter.| Modifier and Type | Field and Description |
|---|---|
static String |
NAVIGATION_PARAM_EVALUATE_EXPRESSION
A constant that represents a reserved OBN parameter that is passed to the OBN metadata when performing Navigation by Attributes.
|
| Modifier and Type | Method and Description |
|---|---|
IBusinessObject |
getBOAttributesObject()
Returns a semantic object that holds details of the business object of this OBN metadata.
|
String |
getBusinessObject()
Returns the ID of the business object defined by this OBN metadata.
|
String |
getOBNUrl(boolean withParameters)
Returns the OBN URL for this OBN metadata.
|
String |
getOBNUrlParametersString()
Returns the parameters part of the OBN URL.
|
String |
getOperation()
Returns the ID of the operation defined by this OBN metadata.
|
IOperation |
getOperationAttributesObject()
Returns a semantic object that holds details of the operation of this OBN metadata.
|
IOBNParameterData |
getParameter(String name)
Returns the value and other data for a specified parameter.
|
Set |
getParametersNames(boolean withOBNImplicitParameters)
Returns the names of the business and reserved parameters of this OBN metadata.
|
String |
getSystemAlias()
Returns the system alias of the business object defined by this metadata.
|
com.sap.security.api.IPrincipal |
getUser()
Returns the user for accessing the PCD.
|
boolean |
isExpressionToEvaluate()
Indicates whether this metadata is used for Navigation by Attributes.
|
void |
setParameter(String name,
IOBNParameterData obnParamData)
Adds a parameter to this OBN metadata.
|
static final String NAVIGATION_PARAM_EVALUATE_EXPRESSION
String getSystemAlias()
String getBusinessObject()
String getOperation()
com.sap.security.api.IPrincipal getUser()
void setParameter(String name, IOBNParameterData obnParamData) throws OBNException
name - the parameter nameobnParamData - the values to be set for this parameterOBNException - if a name of a reserved OBN parameter was specifiedIOBNParameterData.setValue(String),
IOBNParameterData.setValues(Set)IOBNParameterData getParameter(String name)
setParameter(String, IOBNParameterData).name - the name of the parameterSet getParametersNames(boolean withOBNImplicitParameters)
withOBNImplicitParameters - if true, the returned set contains OBN reserved parametersString getOBNUrl(boolean withParameters)
false as a parameter in this method and then use getOBNUrlParametersString() to get the parameters separately.OBN://BOTechnicalName=<BOTecnicalName>/BOSystemAlias=<BOSystemAlias>/Operation=<operation>?
<parameterName>=<parameterValue1>[&<parameterName>=<parameterValue2>[&...]][&<parameterName1>=<parameterValue1>][&...]withParameters - if true, the returned URL includes all parameters of this OBN metadata;
otherwise, the base OBN URL is returned with neither reserved nor business parametersString getOBNUrlParametersString()
<parameterName>=<parameterValue1>[&<parameterName>=<parameterValue2>[&...]][&<parameterName1>=<parameterValue1>][&...]
IBusinessObject getBOAttributesObject() throws OBNException
OBNException - if the semantic object was not found in the PCDIOperation getOperationAttributesObject() throws OBNException
OBNException - if the semantic object was not found in the PCDboolean isExpressionToEvaluate()
setUseForResolving(true) in this metadata| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/navigation/api
|
api
|
EP-PIN
|
Copyright 2021 SAP SE Complete Copyright Notice