public final class CopyUtility extends Object
IResource and resolves possible
ID-clashes in the target folder. It uses the IDResolver to take care of
name clashes.| Constructor and Description |
|---|
CopyUtility(IResource source,
ICollection target) |
CopyUtility(IResource source,
RID target) |
| Modifier and Type | Method and Description |
|---|---|
Result |
copy(boolean ignorePropertyFailures)
copies the resource to the new target.
|
public CopyUtility(IResource source, RID target) throws WcmException
source - the resource to be copied, must not be nulltarget - the collection to copy the resource to, must not be null
If the target does not point to a valid ICollection, a ClassCastException
will be thrown.WcmException - no descriptionpublic CopyUtility(IResource source, ICollection target) throws WcmException
source - the resource to be copied, must not be nulltarget - the collection to copy the resource to, must not be nullWcmException - no descriptionpublic Result copy(boolean ignorePropertyFailures)
true,
the copy will succeed, even if not all properties could be copied as well. If the
flag's value is false, the copy will only be completed, if all
properties could be copied with the resource.ignorePropertyFailures - flag to allow copying even if not all properties could be copiedResult object which stores resulting information of copy operation.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2021 SAP SE Complete Copyright Notice