public class Relationship extends TieSystemObject
You can have a single object related to many other objects. In addition, you can have different types of relationships by using sublcasses of the Relationship class. For example, Folders references are implemented using the FolderPathRelationship class which relates a Folder to the items it "contains".
The PublicObject class has a number of methods that facilitate the use of instances of relationship.
PublicObject
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME
This class name for this class.
|
static String |
LEFTOBJECT_ATTRIBUTE
The source (left) object of the Relationship.
|
static String |
NAME_ATTRIBUTE
The name of the Relationship.
|
static String |
RIGHTOBJECT_ATTRIBUTE
The source (right) object of the Relationship.
|
static String |
SORTSEQUENCE_ATTRIBUTE
A sort sequence number for the Relationship.
|
ACTIVE_ATTRIBUTE, POLICYBUNDLE_ATTRIBUTE, POLICYLISTS_ATTRIBUTE, PROPERTYBUNDLE_ATTRIBUTE
DOMAIN_UNIQUENAME_DEFAULT_DELIMITER, m_ClassId, m_Id, m_Session
Modifier | Constructor and Description |
---|---|
protected |
Relationship(LibrarySession session,
Long id,
Long classId,
S_LibraryObjectData data)
Construct a Relationship object - standard variant.
|
Modifier and Type | Method and Description |
---|---|
protected static Relationship |
constructRelationship(LibrarySession sess,
S_LibraryObjectData data)
Return Relationship from a Relationship data
|
protected static Vector |
constructRelationshipVector(LibrarySession sess,
Vector vector)
Retruns a vector of relationships.
|
PublicObject |
getLeftObject()
returns the public object of the "left" side of this relationship
|
PublicObject |
getRightObject()
returns the public object of the "right" side of this relationship
|
long |
getSortSequence()
Determine the sort sequence.
|
boolean |
hasNameAttribute()
Override to return true for any PublicObject, indicating
that the instance has a NAME attribute.
|
protected static Relationship[] |
vectorToRelationshipArray(Vector vector)
Return Relationship Vector from a Vector of Relationship.
|
addCategory, constructSystemObject, constructSystemObjectVector, free, freeCategories, getCategories, getCategories, getCategories, getCategories, getPolicyBundle, getPolicyLists, handleCreate, hasPropertyBundleAttribute, isActive, postCreate, postUpdate, preCreate, preUpdate, putPolicy, removeAllPolicies, removePolicy, removePolicy, setActive, setPolicyBundle, setPolicyLists
added, addSimpleProperty, addSimpleProperty, applyProperties, auditCreated, auditUpdated, canPurge, checkIfPropertyBundleSupported, checkRequiredAttributeSet, clearCopyContext, clearFreeContext, clearUpdateContext, compareTo, constructIdArray, constructIdArray, constructLibraryObject, constructLibraryObjectVector, createDedicatedPropertyBundle, createInstance, deriveDomainUniqueName, dispose, equals, equals, free, freeAll, get, getAttribute, getAttributeByUpperCaseName, getAttributes, getAttributesByUpperCaseNames, getAuditDomainContext, getAuditEventFolderContext, getClassId, getClassname, getClassName, getClassObject, getCommonName, getCommonNameAndClass, getCopyContext, getCreateContext, getData, getDefinition, getDefinitionForSimplePropertyUpdates, getEffectivePolicyListElements, getEventualAttributeByUpperCaseName, getFreeContext, getId, getLabel, getName, getObjectReferenceAttribute, getOperationActionSpecificationContext, getPropertyBundle, getPropertyValue, getPublicObjectAttribute, getResourceString, getResourceString, getSchemaObjectAttribute, getSession, getSessionInterface, getSharedStateFactory, getSimpleObjectAttribute, getSimpleProperties, getSimpleProperty, getSimplePropertyValue, getStringIdentifier, getSystemObjectAttribute, getTraceLogger, getUpdateContext, handleAdminModeChange, handleEvent, handleFree, handleUpdate, hashCode, invalidateState, invokeOperation, invokeOperation, invokeServerMethod, isConnected, isCoreEventPostingEnabled, isInstanceOf, isPersistent, isTraced, isValidEventType, lockRows, lookupInstanceLabel, performPostCreateExtensions, performPostFreeExtensions, performPostUpdateExtensions, performPreCreateExtensions, performPreFreeExtensions, performPreUpdateExtensions, postEvent, postEvent, postFree, preFree, prePostAuditEvent, putProperty, putProperty, removeAllProperties, removeAllSimpleProperties, removeAllSimpleProperties, removed, removeProperty, removeSimpleProperty, removeSimpleProperty, renderAsRandomAccessContent, renderAsReader, renderAsStream, setAttribute, setAttribute, setAttributes, setAttributes, setCopyContext, setFreeContext, setId, setName, setPropertyBundle, setPropertyValue, setUpdateContext, toString, trace, trustHandleCreate, trustHandleCreateAsAdmin, trustHandleFree, trustHandleFreeAsAdmin, trustHandleUpdate, trustHandleUpdateAsAdmin, update, updateAndExposeDefinition, validatePropertyValues, vectorLibraryObjectElement, vectorToLibraryObjectArray, verifyAdministrationMode, verifyConnected, verifyPersistent, verifySystemUserAccess, verifyTargetObject
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAttributeByUpperCaseName, getClassId, getId, getSessionInterface
getTraceLogger, isTraced, trace
public static final String CLASS_NAME
public static final String NAME_ATTRIBUTE
public static final String LEFTOBJECT_ATTRIBUTE
public static final String RIGHTOBJECT_ATTRIBUTE
public static final String SORTSEQUENCE_ATTRIBUTE
protected Relationship(LibrarySession session, Long id, Long classId, S_LibraryObjectData data) throws IfsException
session
- current LibSessionid
- the object IDclassId
- int array version of the object IDdata
- the object's dataIfsException
public boolean hasNameAttribute() throws IfsException
hasNameAttribute
in class LibraryObject
IfsException
- if operation fails.public PublicObject getLeftObject() throws IfsException
IfsException
- if operation fails.public PublicObject getRightObject() throws IfsException
IfsException
- if operation fails.public long getSortSequence() throws IfsException
IfsException
- If the operation fails.protected static Relationship[] vectorToRelationshipArray(Vector vector)
protected static Vector constructRelationshipVector(LibrarySession sess, Vector vector) throws IfsException
IfsException
protected static Relationship constructRelationship(LibrarySession sess, S_LibraryObjectData data) throws IfsException
IfsException
Copyright © 2023. All rights reserved.