CopyController.php
45 * | _in_ `oid` | The object id of the Node to move. The Node and all of its children will be moved
46 * | _in_ `targetOid` | The object id of the parent to attach the moved Node to (if it does not accept the Node type an error occurs) (optional, if empty the new Node has no parent)
57 * | _in_ `oid` | The object id of the Node to move. The Node and all of its children will be moved
58 * | _in_ `targetOid` | The object id of the parent to attach the moved Node to (if it does not accept the Node type an error occurs) (optional, if empty the new Node has no parent)
284 $name = $this->getMessage()->getText('Copying tree: continue with %0%', [$iterator->current()]);
331 $name = $this->getMessage()->getText('Copying tree: continue with %0%', [$iterator->current()]);
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
Response holds the response values that are used as output from Controller instances.
Definition: Response.php:20
Request holds the request values that are used as input to Controller instances.
Definition: Request.php:18
getWorkPackage($number)
Definition: CopyController.php:202
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
copyNode(ObjectId $oid)
Create a copy of the node with the given object id.
Definition: CopyController.php:355
const ACTION_VAR
Definition: CopyController.php:72
PersistenceException signals an exception in the persistence service.
Definition: PersistenceException.php:18
getCopyOID(ObjectId $origOID)
Get the object id of the copied node for a node id.
Definition: CopyController.php:475
registerCopy(PersistentObject $origNode, PersistentObject $copyNode)
Register a copied node in the session for later reference.
Definition: CopyController.php:442
PersistentIterator is used to iterate over a tree/list built of persistent objects using a Depth-Firs...
Definition: PersistentIterator.php:24
getLocalSessionValue($key, $default=null)
Set the value of a local session variable.
Definition: Controller.php:443
const OBJECT_MAP_VAR
Definition: CopyController.php:71
StringUtil provides support for string manipulation.
Definition: StringUtil.php:18
const AFTER_COMMIT
An AFTER_COMMIT event occurs after the transaction is committed.
Definition: TransactionEvent.php:35
TransactionEvent instances are fired at different phases of a transaction.
Definition: TransactionEvent.php:23
static reset($id, Session $session)
Reset the iterator with the given id.
Definition: PersistentIterator.php:79
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
const ITERATOR_ID_VAR
Definition: CopyController.php:75
initialize(Request $request, Response $response)
Definition: CopyController.php:119
updateCopyOIDs(array $oidMap)
Update the copied object ids in the registry.
Definition: CopyController.php:453
requireTransaction()
Start or join a transaction that will be committed at the end of execution.
Definition: Controller.php:334
Implementations of Configuration give access to the application configuration.
Definition: Configuration.php:32
setLocalSessionValue($key, $value)
Get the value of a local session variable.
Definition: Controller.php:454
copyNodes($oids)
Copy nodes provided by the persisted iterator (object ids parameter will be ignored)
Definition: CopyController.php:299
ApplicationError is used to signal errors that occur while processing a request.
Definition: ApplicationError.php:41
CopyController is used to copy or move Node instances.
Definition: CopyController.php:68
static parse($oid)
Parse a serialized object id string into an ObjectId instance.
Definition: ObjectId.php:135
__construct(Session $session, PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ActionMapper $actionMapper, Localization $localization, Message $message, Configuration $configuration, EventManager $eventManager)
Constructor.
Definition: CopyController.php:94
static get($code, $data=null)
Factory method for retrieving a predefined error instance.
Definition: ApplicationError.php:144
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
modify(PersistentObject $node)
Modify the given Node before save action (Called only for the copied root Node, not for its children)
Definition: CopyController.php:514
BatchController is used to process complex, longer running actions, that need to be divided into seve...
Definition: BatchController.php:73
addWorkPackage($name, $size, array $oids, $callback, $args=null)
Add a work package to session.
Definition: BatchController.php:210
static load($id, $persistenceFacade, $session)
Load an iterator state from the session.
Definition: PersistentIterator.php:90
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
startProcess($oids)
Copy/Move the first node (object ids parameter will be ignored)
Definition: CopyController.php:226
ActionMapper implementations are responsible for instantiating and executing Controllers based on the...
Definition: ActionMapper.php:21
addListener($eventName, $callback)
Register a listener for a given event.
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:20
getTargetNode(ObjectId $targetOID)
Get the target node from the request parameter targetoid.
Definition: CopyController.php:427
const NODES_PER_CALL
Definition: CopyController.php:81
Localization defines the interface for storing localized entity instances and retrieving them back.
Definition: Localization.php:32
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23