eZPublishCommunityProject  2013.5
eZ\Publish\Core\REST\Server\Controller\Location Class Reference

Location controller. More...

+ Inheritance diagram for eZ\Publish\Core\REST\Server\Controller\Location:
+ Collaboration diagram for eZ\Publish\Core\REST\Server\Controller\Location:

Public Member Functions

 __construct (LocationService $locationService, ContentService $contentService, TrashService $trashService)
 Construct controller. More...
 
 copySubtree ()
 Copies a subtree to a new destination. More...
 
 createLocation ()
 Creates a new location for the given content object. More...
 
 deleteSubtree ()
 Deletes a location. More...
 
 loadLocation ()
 Loads a location. More...
 
 loadLocationByRemoteId ()
 Loads a location by remote ID. More...
 
 loadLocationChildren ()
 Loads child locations of a location. More...
 
 loadLocationsForContent ()
 Loads all locations for content object. More...
 
 moveSubtree ()
 Moves a subtree to a new location. More...
 
 redirectLocation ()
 Loads the location for a given ID (x)or remote ID. More...
 
 swapLocation ()
 Swaps a location with another one. More...
 
 updateLocation ()
 Updates a location. More...
 
- Public Member Functions inherited from eZ\Publish\Core\REST\Server\Controller
 setContainer (Container $container)
 
 setInputDispatcher (InputDispatcher $inputDispatcher)
 
 setRequest (HttpRequest $request)
 
 setUrlHandler (UrlHandler $urlHandler)
 

Protected Attributes

 $contentService
 
 $locationService
 
 $trashService
 
- Protected Attributes inherited from eZ\Publish\Core\REST\Server\Controller
 $container
 
 $inputDispatcher
 
 $request
 
 $urlHandler
 

Private Member Functions

 extractLocationIdFromPath ($path)
 Extracts and returns an item id from a path, e.g. More...
 

Detailed Description

Location controller.

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Server\Controller\Location::__construct ( LocationService  $locationService,
ContentService  $contentService,
TrashService  $trashService 
)

Construct controller.

Parameters
\eZ\Publish\API\Repository\LocationService$locationService
\eZ\Publish\API\Repository\ContentService$contentService
\eZ\Publish\API\Repository\TrashService$trashService

Member Function Documentation

eZ\Publish\Core\REST\Server\Controller\Location::copySubtree ( )

Copies a subtree to a new destination.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::createLocation ( )

Creates a new location for the given content object.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::deleteSubtree ( )

Deletes a location.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::extractLocationIdFromPath (   $path)
private
eZ\Publish\Core\REST\Server\Controller\Location::loadLocation ( )

Loads a location.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::loadLocationByRemoteId ( )

Loads a location by remote ID.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::loadLocationChildren ( )

Loads child locations of a location.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::loadLocationsForContent ( )

Loads all locations for content object.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::moveSubtree ( )

Moves a subtree to a new location.

Exceptions
\eZ\Publish\Core\REST\Server\Exceptions\BadRequestExceptionif the Destination header cannot be parsed as location or trash
Returns
eZ\Publish\Core\REST\Server\Controller\Location::redirectLocation ( )

Loads the location for a given ID (x)or remote ID.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::swapLocation ( )

Swaps a location with another one.

Returns
eZ\Publish\Core\REST\Server\Controller\Location::updateLocation ( )

Updates a location.

Returns

Member Data Documentation

eZ\Publish\Core\REST\Server\Controller\Location::$contentService
protected
eZ\Publish\Core\REST\Server\Controller\Location::$locationService
protected
eZ\Publish\Core\REST\Server\Controller\Location::$trashService
protected

The documentation for this class was generated from the following file: