public final class MoveUtility 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 |
---|
MoveUtility(IResource source,
ICollection target) |
MoveUtility(IResource source,
RID target)
instantiates already an
ICollection from the given RID . |
Modifier and Type | Method and Description |
---|---|
Result |
move(boolean ignorePropertyFailures)
moves the resource to the new target.
|
public MoveUtility(IResource source, RID target) throws WcmException
ICollection
from the given RID
.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.WcmException
- no descriptionpublic MoveUtility(IResource source, ICollection target) throws WcmException
source
- the resource to be moved, must not be null
target
- the collection to move the resource to, must not be null
WcmException
- no descriptionpublic Result move(boolean ignorePropertyFailures)
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.ignorePropertyFailures
- flag to allow moving even if properties cannot be moved completelyResult
that stores information about the result of move 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 2018 SAP AG Complete Copyright Notice