Class Reference
IRIS for UNIX 2024.1.2
InterSystems: The power behind what matters   
Documentation  Search
  [USER] >  [%IPM] >  [ResourceProcessor] >  [Copy]
Private  Storage   

class %IPM.ResourceProcessor.Copy extends %IPM.ResourceProcessor.AbstractCompilable

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 4 5


Summary

Properties
CompileAfter ExportFlags Flags Overwrite Params
Source

Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
ApplyDefaults GetAttributeMetadata GetDescription GetSourceControlInfo
OnAfterPhase OnBeforeArtifact OnBeforePhase OnExportItem
OnGetStudioProject OnGetUniqueName OnItemRelativePath OnPhase
OnResolveChildren SatisfiesCondition SetParams TargetSet


Parameters

• parameter ATTRIBUTES = "Source,Overwrite,CompileAfter,Flags";
Comma-separated list of resource attribute names that this processor uses
• parameter DESCRIPTION = "Resource processor to copy the specified resource from the (Source) database to the target namespace (respecting mappings configured for that namespace) during the Reload phase.";
Description of resource processor class (shown in UI)

Properties

• property Overwrite as %Boolean [ InitialExpression = 1 ];
If set to false (default is true), resources that already exist in the current/target namespace will not be overwritten.
• property Source as %String [ Required ];
Name of the namespace we are copying the resources from

Methods

• method OnAfterPhase(pPhase As %String, ByRef pParams) as %Status
• method OnGetUniqueName(Output pUniqueName)
Returns a unique name for this resource. Default implementation, leaving pUniqueName undefined, reverts to default behavior. An empty string indicates guaranteed uniqueness (useful for folders relative to module root)
• method OnPhase(pPhase As %String, ByRef pParams, Output pResourceHandled As %Boolean = 0) as %Status
Called as phase pPhase is executed for the resource. If pResourceHandled is set to true, then the default behavior for that resource will be bypassed in the current phase. Currently, this is only used in the Verify phase, because of different handling of intermediate error statuses. TODO: Implement for standard database resources (.INC, .CLS, etc.)
• method OnResolveChildren(ByRef pResourceArray, pCheckModuleOwnership As %Boolean) as %Status
• method TargetSet(%val) as %Status
Target


Copyright (c) 2025 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.