com.sapportals.wcm.rfadapter

Class MoveUtility

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

public final class MoveUtility
extends Object

encapsulates the move-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
MoveUtility(IResource source, ICollection target)
           
MoveUtility(IResource source, RID target)
          instantiates already an ICollection from the given RID.
 
Method Summary
 Result move(boolean ignorePropertyFailures)
          moves 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

MoveUtility

public MoveUtility(IResource source,
                   RID target)
            throws WcmException
instantiates already an ICollection from the given RID.

Parameters:
source - the resource to be moved, must not be null
target - the collection to move the resource to, must not be null. If the target does not point to a valid ICollection, a ClassCastException will be thrown.
Throws:
WcmException

MoveUtility

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

move

public Result move(boolean ignorePropertyFailures)
moves the resource to the new target. If the flag's value is true, the move will succeed, even if not all properties could be moved as well. If the flag's value is false, the move will only be completed, if all properties could be moved with the resource.

Parameters:
ignorePropertyFailures - flag to allow moving even if properties cannot be moved completely
Returns:
Result that stores information about the result of move 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