com.sapportals.wcm.rfadapter

Class CopyUtility

java.lang.Object
  extended by com.sapportals.wcm.rfadapter.CopyUtility

public final class CopyUtility
extends Object

encapsulates the copy-functionality of the IResource and resolves possible ID-clashes in the target folder. It uses the IDResolver to take care of name clashes.


Constructor Summary
CopyUtility(IResource source, ICollection target)
           
CopyUtility(IResource source, RID target)
           
 
Method Summary
 Result copy(boolean ignorePropertyFailures)
          copies the resource to the new target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyUtility

public CopyUtility(IResource source,
                   RID target)
            throws WcmException
Parameters:
source - the resource to be copied, must not be null
target - 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.
Throws:
WcmException

CopyUtility

public CopyUtility(IResource source,
                   ICollection target)
            throws WcmException
Parameters:
source - the resource to be copied, must not be null
target - the collection to copy the resource to, must not be null
Throws:
WcmException
Method Detail

copy

public Result copy(boolean ignorePropertyFailures)
copies the resource to the new target. If the flag's value is 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.

Parameters:
ignorePropertyFailures - flag to allow copying even if not all properties could be copied
Returns:
Result object which stores resulting information of copy operation.
Access Rights

This class can be accessed from:


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 2014 SAP AG Complete Copyright Notice