Interface DependentObject
-
- All Known Subinterfaces:
- AccessPermission, AccessPermissionDescription, ActiveMarking, AddOnInstallationRecord, ApplicationSecurityTemplate, AsyncProcessingConfiguration, AuditDefinition, CenteraSiteSettings, CFSImportAgentConfiguration, CFSSiteSettings, Choice, CmAbstractDependent, CmAbstractPermission, CmAuditingConfiguration, CmChangePreprocessorDefinition, CmContentConversionConfiguration, CmDelegatedAccessPermission, CmDirectoryConfigurationDomino, CmDirectoryConfigurationManaged, CmDirectoryConfigurationOID, CmDirectoryConfigurationRadiantOne, CmDirectoryConfigurationSCIM, CmDirectoryConfigurationVMM, CmElasticSearchIndex, CmExtendedPermission, CmIdentityRule, CmIndexDefinition, CmIndexedColumn, CmIndexJobResyncItem, CmIndexPartitionConstraint, CmIndexPartitionConstraintDate, CmIndexPartitionConstraintString, CmLocalGroupMember, CmProcessEngineConfiguration, CmReplicaSynchronizationSiteSettings, CmRoleAccessDefinition, CmRoleMember, CmRolePermission, CmRolePrincipalMember, CmRoleRealmMember, CmRoleRoleMember, CmSMTPConfiguration, CmStorageDeviceConnection, CmSweepConfiguration, CmTextIndexingPreprocessorDefinition, CmTextSearchConfiguration, CmTextSearchIndex, CmTextSearchPartitionDateProperty, CmTextSearchPartitionProperty, CmTextSearchPartitionStringProperty, CmThreadPoolConfiguration, CmTimeslot, ColumnDefinition, ContentCacheConfiguration, ContentConfiguration, ContentElement, ContentReference, ContentTransfer, DirectoryConfiguration, DirectoryConfigurationAD, DirectoryConfigurationAdam, DirectoryConfigurationCA, DirectoryConfigurationIBM, DirectoryConfigurationNovell, DirectoryConfigurationSunOne, DiscretionaryPermission, DocumentState, ExternalAlias, ExternalClassAlias, ExternalIdentity, ExternalParticipant, ExternalPropertyAlias, ExternalPropertyDescription, ImageServicesClassDescription, ImageServicesImportAgentConfiguration, ImageServicesPropertyDescription, ImageServicesSiteSettings, IndexJobClassItem, IndexJobCollectionItem, IndexJobItem, IndexJobSingleItem, LocalizedString, Marking, ObjectStoreParticipant, Permission, PermissionDescription, PropertyDefinition, PropertyDefinitionBinary, PropertyDefinitionBoolean, PropertyDefinitionDateTime, PropertyDefinitionFloat64, PropertyDefinitionId, PropertyDefinitionInteger32, PropertyDefinitionObject, PropertyDefinitionString, PropertyDescription, PropertyDescriptionBinary, PropertyDescriptionBoolean, PropertyDescriptionDateTime, PropertyDescriptionFloat64, PropertyDescriptionId, PropertyDescriptionInteger32, PropertyDescriptionObject, PropertyDescriptionString, ReplicationConfiguration, ReplicationParticipant, SecurityTemplate, ServerCacheConfiguration, SiteSettings, SubscribedEvent, SubsystemConfiguration, TraceLoggingConfiguration, VersioningSecurityTemplate
public interface DependentObjectIndicates objects that are dependent. ADependentObjectrepresents anEngineObjectthat can only exist within the scope of another object. An example of this dependency isContentElement; content elements are scoped to a particularDocumentobject and cannot exist independently. Contrast this with anIndependentObject, which is anEngineObjectthat has its own independent identity.The identity and security of a dependent object are derived from that of its parent independent object.
DependentObjects andDependentObjectLists are not reusable. That is, aDependentObjectorDependentObjectListtaken from a fetched object should not be reassigned to another object. Once they have been assigned to one parent object, they must not be assigned to a second parent object. For example, you should not fetch thePermissionobects for one object and then try to directly use those samePermissionobjects on another object. If you attempt such reuse, the results are unpredictable. In some cases, there may be no adverse effects. The operation might appear to succeed but give results other than what the caller expects, for example, errors when you try to save the object. In other cases, the attempted operation might fail with symptoms that are difficult to diagnose.Any attempt to assign an already-assigned
DependentObjectto another parent object causes a warning message to be written to the client trace log.Note: While this type of operation might succeed with the 4.0 Content Engine API, the behavior is unreliable and future releases of the Content Engine API will prohibit reuse by throwing a runtime exception.