|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The type of a relation.
The IRelationType is an abstraction of the 'relation-operation'
(e.g. 'member-of') and. It implies also the types of the source- and
target-operands (IRelationOperandType ). A RelationType
is always registered to a unique namespace.
| Method Summary | |
boolean |
areAttributesMutable()
Check if setAttributes(IRelationTypeAttributes) can be called or would throw an
AccessDeniedException . |
IRelation |
createRelation(IOrderedRelationPosition position,
IRelationOperand source,
IRelationOperand target)
a shortcut for createRelation(source,
target, null). |
IRelation |
createRelation(IOrderedRelationPosition position,
IRelationOperand source,
IRelationOperand target,
IPropertyMap properties)
Create a new ordered relation from wrapped operands. |
IRelation |
createRelation(IOrderedRelationPosition position,
java.lang.Object source,
java.lang.Object target)
a shortcut for createRelation(source, target, null). |
IRelation |
createRelation(IOrderedRelationPosition position,
java.lang.Object source,
java.lang.Object target,
IPropertyMap properties)
Create a ordered relation from operand values. |
IRelation |
createRelation(IRelationOperand source,
IRelationOperand target)
a shortcut for createRelation(source, target, null). |
IRelation |
createRelation(IRelationOperand source,
IRelationOperand target,
IPropertyMap properties)
Create a new relation from wrapped operands. |
IRelation |
createRelation(java.lang.Object source,
java.lang.Object target)
a shortcut for createRelation(source, target, null). |
IRelation |
createRelation(java.lang.Object source,
java.lang.Object target,
IPropertyMap properties)
Create a relation from operand values. |
void |
delete()
Deregister this relation type and delete all of it's relations. |
IRelationTypeAttributes |
getAttributes()
Get the effective attributes of this relation type. |
IResourceContext |
getContext()
Get the context of this relation type. |
java.lang.String |
getDescription()
Get a description for this relation type. |
java.lang.String |
getDescription(java.util.Locale locale)
Get a description for this relation type for a given locale. |
java.lang.String |
getName()
Get the name of this relation type as used for registration. |
java.lang.String |
getNamespace()
Get the namespace for this relation type as used for registration. |
IRelation |
getRelation(IRelationOperand source,
IRelationOperand target)
Get the relation for a given wrapped source and target. |
IRelation |
getRelation(java.lang.Object source,
java.lang.Object target)
Get the relation for a given source and target value. |
IRelation |
getRelation(java.lang.String id)
Get a specific relation for a given type and id. |
IRelationList |
getRelations()
Get all availabe relations for this type. |
IRelationList |
getRelations(IRelationOperand source)
Deprecated. as of NW04. Please use getRelationsBySource instead Get all the relations of this type for the given source operand. |
IRelationList |
getRelations(IRelationQuery query)
Get the relations for this type, which match a given query expression. |
IRelationList |
getRelations(IRelationQuery query,
IRelationQueryOrder order)
Get the relations for this type, which match a given query expression. |
IRelationList |
getRelations(java.lang.Object source)
Deprecated. as of NW04. Please use gteRelationsBySource instead Get all the relations of this type for the given source operand value. |
IRelationList |
getRelationsBySource(IRelationOperand source)
Get all the relations of this type for the given source operand. |
IRelationList |
getRelationsBySource(java.lang.Object source)
Get all the relations of this type for the given source operand value. |
IRelationList |
getRelationsByTarget(IRelationOperand target)
Get all the relations of this type for the given target operand. |
IRelationList |
getRelationsByTarget(java.lang.Object target)
Get all the relations of this type for the given target operand value. |
IRelationOperandType |
getSourceType()
Get the source operand's type. |
IRelationOperandType |
getTargetType()
Get the target operand's type. |
void |
reorder(IOrderedRelationPositioningList ordering)
Reorder the relations for this type. |
IRelationTypeAttributes |
setAttributes(IRelationTypeAttributes attributes)
Change the effective attributes of this relation type. |
void |
startWatching(IRelationWatcher watcher)
Register a watcher to this relation type. |
void |
stopWatching(IRelationWatcher watcher)
Deregister a watcher from this relation type. |
| Methods inherited from interface com.sapportals.wcm.util.name.IName |
getNamespaceOrNull |
| Method Detail |
public java.lang.String getNamespace()
getNamespace in interface INameString with the namespace of the relation type.public java.lang.String getName()
getName in interface INameString with the name of the relation type.public java.lang.String getDescription()
String with the description of the relation type for
the context of the relation type.public java.lang.String getDescription(java.util.Locale locale)
locale - TBD: Description of the incoming method parameterString with the description of the relation type for
the given locale.public IRelationOperandType getSourceType()
IRelationOperandType of this relation type's
source operand type.public IRelationOperandType getTargetType()
IRelationOperand of this relation type's target
operand type.public IResourceContext getContext()
IResourceContext with the context for this relation
type (which was used when retrieving this relation type).public IRelationTypeAttributes getAttributes()
IRelationTypeAttributes with the attributes for this
relation type.public boolean areAttributesMutable()
setAttributes(IRelationTypeAttributes) can be called or would throw an
AccessDeniedException .
public IRelationTypeAttributes setAttributes(IRelationTypeAttributes attributes)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
attributes - the IRelationTypeAttributes to use.IRelationTypeAttributes with the effective
attributes for this relation type. Note: the returned
attributes might differ from the passed attributes if not all
attributes could be changed.InvalidArgumentException - if the given attributes were
null .AccessDeniedException - if the relation type was not
accessible from the types given context or if the relation type's
attributes are marked as not changeable.ResourceException - if there was an internal error in
the relation manager.
public void startWatching(IRelationWatcher watcher)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
watcher - a IRelationWatcher which will be able to handle
callbacks from the triggers of a relation.InvalidArgumentException - if the watcher was
null .AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public void stopWatching(IRelationWatcher watcher)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
watcher - a IRelationWatcher which has to be
deregistered.InvalidArgumentException - if the watcher was
null .AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public void delete()
throws AccessDeniedException,
ResourceException
AccessDeniedException - if the relation type could not
be deleted within the given types context.ResourceException - if there was an internal error in
the relation manager.
public IRelation createRelation(IRelationOperand source,
IRelationOperand target,
IPropertyMap properties)
throws InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
source - the IRelationOperand which is the wrapped source
operand of the relation.target - the IRelationOperand which is the wrapped target
operand of the relation.properties - a IPropertyMap with the properties for this
relation.IRelation with the created relation for the given
type, source and target.InvalidArgumentException - if the source or target is
null or the given source or target is not valid with
respect to the source-/target type.AccessDeniedException - if the given context (as passed
when retrieving the relation type) has no permissions to create the
relation.NameAlreadyExistsException - if the relation already
exists for the given type, source and target.ResourceException - if there was an internal error in
the relation manager.
public IRelation createRelation(IRelationOperand source,
IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
createRelation(source, target, null).source - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationNameAlreadyExistsException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelation createRelation(java.lang.Object source,
java.lang.Object target,
IPropertyMap properties)
throws InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
source - the Object which is the source operand value of
the relation.target - the Object which is the target operand value of
the relation.properties - a IPropertyMap with the properties for this
relation.IRelation with the created relation for the given
type, source and target.InvalidArgumentException - if the source or target is
null or the given source or target is not valid with
respect to the source-/target type.AccessDeniedException - if the given context (as passed
when retrieving the relation type) has no permissions to create the
relation.NameAlreadyExistsException - if the relation already
exists for the given type, source and target.ResourceException - if there was an internal error in
the relation manager.
public IRelation createRelation(java.lang.Object source,
java.lang.Object target)
throws InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
createRelation(source, target, null).source - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationNameAlreadyExistsException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelationList getRelations()
throws AccessDeniedException,
ResourceException
IRelationList with all the relations.AccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelations(IRelationOperand source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - a IRelationOperand which defines the source
operand to get the relations for.IRelationList with all the relations for the given
source.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the source was null
.AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelationsBySource(IRelationOperand source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - a IRelationOperand which defines the source
operand to get the relations for.IRelationList with all the relations for the given
source.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the source was null
.AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelations(java.lang.Object source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - a Object which defines the source operands value
to get the relations for.IRelationList with all the relations for the given
source value.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the source value was
null .AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelationsBySource(java.lang.Object source)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - a Object which defines the source operands value
to get the relations for.IRelationList with all the relations for the given
source value.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the source value was
null .AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelationsByTarget(IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
target - a IRelationOperand which defines the target
operand to get the relations for.IRelationList with all the relations for the given
target.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the target was null
.AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelationsByTarget(java.lang.Object target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
target - a Object which defines the target operands value
to get the relations for.IRelationList with all the relations for the given
target value.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the target value was
null .AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelations(IRelationQuery query)
throws AccessDeniedException,
RelationQueryException,
ResourceException
query - the IRelationQuery the searched relations should
match or null if all relations should be returned.IRelationList with all the relations of the given
type. the list might be empty if no relations are found for the given
type which match the given query.AccessDeniedException - Exception raised in failure situationRelationQueryException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the relation type was not
accessible from the types given context.RelationQueryException - if the relation query was not
understood.ResourceException - if there was an internal error in
the relation manager.
public IRelationList getRelations(IRelationQuery query,
IRelationQueryOrder order)
throws AccessDeniedException,
RelationQueryException,
ResourceException
query - the IRelationQuery the searched relations should
match or null if all relations should be returned.order - the IRelationQueryOrder the searched relation
list should be sorted by. if null the list is not
ordered.IRelationList with all the relations of the given
type. the list might be empty if no relations are found for the given
type which match the given query.AccessDeniedException - Exception raised in failure situationRelationQueryException - Exception raised in failure situationResourceException - Exception raised in failure situationAccessDeniedException - if the relation type was not
accessible from the types given context.RelationQueryException - if the relation query was not
understood.ResourceException - if there was an internal error in
the relation manager.
public IRelation getRelation(java.lang.String id)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
id - the id to get the relation for.IRelation for the given type and id or null
if no relation exists for this id.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if the type or the id was
null .AccessDeniedException - if the relation was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelation getRelation(IRelationOperand source,
IRelationOperand target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - the IRelationOperand which is the wrapped source
operand of the relation.target - the IRelationOperand which is the wrapped target
operand of the relation.IRelation with the relation for this type and the
given source and target or null if no such relation
exist.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if one of the source or the
target parameters was null .AccessDeniedException - if the relation was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelation getRelation(java.lang.Object source,
java.lang.Object target)
throws InvalidArgumentException,
AccessDeniedException,
ResourceException
source - the Object which is the source operand value of
the relation.target - the Object which is the target operand value of
the relation.IRelation with the relation for this type and the
given source and target or null if no such relation
exist.InvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationInvalidArgumentException - if one of the source or the
target parameters was null .AccessDeniedException - if the relation was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
public IRelation createRelation(IOrderedRelationPosition position,
IRelationOperand source,
IRelationOperand target,
IPropertyMap properties)
throws NotSupportedException,
InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
position - the IOrderedRelationPosition which defines
where to put the newly created relation to. if null is
given, a OrderedRelationPosition.LAST is used.source - the IRelationOperand which is the wrapped source
operand of the relation.target - the IRelationOperand which is the wrapped target
operand of the relation.properties - a IPropertyMap with the properties for this
relation.IRelation with the created relation for the given
type, source and target.NotSupportedException - Exception raised in failure situationInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationNameAlreadyExistsException - Exception raised in failure situationResourceException - Exception raised in failure situationNotSupportedException - if this method is not
supported, because this type is not a ordered relation type.InvalidArgumentException - if the source or target is
null or the given source or target is not valid with
respect to the source-/target type.AccessDeniedException - if the given context (as passed
when retrieving the relation type) has no permissions to create the
relation.NameAlreadyExistsException - if the relation already
exists for the given type, source and target.ResourceException - if there was an internal error in
the relation manager.
public IRelation createRelation(IOrderedRelationPosition position,
IRelationOperand source,
IRelationOperand target)
throws NotSupportedException,
InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
createRelation(source,
target, null). position - TBD: Description of the incoming method parametersource - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterNotSupportedException - Exception raised in failure situationInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationNameAlreadyExistsException - Exception raised in failure situationResourceException - Exception raised in failure situation
public IRelation createRelation(IOrderedRelationPosition position,
java.lang.Object source,
java.lang.Object target,
IPropertyMap properties)
throws NotSupportedException,
InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
position - the IOrderedRelationPosition which defines
where to put the newly created relation to. if null is
given, a OrderedRelationPosition.LAST is used.source - the Object which is the source operand value of
the relation.target - the Object which is the target operand value of
the relation.properties - a IPropertyMap with the properties for this
relation.IRelation with the created relation for the given
type, source and target.NotSupportedException - Exception raised in failure situationInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationNameAlreadyExistsException - Exception raised in failure situationResourceException - Exception raised in failure situationNotSupportedException - if this method is not
supported, because this type is not a ordered relation type.InvalidArgumentException - if the source or target is
null or the given source or target is not valid with
respect to the source-/target type.AccessDeniedException - if the given context (as passed
when retrieving the relation type) has no permissions to create the
relation.NameAlreadyExistsException - if the relation already
exists for the given type, source and target.ResourceException - if there was an internal error in
the relation manager.
public IRelation createRelation(IOrderedRelationPosition position,
java.lang.Object source,
java.lang.Object target)
throws NotSupportedException,
InvalidArgumentException,
AccessDeniedException,
NameAlreadyExistsException,
ResourceException
createRelation(source, target, null). position - TBD: Description of the incoming method parametersource - TBD: Description of the incoming method parametertarget - TBD: Description of the incoming method parameterNotSupportedException - Exception raised in failure situationInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationNameAlreadyExistsException - Exception raised in failure situationResourceException - Exception raised in failure situation
public void reorder(IOrderedRelationPositioningList ordering)
throws NotSupportedException,
InvalidArgumentException,
AccessDeniedException,
ResourceException
ordering - TBD: Description of the incoming method parameterNotSupportedException - Exception raised in failure situationInvalidArgumentException - Exception raised in failure situationAccessDeniedException - Exception raised in failure situationResourceException - Exception raised in failure situationNotSupportedException - if this method is not
supported, because this type is not a ordered relation type.InvalidArgumentException - if there is a pair of
relation/relative IDs which are not compatible with respect to their
type and source operand.AccessDeniedException - if the relation type was not
accessible from the types given context.ResourceException - if there was an internal error in
the relation manager.
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||