Interface IDfRelationType
- All Superinterfaces:
IDfPersistentObject
,IDfTypedObject
- All Known Subinterfaces:
IDfForeignKey
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
CHILD security means the permissions to create, modify, or drop instances of a relationship depend on the object type of the child.static final int
Create new copies of referenced children when parent document is copied.static final String
NONE security means that any user can create, modify, or drop relationships of that kind.static final String
PARENT security means the permissions to create, modify, or drop instances of a relationship depend on the object type of the parent.static final int
Reference existing children when parent document is copied.static final String
SYSTEM security means that only superusers or system administrators can directly create, modify, or drop instances of the relationship.Fields inherited from interface com.documentum.fc.client.IDfPersistentObject
CURRENCY_CHECK_ALWAYS, CURRENCY_CHECK_FIRST_ACCESS, CURRENCY_CHECK_NEVER, CURRENCY_CHECK_ONCE_PER_SCOPE
-
Method Summary
Modifier and TypeMethodDescriptionReturns the object type of a valid child object in the relationship.Returns the controlling kind attribute defined for the relation of this type.int
Returns the copy behavior defined for the relation of this type.Returns the user defined description of the relationship.Returns the object type of a valid parent object in the relationship.boolean
Indicates if you want to maintain the relationship across versions of the parent object.Returns the value of the relation_name attribute.Returns the security applied to objects of type dm_relation_type whose relation_name attribute value matches the relation_name attribute for the dm_relation_type object.void
setChildType
(String child) Sets the object type of a valid child object in the relationship.void
setControllingKind
(String val) Sets the controlling kind attribute defined for the relation of this type.void
setCopyBehavior
(int val) Sets the copy behavior defined for the relation of this type.void
setDescription
(String desc) Sets the user defined description of the relationship.void
setParentType
(String parent) Sets the object type of a valid parent object in the relationship.void
setPermanentLink
(boolean val) Indicates if you want to maintain the relationship across versions of the parent object.void
setRelationName
(String rName) Sets the value of the relation_name attribute.void
setSecurityType
(String sType) Sets the security applied to objects of type dm_relation whose relation_name attribute value matches the relation_name attribute for the dm_relation_type object.Methods inherited from interface com.documentum.fc.client.IDfPersistentObject
addChildRelative, addParentRelative, apiExec, apiGet, apiSet, destroy, fetch, fetchWithCaching, getAttrAssistance, getAttrAssistanceWithValues, getAttrAsstDependencies, getChildRelatives, getParentRelatives, getPartition, getType, getValidator, getVStamp, getWidgetType, isDeleted, isDirty, isInstanceOf, isNew, isReplica, lock, lockEx, registerEvent, removeChildRelative, removeParentRelative, revert, save, setPartition, signoff, unRegisterEvent, unRegisterEventEx, validateAllRules, validateAttrRules, validateAttrRulesWithValue, validateAttrRulesWithValues, validateObjRules, validateObjRulesWithValues
Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
Field Details
-
REFERENCE_CHILD
static final int REFERENCE_CHILDReference existing children when parent document is copied.- See Also:
-
COPY_CHILD
static final int COPY_CHILDCreate new copies of referenced children when parent document is copied.- See Also:
-
SYSTEM
SYSTEM security means that only superusers or system administrators can directly create, modify, or drop instances of the relationship.- See Also:
-
PARENT
PARENT security means the permissions to create, modify, or drop instances of a relationship depend on the object type of the parent.- See Also:
-
CHILD
CHILD security means the permissions to create, modify, or drop instances of a relationship depend on the object type of the child.- See Also:
-
NONE
NONE security means that any user can create, modify, or drop relationships of that kind.- See Also:
-
-
Method Details
-
getRelationName
Returns the value of the relation_name attribute. This indicates the name of the relationship. Names are unique. The names of system defined relationships begin with dm_.- Returns:
- the name of the relation.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getSecurityType
Returns the security applied to objects of type dm_relation_type whose relation_name attribute value matches the relation_name attribute for the dm_relation_type object.- Returns:
- the security applied to the object. Valid return values are "SYSTEM", "PARENT", "CHILD" and "NONE".
- Throws:
DfException
- if a server error occurs.- See Also:
-
getParentType
Returns the object type of a valid parent object in the relationship.- Returns:
- the object type of a valid parent object.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getChildType
Returns the object type of a valid child object in the relationship.- Returns:
- the object type of a valid child object.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getDescription
Returns the user defined description of the relationship.- Returns:
- the description of the relationship.
- Throws:
DfException
- if a server error occurs.- See Also:
-
getPermanentLink
Indicates if you want to maintain the relationship across versions of the parent object.By default, relationships are not maintained across versions. However, if you want the relationship to be maintained across versions when the parent object is versioned, set permanent_link via
setPermanentLink
totrue
.- Returns:
- true if a relationship across versions exists, or
false
if a relationship does not exist. - Throws:
DfException
- if server does not support this attribute (pre 5.3)- Since:
- 5.3.
- See Also:
-
getCopyBehavior
Returns the copy behavior defined for the relation of this type.The copy behavior defined for a relation determines how the child is handled when the parent object is copied. Copy behavior is used only when getPermanentLink () is
true
For more information about copy behavior, refer to Server Fundamentals.
- Returns:
- An integer indicating the copy behavior for the relation of this type.
Valid values and their meanings are:
Value Meaning REFERENCE_CHILD Reference the existing component document. COPY_CHILD Create a new copy of the component document.
- Throws:
DfException
- if server does not support this attribute (pre 5.3)- Since:
- 5.3.
- See Also:
-
getControllingKind
Returns the controlling kind attribute defined for the relation of this type.The controlling kind attribute indicates whether the relation type is created by external users or the application. If the relation type is created by external user, then the user can create and destroy instances of dm_relation based on the relation type. For more information about controlling kind, refer to Server Fundamentals.
- Returns:
- A String indicating the controlling kind for the relation of this type.
- Throws:
DfException
- if server does not support this attribute (pre 6.0)- Since:
- 6.0.
- See Also:
-
setRelationName
Sets the value of the relation_name attribute. This indicates the name of the relationship. Names are unique. The names of system defined relationships begin with dm_.- Parameters:
rName
- the name of the relation.- Throws:
DfException
- if a server error occurs.- See Also:
-
setSecurityType
Sets the security applied to objects of type dm_relation whose relation_name attribute value matches the relation_name attribute for the dm_relation_type object.- Parameters:
sType
- the security applied to the object. Valid values are "SYSTEM", "PARENT", "CHILD" and "NONE".- Throws:
DfException
- if a server error occurs.- See Also:
-
setParentType
Sets the object type of a valid parent object in the relationship.- Parameters:
parent
- the object type of a valid parent object.- Throws:
DfException
- if a server error occurs.- See Also:
-
setChildType
Sets the object type of a valid child object in the relationship.- Parameters:
child
- the object type of a valid child object.- Throws:
DfException
- if a server error occurs.- See Also:
-
setDescription
Sets the user defined description of the relationship.- Parameters:
desc
- the description of the relationship.- Throws:
DfException
- if a server error occurs.- See Also:
-
setPermanentLink
Indicates if you want to maintain the relationship across versions of the parent object. By default, relationships are not maintained across versions. However, if you want the relationship to be maintained across versions when the parent object is versioned, set permanent_link viasetPermanentLink
totrue
.- Parameters:
val
- value of the permanent_link flag.- Throws:
DfException
- if server does not support this attribute (pre 5.3)- Since:
- 5.3.
- See Also:
-
setCopyBehavior
Sets the copy behavior defined for the relation of this type.The copy behavior defined for a relation determines how the child is handled when the parent object is copied. Copy behavior is used only when getPermanentLink () is
true
For more information about copy behavior, refer to Server Fundamentals.
- Parameters:
val
- value indicating the copy behavior for the relation of this type. Valid values and their meanings are:Value Meaning REFERENCE_CHILD Reference the existing component document. COPY_CHILD Create a new copy of the component document.
- Throws:
DfException
- if server does not support this attribute (pre 5.3)- Since:
- 5.3.
- See Also:
-
setControllingKind
Sets the controlling kind attribute defined for the relation of this type.The controlling kind attribute indicates whether the relation type is created by external users or the application. If the relation type is created by external user, then the user can create and destroy instances of dm_relation based on the relation type. For more information about controlling kind, refer to Server Fundamentals.
- Parameters:
val
- value indicating the controlling kind for the relation of this type.- Throws:
DfException
- if server does not support this attribute (pre 6.0)- Since:
- 6.0.
- See Also:
-