|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sapportals.wcm.service.relation.operands.ResourceOperandType
IRelationOperandType implementation for IResource
s.
| Field Summary | |
protected static IResourceFactory |
factory
|
protected IProperty |
resourceType
|
| Constructor Summary | |
ResourceOperandType()
Create a resource operand type for any type of resource. |
|
ResourceOperandType(IProperty resourceType)
Create a resource operand type for a given resource's type. |
|
ResourceOperandType(IResource resource)
Create a resource operand type for a given resource's type. |
|
ResourceOperandType(java.lang.String type)
Create a resource operand type for a specific resource type. |
|
| Method Summary | |
boolean |
check(IRelationOperand operand)
Check, if a given operand belongs to this type. |
boolean |
equals(java.lang.Object object)
|
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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static IResourceFactory factory
protected IProperty resourceType
| Constructor Detail |
public ResourceOperandType()
public ResourceOperandType(java.lang.String type)
throws ResourceException
type - the String which defines the resource type. if
null , this type will match any resource type.ResourceException - if the type could not be build.
public ResourceOperandType(IProperty resourceType)
throws InvalidArgumentException
resourceType - TBD: Description of the incoming method parameterInvalidArgumentException - if the given type property
is not a resource type property.
public ResourceOperandType(IResource resource)
throws ResourceException
resource - the IResource which specifies the resource
type to use. if null , this type will match any resource
type.ResourceException - if the resource's resource type
could not be retrieved.| Method Detail |
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic boolean isDeleteTrackingSupported()
IRelationOperandTypeisDeleteTrackingSupported in interface IRelationOperandTypecom.sapportals.wcm.service.relation.IRelationOperandTypeboolean true , if this operand type
supports the tracking of deletes for objects of this type.public boolean isChangeTrackingSupported()
IRelationOperandTypeisChangeTrackingSupported in interface IRelationOperandTypecom.sapportals.wcm.service.relation.IRelationOperandTypeboolean true , if this operand type
supports the tracking of rename or move for objects of this type.public boolean isCopyTrackingSupported()
IRelationOperandTypeisCopyTrackingSupported in interface IRelationOperandTypecom.sapportals.wcm.service.relation.IRelationOperandTypeboolean true , if this operand type
supports the tracking of copy for objects of this type.
public boolean check(IRelationOperand operand)
throws ResourceException
IRelationOperandTypecheck in interface IRelationOperandTypecom.sapportals.wcm.service.relation.IRelationOperandTypeoperand - the IRelationOperand which should be checked
for compatibility with this type.boolean true , if the operand is
compatible with this type.ResourceException - Exception raised in failure situationResourceException - if there was an error while
retrieving the operand's type.
public IRelationOperand getOperand(java.lang.String id,
IResourceContext context)
throws InvalidArgumentException,
ResourceException
IRelationOperandTypegetOperand in interface IRelationOperandTypecom.sapportals.wcm.service.relation.IRelationOperandTypeid - the String with the unique id of the operand to get.context - the IResouceContext to use for retrieving the
operand.IRelationOperand for the given id.InvalidArgumentException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the id is null
.ResourceException - if there was an error while
retrieving the operand.
public IRelationOperand getOperand(java.lang.Object object)
throws InvalidArgumentException
IRelationOperandTypegetOperand in interface IRelationOperandTypecom.sapportals.wcm.service.relation.IRelationOperandTypeobject - TBD: Description of the incoming method parameterIRelationOperand for the given object.InvalidArgumentException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - 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 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||