SAP NetWeaver '04

com.sapportals.wcm.service.relation
Interface IRelationOperandType

[contained in: com.sap.netweaver.bc.rf.service.par - bc.rf.global.service.relation_api.jar]
All Known Subinterfaces:
IRelationOperandTypeExtended
All Known Implementing Classes:
StringOperandType, ResourceOperandType

public interface IRelationOperandType

The type for a IRelationOperand .
IRelationOperandType s define the type of a relation operand, enabling type checking for relations.


Method Summary
 boolean check(IRelationOperand operand)
          Check, if a given operand belongs to this type.
 IRelationOperand getOperand(java.lang.Object object)
          Create the proper operand for a given object, if it belongs to this type.
 IRelationOperand getOperand(java.lang.String id, IResourceContext context)
          Get the operand for a given id and context.
 boolean isChangeTrackingSupported()
          Check, if this operand type supports tracking of object renaming.
 boolean isCopyTrackingSupported()
          Check, if this operand type supports tracking of object copy.
 boolean isDeleteTrackingSupported()
          Check, if this operand type supports tracking of object deletion.
 

Method Detail

isDeleteTrackingSupported

public boolean isDeleteTrackingSupported()
Check, if this operand type supports tracking of object deletion.
Returns:
a boolean true , if this operand type supports the tracking of deletes for objects of this type.

isChangeTrackingSupported

public boolean isChangeTrackingSupported()
Check, if this operand type supports tracking of object renaming.
Returns:
a boolean true , if this operand type supports the tracking of rename or move for objects of this type.

isCopyTrackingSupported

public boolean isCopyTrackingSupported()
Check, if this operand type supports tracking of object copy.
Returns:
a boolean true , if this operand type supports the tracking of copy for objects of this type.

check

public boolean check(IRelationOperand operand)
              throws ResourceException
Check, if a given operand belongs to this type.
Parameters:
operand - the IRelationOperand which should be checked for compatibility with this type.
Returns:
a boolean true , if the operand is compatible with this type.
Throws:
ResourceException - Exception raised in failure situation
ResourceException - if there was an error while retrieving the operand's type.

getOperand

public IRelationOperand getOperand(java.lang.String id,
                                   IResourceContext context)
                            throws InvalidArgumentException,
                                   ResourceException
Get the operand for a given id and context.
Parameters:
id - the String with the unique id of the operand to get.
context - the IResouceContext to use for retrieving the operand.
Returns:
the IRelationOperand for the given id.
Throws:
InvalidArgumentException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
InvalidArgumentException - if the id is null .
ResourceException - if there was an error while retrieving the operand.

getOperand

public IRelationOperand getOperand(java.lang.Object object)
                            throws InvalidArgumentException,
                                   ResourceException
Create the proper operand for a given object, if it belongs to this type.
Parameters:
object - TBD: Description of the incoming method parameter
Returns:
the IRelationOperand for the given object.
Throws:
InvalidArgumentException - Exception raised in failure situation
ResourceException - Exception raised in failure situation
InvalidArgumentException - if the given object is not compatible with this type or if it is null .
ResourceException - if there was an error while retrieving the operand.

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.