public abstract class AbstractRelationOperand extends Object implements IRelationOperand
IRelationOperand implementation which handles the
getRelation ...() methods. | Constructor and Description |
|---|
AbstractRelationOperand() |
| Modifier and Type | Method and Description |
|---|---|
abstract IResource |
asResource()
Get the relation operand as resource, if this operand is managed by a
repository manager.
|
abstract String |
getID()
Get the relation operand's unique id.
|
abstract Object |
getObject()
Get the relation operand's unwrapped object.
|
IRelation |
getRelationBySource(IRelationType type,
IRelationOperand target)
same as
type.getRelation(this, target); |
IRelation |
getRelationByTarget(IRelationType type,
IRelationOperand source)
same as
type.getRelation(source, this); |
IRelationList |
getRelationsBySource(IRelationType type)
same as
type.getRelationBySource(this); |
IRelationList |
getRelationsBySource(IResourceContext context)
same as
IRelationService.getRelationsBySource(context, this); |
IRelationList |
getRelationsBySource(IResourceContext context,
IRelationOperand target)
same as
IRelationService.getRelations(context, this, target); |
IRelationList |
getRelationsByTarget(IRelationType type)
same as
type.getRelationByTarget(this); |
IRelationList |
getRelationsByTarget(IResourceContext context)
same as
IRelationService.getRelationsByTarget(context, this); |
IRelationList |
getRelationsByTarget(IResourceContext context,
IRelationOperand source)
same as
IRelationService.getRelations(source, this); |
abstract IRelationOperandType |
getType()
Get the relation operand's type.
|
public abstract IRelationOperandType getType() throws ResourceException
IRelationOperandgetType in interface IRelationOperandIRelationOperandType with the type of this operand.ResourceException - an error occured while retrieving
the operand's type.public abstract String getID() throws ResourceException
IRelationOperandgetID in interface IRelationOperandString with the unique id of this operand. the id is
only unique within the operand's type.ResourceException - an error occured while retrieving
the operand's id.public abstract Object getObject()
IRelationOperandgetObject in interface IRelationOperandObject with the unwrapped operand, referenced by
this IRelationOperand .public abstract IResource asResource() throws ResourceException
IRelationOperandasResource in interface IRelationOperandIResource with the resource represented by this
operand. returns null , if this operand can not be
converted to a resource.ResourceException - an error occured while retrieving
the operand's resource.public IRelationList getRelationsBySource(IResourceContext context) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandIRelationService.getRelationsBySource(context, this);getRelationsBySource in interface IRelationOperandcontext - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelationList getRelationsBySource(IRelationType type) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandtype.getRelationBySource(this);getRelationsBySource in interface IRelationOperandtype - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelationList getRelationsBySource(IResourceContext context, IRelationOperand target) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandIRelationService.getRelations(context, this, target);getRelationsBySource in interface IRelationOperandcontext - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelation getRelationBySource(IRelationType type, IRelationOperand target) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandtype.getRelation(this, target);getRelationBySource in interface IRelationOperandtype - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelationList getRelationsByTarget(IResourceContext context) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandIRelationService.getRelationsByTarget(context, this);getRelationsByTarget in interface IRelationOperandcontext - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelationList getRelationsByTarget(IRelationType type) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandtype.getRelationByTarget(this);getRelationsByTarget in interface IRelationOperandtype - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelationList getRelationsByTarget(IResourceContext context, IRelationOperand source) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandIRelationService.getRelations(source, this);getRelationsByTarget in interface IRelationOperandcontext - TBD: Description of the incoming method parametersource - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationpublic IRelation getRelationByTarget(IRelationType type, IRelationOperand source) throws InvalidArgumentException, AccessDeniedException, ResourceException
IRelationOperandtype.getRelation(source, this);getRelationByTarget in interface IRelationOperandtype - TBD: Description of the incoming method parametersource - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situation| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
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