public class CoreRelationManager extends RelationManagerImpl
Constructor and Description |
---|
CoreRelationManager()
Constructor required for web services.
|
CoreRelationManager(FdkSession session)
Constructor required for in-process clients.
|
Modifier and Type | Method and Description |
---|---|
Item |
createRelation(long from,
long to,
NamedValue[] options,
AttributeRequest[] attributes)
Create a new relation between two documents.
|
void |
deleteRelation(long id)
Delete a relation.
|
protected FdkSessionImpl |
getConnectedSession()
Return the web service session.
|
protected boolean |
isWebServiceCall()
Returns
true if the current call was made from a web services
client. |
String[] |
listRelationActionSpecifications()
Returns the list of registered relation action specifications.
|
protected NamedValue[] |
login(FdkCredential c,
NamedValue[] options,
AttributeRequest[] userAttributes)
Internal login method used by web services login managers.
|
void |
referenceTypes(TypeReference ref)
Dummy web service method to create a reference to data types used
in the web services to insure that they are defined in the WSDL.
|
Item |
updateRelation(long id,
NamedValue[] options,
AttributeRequest[] attributes)
Update an existing relation.
|
public CoreRelationManager()
public CoreRelationManager(FdkSession session)
session
- session contextpublic String[] listRelationActionSpecifications() throws FdkException
Any element of the return value may be used as the value for the RELATION_ACTION attribute of a RELATION Item.
FdkException
- if the operation failspublic Item createRelation(long from, long to, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
from
- The from/source/left side of the relation. Must be of
type DOCUMENT.to
- To to/destination/right side of the relation. Must be
of type DOCUMENT. A value <= 0 implies a null object.options
- The options of the relation. Supported options:
Options.CATEGORY_DEFINITION
, NamedValue[]}
attributes
- Attributes to return for the return item.FdkException
- if the operation fails.public Item updateRelation(long id, NamedValue[] options, AttributeRequest[] attributes) throws FdkException
id
- The ID of an existing relation. Must be of type
RELATION.options
- The options of the relation. Supported options:
Options.CATEGORY_DEFINITION
, NamedValue[]}
Options.REMOVE_CATEGORY_ID
, Long}
attributes
- Attributes to return for the return item.FdkException
- if the operation fails.public void deleteRelation(long id) throws FdkException
id
- The ID of the relation to delete.FdkException
- if the operation fails.protected final boolean isWebServiceCall()
true
if the current call was made from a web services
client. This check can be made by any subclasses in order to determine
functionality and restrictions based on the originating call. This
feature should be used lightly and only where really necessary as
this is not an idea way of implementing business logic.public void referenceTypes(TypeReference ref)
protected final NamedValue[] login(FdkCredential c, NamedValue[] options, AttributeRequest[] userAttributes) throws FdkException
FdkException
protected final FdkSessionImpl getConnectedSession() throws FdkException
FdkException
Copyright © 2023. All rights reserved.