class AssetProxiesController extends ActionController (View source)

Rudimentary REST service for assets

Traits

A trait to add backend translation based on the backend users settings

Properties

protected Service $_localizationService from  BackendUserTranslationTrait
protected UserService $_userService from  BackendUserTranslationTrait
protected AssetRepository $assetRepository
protected AssetSourceService $assetSourceService
protected TagRepository $tagRepository
protected bool $asyncThumbnails
protected array $viewFormatToObjectNameMap
protected array $supportedMediaTypes

A list of IANA media types which are supported by this controller

Methods

void
initializeObject()

Set the locale according to the user settings

void
initializeView(ViewInterface $view)

No description

void
indexAction(string $searchTerm = '', int $limit = 10)

Shows a list of assets

void
showAction(string $assetSourceIdentifier, string $assetProxyIdentifier)

Shows a specific asset proxy

void
importAction(string $assetSourceIdentifier, string $assetProxyIdentifier)

No description

Details

protected void initializeObject()

Set the locale according to the user settings

Return Value

void

void initializeView(ViewInterface $view)

No description

Parameters

ViewInterface $view

Return Value

void

void indexAction(string $searchTerm = '', int $limit = 10)

Shows a list of assets

Parameters

string $searchTerm

An optional search term used for filtering the list of assets

int $limit

The maximum number of results shown in total

Return Value

void

void showAction(string $assetSourceIdentifier, string $assetProxyIdentifier)

Shows a specific asset proxy

Parameters

string $assetSourceIdentifier
string $assetProxyIdentifier

Return Value

void

Exceptions

StopActionException
UnsupportedRequestTypeException

void importAction(string $assetSourceIdentifier, string $assetProxyIdentifier)

No description

Parameters

string $assetSourceIdentifier
string $assetProxyIdentifier

Return Value

void

Exceptions

AssetSourceServiceException
StopActionException
UnsupportedRequestTypeException