|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRelation
A relation.
| Method Summary | |
|---|---|
void |
delete()
Delete a given relation. |
void |
deleteProperties(IPropertyNameList propertyNameList)
Delete several specified properties (if they exist). |
void |
deleteProperty(IPropertyName propertyName)
Delete a specific property. |
String |
getID()
Get the relation's unique id. the id is only unique with respect to the relation's type. |
IOrderedRelationPosition |
getPosition()
Get the relation's positioning. |
IPropertyMap |
getProperties()
Get all properties of the relation. |
IPropertyMap |
getProperties(IPropertyNameList propertyNameList)
Get several specified properties. |
IProperty |
getProperty(IPropertyName propertyName)
Get a specific property. |
IRelationOperand |
getSource()
Get the relation's source operand. |
Object |
getSourceOperand()
Get the relation's source operand's value. |
IRelationOperand |
getTarget()
Get the relation's target operand. |
Object |
getTargetOperand()
Get the relation's target operand's value. |
IRelationType |
getType()
Get the relation's type. |
void |
setPosition(IOrderedRelationPosition position)
Change the relation's position (only supported for IOrderedRelation
s). |
void |
setProperties(IPropertyMap properties)
Set several specified properties. |
void |
setProperty(IProperty property)
Set a specific property. |
IRelation |
setSource(IRelationOperand source)
Set the relation's source operand. |
IRelation |
setSourceOperand(Object source)
Set the relation's source operand by value. |
IRelation |
setTarget(IRelationOperand target)
Set the relation's target operand. |
IRelation |
setTargetOperand(Object target)
Set the relation's target operand value. |
| Method Detail |
|---|
String getID()
String with the unique id of the relation.IRelationType getType()
IRelationType of the relation.
IRelationOperand getSource()
throws AccessDeniedException,
ResourceException
IRelationOperand with the wrapped source operand
of the relation or null if the source isn't retrievable
any more.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the operand is not gettable
within the context of the relation type.
ResourceException - if there was an error while
retrieving the source operand.
Object getSourceOperand()
throws AccessDeniedException,
ResourceException
Object with the unwrapped source operand of the
relation.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the operand is not gettable
within the context of the relation type.
ResourceException - if there was an error while
retrieving the source operand.
IRelation setSource(IRelationOperand source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - the IRelationOperand with the wrapped operand to
set as source operand for the relation.
IRelation with the new target operand.
InvalidArgumentException - Exception raised in failure situation
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
InvalidArgumentException - if the source is null
.
AccessDeniedException - if the source is not settable
within the context of the relation type.
ResourceException - if there was an error while setting
the source operand.
IRelation setSourceOperand(Object source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - an Object with the operand value to set as
source operand for the relation.
IRelation with the new target operand.
InvalidArgumentException - Exception raised in failure situation
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
InvalidArgumentException - if the source value is
null .
AccessDeniedException - if the source is not settable
within the context of the relation type.
ResourceException - if there was an error while setting
the source operand.
IRelationOperand getTarget()
throws AccessDeniedException,
ResourceException
IRelationOperand with the wrapped target operand
of the relation or null if the target isn't retrievable
any more.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the operand is not gettable
within the context of the relation type.
ResourceException - if there was an error while
retrieving the target operand.
Object getTargetOperand()
throws AccessDeniedException,
ResourceException
Object with the unwrapped target operand value of
the relation.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the operand is not gettable
within the context of the relation type.
ResourceException - if there was an error while
retrieving the target operand.
IRelation setTarget(IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
target - the IRelationOperand with the wrapped operand to
set as target operand for the relation.
IRelation with the new target operand.
InvalidArgumentException - Exception raised in failure situation
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
InvalidArgumentException - if the target is null
.
AccessDeniedException - if the target is not settable
within the context of the relation type.
ResourceException - if there was an error while setting
the target operand.
IRelation setTargetOperand(Object target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
target - the Object with the operand value to set as
target operand for the relation.
IRelation with the new target operand.
InvalidArgumentException - Exception raised in failure situation
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
InvalidArgumentException - if the target is null
.
AccessDeniedException - if the target is not settable
within the context of the relation type.
ResourceException - if there was an error while setting
the target operand.
IPropertyMap getProperties()
throws AccessDeniedException,
ResourceException
IPropertyMap with the references to all properties
of the relation.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the properties are not
gettable within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
IPropertyMap getProperties(IPropertyNameList propertyNameList)
throws AccessDeniedException,
ResourceException
propertyNameList - a IPropertyNameList as a list with the
names of the requested properties.
IPropertyMap with the references to the requested
and exisiting properties. The list might be empty if no properties
with the given names where found. if the given list of names was
null all properties are selected.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the properties are not
gettable within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
void setProperties(IPropertyMap properties)
throws AccessDeniedException,
ResourceException
null .
properties - a IPropertyMap as a list of properties to
add or change.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the properties are not
gettable within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
void deleteProperties(IPropertyNameList propertyNameList)
throws AccessDeniedException,
ResourceException
null .
propertyNameList - a IPropertyNameList as a list with the
names of the properties to delete.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the properties are not
deleteable within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
IProperty getProperty(IPropertyName propertyName)
throws AccessDeniedException,
ResourceException
propertyName - a IPropertyName with the name of the
property to read.
IProperty with a reference to the property or
null if the property was not found or the given property name
was null .
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the property is not gettable
within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
void setProperty(IProperty property)
throws AccessDeniedException,
ResourceException
null
, nothing happens.
property - the IProperty to set.
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the property is not settable
within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
void deleteProperty(IPropertyName propertyName)
throws AccessDeniedException,
ResourceException
null
, the method will return without doing anything.
propertyName - TBD: Description of the incoming method parameter
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the property is not
deleteable within the context of the relation type.
ResourceException - if there was an error in the
relation manager.
void delete()
throws AccessDeniedException,
ResourceException
AccessDeniedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
AccessDeniedException - if the given context (as passed
when retrieving the relation type) has no permissions to delete the
relation.
ResourceException - if there was an internal error in
the relation manager.
IOrderedRelationPosition getPosition()
throws NotSupportedException,
ResourceException
IOrderedRelation
s).
IOrderedRelationPosition of the relation. is
OrderedRelationType.LAST , if it's the last relation with
respect to the relations type and source, otherwise the type is
OrderType.AFTER and the relative is the predecessors id.
NotSupportedException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
NotSupportedException - if this relation does not
belong to a ordered relation type.
ResourceException - if there was an internal error in
the relation manager.
void setPosition(IOrderedRelationPosition position)
throws NotSupportedException,
InvalidArgumentException,
ResourceException
IOrderedRelation
s).
position - the new IOrderedRelationPosition for this
relation. if null, the relation's position remains
unchanged.
- Throws:
NotSupportedException - Exception raised in failure situation
InvalidArgumentException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
NotSupportedException - if this relation does not
belong to a ordered relation type.
InvalidArgumentException - if the given position can
not be used for this relation.
ResourceException - if there was an internal error in
the relation manager.| 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
|
|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||