public class ResourceOperandType extends Object implements IRelationOperandType
IRelationOperandType
implementation for IResource
s. Modifier and Type | Field and Description |
---|---|
protected static IResourceFactory |
factory |
protected IProperty |
resourceType |
Constructor and Description |
---|
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(String type)
Create a resource operand type for a specific resource type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(IRelationOperand operand)
Check, if a given operand belongs to this type.
|
boolean |
equals(Object object) |
IRelationOperand |
getOperand(Object object)
Create the proper operand for a given object, if it belongs to this type.
|
IRelationOperand |
getOperand(String id,
IResourceContext context)
Get the operand for a given id and context.
|
int |
hashCode() |
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.
|
protected static IResourceFactory factory
protected IProperty resourceType
public ResourceOperandType()
public ResourceOperandType(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.public boolean isDeleteTrackingSupported()
IRelationOperandType
isDeleteTrackingSupported
in interface IRelationOperandType
boolean
true
, if this operand type
supports the tracking of deletes for objects of this type.public boolean isChangeTrackingSupported()
IRelationOperandType
isChangeTrackingSupported
in interface IRelationOperandType
boolean
true
, if this operand type
supports the tracking of rename or move for objects of this type.public boolean isCopyTrackingSupported()
IRelationOperandType
isCopyTrackingSupported
in interface IRelationOperandType
boolean
true
, if this operand type
supports the tracking of copy for objects of this type.public boolean check(IRelationOperand operand) throws ResourceException
IRelationOperandType
check
in interface IRelationOperandType
operand
- 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 situationpublic IRelationOperand getOperand(String id, IResourceContext context) throws InvalidArgumentException, ResourceException
IRelationOperandType
getOperand
in interface IRelationOperandType
id
- 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 situationpublic IRelationOperand getOperand(Object object) throws InvalidArgumentException
IRelationOperandType
getOperand
in interface IRelationOperandType
object
- TBD: Description of the incoming method parameterIRelationOperand
for the given object.InvalidArgumentException
- Exception raised in failure situationAccess 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 2018 SAP AG Complete Copyright Notice