com.sap.portal.unification
Interface IObjectBasedNavigation
- All Superinterfaces:
- com.sapportals.portal.prt.service.IService
- public interface IObjectBasedNavigation
- extends com.sapportals.portal.prt.service.IService
API that handles finding Navigation Tergets (e.g. iViews) according to
client action that is performed over a BusinessObject.
(The APIs of this interface requires IPortalComponentRequest object)
The connection between the BusinessObject and the relevant Navigation Targets
is done using an Operation Object.
Operation object is bound under (i.e. Belongs to) a BusinessObject,
while Operations are also implemented by a Terget.
Operation name has the following pattern:
SystemAlias.BusinessObject.Operation.
The first two parts (SystemAlias.BusinessObject)
are the name of the BusinessObject under which the Operation is bound.
All the methods get either the full Operation name or the BusinessObject name,
and using the RoleService to find the Targets that implement the Operation.
|
Field Summary |
static java.lang.String |
KEY
|
|
Method Summary |
IOBNTarget |
getDefaultTarget(java.lang.String systemAlias,
java.lang.String businessObjName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns a single pair of <iView, Operation> according to
to the Operation priority.
|
IOBNTarget |
getDefaultTargetForOperation(java.lang.String systemAlias,
java.lang.String businessObjName,
java.lang.String operationName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns a single pair <iView, Operation> according to
to the Operation priority.
|
java.util.List |
getTargets(java.lang.String systemAlias,
java.lang.String businessObjName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns a List of iViews that implement any operation belongs to the given BusinessObject.
|
java.util.Set |
getTargetsForOperation(java.lang.String systemName,
java.lang.String objectName,
java.lang.String operationName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns a List of iViews that implement the given operation.
|
boolean |
isTargetExist(java.lang.String systemAlias,
java.lang.String objectName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns a boolean value that indicates if there is any iViews implementing
any operation that belongs to the given BusinessObject. |
boolean |
isTargetExistsForOperation(java.lang.String systemAlias,
java.lang.String objectName,
java.lang.String operationName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
Returns a boolean value that indicates if there is any iViews implementing
a specific operation. |
| Methods inherited from interface com.sapportals.portal.prt.service.IService |
afterInit, configure, destroy, getContext, getKey, init, release |
KEY
public static final java.lang.String KEY
getDefaultTarget
public IOBNTarget getDefaultTarget(java.lang.String systemAlias,
java.lang.String businessObjName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
- Returns a single pair of
<iView, Operation> according to
to the Operation priority.
The returned pair is chosen according to the following conditions:
- The Operation object belongs to the given BusinessObject
- The Operation is implemented by the iView
- The Operation has the highest priority of all similar cases (all other pairs)
- Parameters:
systemAlias - String [in] -The System alias part of the BusinessObject namebusinessObjName - String [in] - The BusinessObject part of the BusinessObject namerequest - IPortalComponentRequest [in]- Returns:
IOBNTarget - The result OBNTarget
getTargets
public java.util.List getTargets(java.lang.String systemAlias,
java.lang.String businessObjName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
- Returns a List of iViews that implement any operation belongs to the given BusinessObject.
Every iView in the result List must fulfill the following conditions:
- The Operation object belongs to the given BusinessObject
- The Operation object is implemented by the iView
- Parameters:
systemAlias - String [in] - The System alias part of the BusinessObject namebusinessObjName - String [in] - The BusinessObject part of the BusinessObject namerequest - IPortalComponentRequest [in]- Returns:
List - The list of OBNTargets.
isTargetExist
public boolean isTargetExist(java.lang.String systemAlias,
java.lang.String objectName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
- Returns a boolean value that indicates if there is any iViews implementing
any operation that belongs to the given BusinessObject.
- Parameters:
systemAlias - String [in] - The System alias part of the BusinessObject namebusinessObjName - String [in] - The BusinessObject part of the BusinessObject namerequest - IPortalComponentRequest [in]- Returns:
boolean - true if there is a result and false if not
isTargetExistsForOperation
public boolean isTargetExistsForOperation(java.lang.String systemAlias,
java.lang.String objectName,
java.lang.String operationName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
- Returns a boolean value that indicates if there is any iViews implementing
a specific operation.
- Parameters:
systemAlias - String [in] - The System alias part of the BusinessObject namebusinessObjName - String [in] - The BusinessObject part of the BusinessObject nameoperationName - String [in] - The Operation namerequest - IPortalComponentRequest [in]- Returns:
boolean - true if there is a result and false if not
getDefaultTargetForOperation
public IOBNTarget getDefaultTargetForOperation(java.lang.String systemAlias,
java.lang.String businessObjName,
java.lang.String operationName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
- Returns a single pair
<iView, Operation> according to
to the Operation priority.
The returned pair is chosen according to the following conditions:
- The Operation is implemented by the iView
- The Operation has the highest priority of all similar cases (all other pairs)
- Parameters:
systemAlias - String [in] - The System alias part of the Operation full namebusinessObjName - String [in] - The BusinessObject part of the Operationfull nameoperationName - String [in] - The Operation part of the Operationfull namerequest - IPortalComponentRequest/ [in]- Returns:
IOBNTarget - The result OBNTarget
getTargetsForOperation
public java.util.Set getTargetsForOperation(java.lang.String systemName,
java.lang.String objectName,
java.lang.String operationName,
com.sapportals.portal.prt.component.IPortalComponentRequest request)
throws javax.naming.NamingException
- Returns a List of iViews that implement the given operation.
- Parameters:
systemAlias - String [in] - The System alias part of the Operation full namebusinessObjName - String [in] - The BusinessObject part of the Operation full nameoperationName - String [in] - The Operation part of the Operation full namerequest - IPortalComponentRequest [in]- Returns:
Set - The Set of OBNTargets