AdminInterface.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  1. <?php
  2. /*
  3. * This file is part of the Sonata Project package.
  4. *
  5. * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sonata\AdminBundle\Admin;
  11. use Knp\Menu\FactoryInterface as MenuFactoryInterface;
  12. use Knp\Menu\ItemInterface;
  13. use Sonata\AdminBundle\Builder\DatagridBuilderInterface;
  14. use Sonata\AdminBundle\Builder\FormContractorInterface;
  15. use Sonata\AdminBundle\Builder\ListBuilderInterface;
  16. use Sonata\AdminBundle\Builder\RouteBuilderInterface;
  17. use Sonata\AdminBundle\Datagrid\ProxyQueryInterface;
  18. use Sonata\AdminBundle\Route\RouteCollection;
  19. use Sonata\AdminBundle\Route\RouteGeneratorInterface;
  20. use Sonata\AdminBundle\Security\Handler\SecurityHandlerInterface;
  21. use Sonata\AdminBundle\Translator\LabelTranslatorStrategyInterface;
  22. use Sonata\CoreBundle\Model\Metadata;
  23. use Sonata\CoreBundle\Validator\ErrorElement;
  24. use Symfony\Component\Form\Form;
  25. use Symfony\Component\Form\FormBuilderInterface;
  26. use Symfony\Component\HttpFoundation\Request;
  27. use Symfony\Component\Translation\TranslatorInterface;
  28. use Symfony\Component\Validator\Validator\ValidatorInterface;
  29. use Symfony\Component\Validator\ValidatorInterface as LegacyValidatorInterface;
  30. /**
  31. * @author Thomas Rabaix <thomas.rabaix@sonata-project.org>
  32. */
  33. interface AdminInterface extends FieldDescriptionRegistryInterface
  34. {
  35. /**
  36. * @param FormContractorInterface $formContractor
  37. */
  38. public function setFormContractor(FormContractorInterface $formContractor);
  39. /**
  40. * Set ListBuilder.
  41. *
  42. * @param ListBuilderInterface $listBuilder
  43. */
  44. public function setListBuilder(ListBuilderInterface $listBuilder);
  45. /**
  46. * Get ListBuilder.
  47. *
  48. * @return ListBuilderInterface
  49. */
  50. public function getListBuilder();
  51. /**
  52. * Set DatagridBuilder.
  53. *
  54. * @param DatagridBuilderInterface $datagridBuilder
  55. */
  56. public function setDatagridBuilder(DatagridBuilderInterface $datagridBuilder);
  57. /**
  58. * Get DatagridBuilder.
  59. *
  60. * @return DatagridBuilderInterface
  61. */
  62. public function getDatagridBuilder();
  63. /**
  64. * Set translator.
  65. *
  66. * @param TranslatorInterface $translator
  67. */
  68. public function setTranslator(TranslatorInterface $translator);
  69. /**
  70. * Get translator.
  71. *
  72. * @return TranslatorInterface
  73. */
  74. public function getTranslator();
  75. /**
  76. * @param Request $request
  77. */
  78. public function setRequest(Request $request);
  79. /**
  80. * @param Pool $pool
  81. */
  82. public function setConfigurationPool(Pool $pool);
  83. /**
  84. * @param RouteGeneratorInterface $routeGenerator
  85. */
  86. public function setRouteGenerator(RouteGeneratorInterface $routeGenerator);
  87. /**
  88. * Returns subjectClass/class/subclass name managed
  89. * - subclass name if subclass parameter is defined
  90. * - subject class name if subject is defined
  91. * - class name if not.
  92. *
  93. * @return string
  94. */
  95. public function getClass();
  96. /**
  97. * @param \Sonata\AdminBundle\Admin\FieldDescriptionInterface $fieldDescription
  98. */
  99. public function attachAdminClass(FieldDescriptionInterface $fieldDescription);
  100. /**
  101. * @return \Sonata\AdminBundle\Datagrid\DatagridInterface
  102. */
  103. public function getDatagrid();
  104. /**
  105. * Set base controller name.
  106. *
  107. * @param string $baseControllerName
  108. */
  109. public function setBaseControllerName($baseControllerName);
  110. /**
  111. * Get base controller name.
  112. *
  113. * @return string
  114. */
  115. public function getBaseControllerName();
  116. /**
  117. * Generates the object url with the given $name.
  118. *
  119. * @param string $name
  120. * @param mixed $object
  121. * @param array $parameters
  122. * @param bool $absolute
  123. *
  124. * @return string return a complete url
  125. */
  126. public function generateObjectUrl($name, $object, array $parameters = array(), $absolute = false);
  127. /**
  128. * Generates an url for the given parameters.
  129. *
  130. * @param string $name
  131. * @param array $parameters
  132. * @param bool $absolute
  133. *
  134. * @return string return a complete url
  135. */
  136. public function generateUrl($name, array $parameters = array(), $absolute = false);
  137. /**
  138. * Generates an url for the given parameters.
  139. *
  140. * @param string $name
  141. * @param array $parameters
  142. * @param bool $absolute
  143. *
  144. * @return array return url parts: 'route', 'routeParameters', 'routeAbsolute'
  145. */
  146. public function generateMenuUrl($name, array $parameters = array(), $absolute = false);
  147. /**
  148. * @return \Sonata\AdminBundle\Model\ModelManagerInterface
  149. */
  150. public function getModelManager();
  151. /**
  152. * @return string the manager type of the admin
  153. */
  154. public function getManagerType();
  155. /**
  156. * @param string $context NEXT_MAJOR: remove this argument
  157. *
  158. * @return ProxyQueryInterface
  159. */
  160. public function createQuery($context = 'list');
  161. /**
  162. * @return FormBuilderInterface the form builder
  163. */
  164. public function getFormBuilder();
  165. /**
  166. * Returns a form depend on the given $object.
  167. *
  168. * @return Form
  169. */
  170. public function getForm();
  171. /**
  172. * @return Request
  173. *
  174. * @throws \RuntimeException if no request is set
  175. */
  176. public function getRequest();
  177. /**
  178. * @return bool true if a request object is linked to this Admin, false
  179. * otherwise
  180. */
  181. public function hasRequest();
  182. /**
  183. * @return string
  184. */
  185. public function getCode();
  186. /**
  187. * @return string
  188. */
  189. public function getBaseCodeRoute();
  190. /**
  191. * Return the roles and permissions per role
  192. * - different permissions per role for the acl handler
  193. * - one permission that has the same name as the role for the role handler
  194. * This should be used by experimented users.
  195. *
  196. * @return array [role] => array([permission], [permission])
  197. */
  198. public function getSecurityInformation();
  199. /**
  200. * @param FieldDescriptionInterface $parentFieldDescription
  201. */
  202. public function setParentFieldDescription(FieldDescriptionInterface $parentFieldDescription);
  203. /**
  204. * Get parent field description.
  205. *
  206. * @return FieldDescriptionInterface The parent field description
  207. */
  208. public function getParentFieldDescription();
  209. /**
  210. * Returns true if the Admin is linked to a parent FieldDescription.
  211. *
  212. * @return bool
  213. */
  214. public function hasParentFieldDescription();
  215. /**
  216. * translate a message id.
  217. *
  218. * NEXT_MAJOR: remove this method
  219. *
  220. * @param string $id
  221. * @param array $parameters
  222. * @param null $domain
  223. * @param null $locale
  224. *
  225. * @return string the translated string
  226. *
  227. * @deprecated since 3.9, to be removed in 4.0
  228. */
  229. public function trans($id, array $parameters = array(), $domain = null, $locale = null);
  230. /**
  231. * Returns the list of available urls.
  232. *
  233. * @return RouteCollection the list of available urls
  234. */
  235. public function getRoutes();
  236. /**
  237. * Return the parameter name used to represent the id in the url.
  238. *
  239. * @return string
  240. */
  241. public function getRouterIdParameter();
  242. /**
  243. * Returns the parameter representing request id, ie: id or childId.
  244. *
  245. * @return string
  246. */
  247. public function getIdParameter();
  248. /**
  249. * Returns true if the route $name is available.
  250. *
  251. * @param string $name
  252. *
  253. * @return bool
  254. */
  255. public function hasRoute($name);
  256. /**
  257. * Check the current request is given route or not.
  258. *
  259. * TODO: uncomment this method before releasing 4.0
  260. *
  261. * ```
  262. * $this->isCurrentRoute('create'); // is create page?
  263. * $this->isCurrentRoute('edit', 'some.admin.code'); // is some.admin.code admin's edit page?
  264. * ```
  265. *
  266. * @param string $name
  267. * @param string $adminCode
  268. *
  269. * @return bool
  270. */
  271. // public function isCurrentRoute($name, $adminCode = null);
  272. /**
  273. * @param SecurityHandlerInterface $securityHandler
  274. */
  275. public function setSecurityHandler(SecurityHandlerInterface $securityHandler);
  276. /**
  277. * @return SecurityHandlerInterface|null
  278. */
  279. public function getSecurityHandler();
  280. /**
  281. * @param string $name
  282. * @param object|null $object
  283. *
  284. * @return bool
  285. */
  286. public function isGranted($name, $object = null);
  287. /**
  288. * @param mixed $entity
  289. *
  290. * @return string a string representation of the id that is save to use in an url
  291. */
  292. public function getUrlsafeIdentifier($entity);
  293. /**
  294. * @param mixed $entity
  295. *
  296. * @return string a string representation of the identifiers for this instance
  297. */
  298. public function getNormalizedIdentifier($entity);
  299. /**
  300. * Shorthand method for templating.
  301. *
  302. * @param object $entity
  303. *
  304. * @return mixed
  305. */
  306. public function id($entity);
  307. /**
  308. * @param ValidatorInterface|LegacyValidatorInterface $validator
  309. */
  310. public function setValidator($validator);
  311. /**
  312. * @return ValidatorInterface|LegacyValidatorInterface
  313. */
  314. public function getValidator();
  315. /**
  316. * @return array
  317. */
  318. public function getShow();
  319. /**
  320. * @param array $formTheme
  321. */
  322. public function setFormTheme(array $formTheme);
  323. /**
  324. * @return array
  325. */
  326. public function getFormTheme();
  327. /**
  328. * @param array $filterTheme
  329. */
  330. public function setFilterTheme(array $filterTheme);
  331. /**
  332. * @return array
  333. */
  334. public function getFilterTheme();
  335. /**
  336. * @param AdminExtensionInterface $extension
  337. */
  338. public function addExtension(AdminExtensionInterface $extension);
  339. /**
  340. * Returns an array of extension related to the current Admin.
  341. *
  342. * @return AdminExtensionInterface[]
  343. */
  344. public function getExtensions();
  345. /**
  346. * @param \Knp\Menu\FactoryInterface $menuFactory
  347. */
  348. public function setMenuFactory(MenuFactoryInterface $menuFactory);
  349. /**
  350. * @return \Knp\Menu\FactoryInterface
  351. */
  352. public function getMenuFactory();
  353. /**
  354. * @param RouteBuilderInterface $routeBuilder
  355. */
  356. public function setRouteBuilder(RouteBuilderInterface $routeBuilder);
  357. /**
  358. * @return RouteBuilderInterface
  359. */
  360. public function getRouteBuilder();
  361. /**
  362. * @param mixed $object
  363. *
  364. * @return string
  365. */
  366. public function toString($object);
  367. /**
  368. * @param LabelTranslatorStrategyInterface $labelTranslatorStrategy
  369. */
  370. public function setLabelTranslatorStrategy(LabelTranslatorStrategyInterface $labelTranslatorStrategy);
  371. /**
  372. * @return LabelTranslatorStrategyInterface
  373. */
  374. public function getLabelTranslatorStrategy();
  375. /**
  376. * Returning true will enable preview mode for
  377. * the target entity and show a preview button
  378. * when editing/creating an entity.
  379. *
  380. * @return bool
  381. */
  382. public function supportsPreviewMode();
  383. /**
  384. * add an Admin child to the current one.
  385. *
  386. * @param AdminInterface $child
  387. */
  388. public function addChild(AdminInterface $child);
  389. /**
  390. * Returns true or false if an Admin child exists for the given $code.
  391. *
  392. * @param string $code Admin code
  393. *
  394. * @return bool True if child exist, false otherwise
  395. */
  396. public function hasChild($code);
  397. /**
  398. * Returns an collection of admin children.
  399. *
  400. * @return array list of Admin children
  401. */
  402. public function getChildren();
  403. /**
  404. * Returns an admin child with the given $code.
  405. *
  406. * @param string $code
  407. *
  408. * @return AdminInterface|null
  409. */
  410. public function getChild($code);
  411. /**
  412. * @return mixed a new object instance
  413. */
  414. public function getNewInstance();
  415. /**
  416. * @param string $uniqId
  417. */
  418. public function setUniqid($uniqId);
  419. /**
  420. * Returns the uniqid.
  421. *
  422. * @return int
  423. */
  424. public function getUniqid();
  425. /**
  426. * @param mixed $id
  427. *
  428. * @return mixed
  429. */
  430. public function getObject($id);
  431. /**
  432. * @param object $subject
  433. */
  434. public function setSubject($subject);
  435. /**
  436. * @return mixed
  437. */
  438. public function getSubject();
  439. /**
  440. * Returns a list FieldDescription.
  441. *
  442. * @param string $name
  443. *
  444. * @return FieldDescriptionInterface
  445. */
  446. public function getListFieldDescription($name);
  447. /**
  448. * Returns true if the list FieldDescription exists.
  449. *
  450. * @param string $name
  451. *
  452. * @return bool
  453. */
  454. public function hasListFieldDescription($name);
  455. /**
  456. * Returns the collection of list FieldDescriptions.
  457. *
  458. * @return array
  459. */
  460. public function getListFieldDescriptions();
  461. /**
  462. * Returns the array of allowed export formats.
  463. *
  464. * @return array
  465. */
  466. public function getExportFormats();
  467. /**
  468. * Returns SourceIterator.
  469. *
  470. * @return \Exporter\Source\SourceIteratorInterface
  471. */
  472. public function getDataSourceIterator();
  473. public function configure();
  474. /**
  475. * @param mixed $object
  476. *
  477. * @return mixed
  478. */
  479. public function update($object);
  480. /**
  481. * @param mixed $object
  482. *
  483. * @return mixed
  484. */
  485. public function create($object);
  486. /**
  487. * @param mixed $object
  488. */
  489. public function delete($object);
  490. //TODO: uncomment this method for 4.0
  491. // /**
  492. // * @param mixed $object
  493. // */
  494. // public function preValidate($object);
  495. /**
  496. * @param mixed $object
  497. */
  498. public function preUpdate($object);
  499. /**
  500. * @param mixed $object
  501. */
  502. public function postUpdate($object);
  503. /**
  504. * @param mixed $object
  505. */
  506. public function prePersist($object);
  507. /**
  508. * @param mixed $object
  509. */
  510. public function postPersist($object);
  511. /**
  512. * @param mixed $object
  513. */
  514. public function preRemove($object);
  515. /**
  516. * @param mixed $object
  517. */
  518. public function postRemove($object);
  519. /**
  520. * Call before the batch action, allow you to alter the query and the idx.
  521. *
  522. * @param string $actionName
  523. * @param ProxyQueryInterface $query
  524. * @param array $idx
  525. * @param bool $allElements
  526. */
  527. public function preBatchAction($actionName, ProxyQueryInterface $query, array &$idx, $allElements);
  528. /**
  529. * Return array of filter parameters.
  530. *
  531. * @return array
  532. */
  533. public function getFilterParameters();
  534. /**
  535. * Return true if the Admin is related to a subject.
  536. *
  537. * @return bool
  538. */
  539. public function hasSubject();
  540. /**
  541. * NEXT_MAJOR: remove this method.
  542. *
  543. * @param ErrorElement $errorElement
  544. * @param mixed $object
  545. *
  546. * @deprecated this feature cannot be stable, use a custom validator,
  547. * the feature will be removed with Symfony 2.2
  548. */
  549. public function validate(ErrorElement $errorElement, $object);
  550. /**
  551. * @param string $context
  552. *
  553. * @return bool
  554. */
  555. public function showIn($context);
  556. /**
  557. * Add object security, fe. make the current user owner of the object.
  558. *
  559. * @param mixed $object
  560. */
  561. public function createObjectSecurity($object);
  562. /**
  563. * @return AdminInterface
  564. */
  565. public function getParent();
  566. /**
  567. * @param AdminInterface $admin
  568. */
  569. public function setParent(AdminInterface $admin);
  570. /**
  571. * Returns true if the Admin class has an Parent Admin defined.
  572. *
  573. * @return bool
  574. */
  575. public function isChild();
  576. /**
  577. * Returns template.
  578. *
  579. * @param string $name
  580. *
  581. * @return null|string
  582. */
  583. public function getTemplate($name);
  584. /**
  585. * Set the translation domain.
  586. *
  587. * @param string $translationDomain the translation domain
  588. */
  589. public function setTranslationDomain($translationDomain);
  590. /**
  591. * Returns the translation domain.
  592. *
  593. * @return string the translation domain
  594. */
  595. public function getTranslationDomain();
  596. /**
  597. * Return the form groups.
  598. *
  599. * @return array
  600. */
  601. public function getFormGroups();
  602. /**
  603. * Set the form groups.
  604. *
  605. * @param array $formGroups
  606. */
  607. public function setFormGroups(array $formGroups);
  608. public function getFormTabs();
  609. public function setFormTabs(array $formTabs);
  610. public function getShowTabs();
  611. public function setShowTabs(array $showTabs);
  612. /**
  613. * Remove a form group field.
  614. *
  615. * @param string $key
  616. */
  617. public function removeFieldFromFormGroup($key);
  618. /**
  619. * Returns the show groups.
  620. *
  621. * @return array
  622. */
  623. public function getShowGroups();
  624. /**
  625. * Set the show groups.
  626. *
  627. * @param array $showGroups
  628. */
  629. public function setShowGroups(array $showGroups);
  630. /**
  631. * Reorder items in showGroup.
  632. *
  633. * @param string $group
  634. * @param array $keys
  635. */
  636. public function reorderShowGroup($group, array $keys);
  637. /**
  638. * add a FieldDescription.
  639. *
  640. * @param string $name
  641. * @param FieldDescriptionInterface $fieldDescription
  642. */
  643. public function addFormFieldDescription($name, FieldDescriptionInterface $fieldDescription);
  644. /**
  645. * Remove a FieldDescription.
  646. *
  647. * @param string $name
  648. */
  649. public function removeFormFieldDescription($name);
  650. /**
  651. * Returns true if this admin uses ACL.
  652. *
  653. * @return bool
  654. */
  655. public function isAclEnabled();
  656. /**
  657. * Sets the list of supported sub classes.
  658. *
  659. * @param array $subClasses the list of sub classes
  660. */
  661. public function setSubClasses(array $subClasses);
  662. /**
  663. * Returns true if the admin has the sub classes.
  664. *
  665. * @param string $name The name of the sub class
  666. *
  667. * @return bool
  668. */
  669. public function hasSubClass($name);
  670. /**
  671. * Returns true if a subclass is currently active.
  672. *
  673. * @return bool
  674. */
  675. public function hasActiveSubClass();
  676. /**
  677. * Returns the currently active sub class.
  678. *
  679. * @return string the active sub class
  680. */
  681. public function getActiveSubClass();
  682. /**
  683. * Returns the currently active sub class code.
  684. *
  685. * @return string the code for active sub class
  686. */
  687. public function getActiveSubclassCode();
  688. /**
  689. * Returns the list of batchs actions.
  690. *
  691. * @return array the list of batchs actions
  692. */
  693. public function getBatchActions();
  694. /**
  695. * Returns Admin`s label.
  696. *
  697. * @return string
  698. */
  699. public function getLabel();
  700. /**
  701. * Returns an array of persistent parameters.
  702. *
  703. * @return array
  704. */
  705. public function getPersistentParameters();
  706. /**
  707. * NEXT_MAJOR: remove this signature
  708. * Get breadcrumbs for $action.
  709. *
  710. * @param string $action
  711. *
  712. * @return mixed array|Traversable
  713. */
  714. public function getBreadcrumbs($action);
  715. /**
  716. * Set the current child status.
  717. *
  718. * @param bool $currentChild
  719. */
  720. public function setCurrentChild($currentChild);
  721. /**
  722. * Returns the current child status.
  723. *
  724. * @return bool
  725. */
  726. public function getCurrentChild();
  727. /**
  728. * Get translation label using the current TranslationStrategy.
  729. *
  730. * @param string $label
  731. * @param string $context
  732. * @param string $type
  733. *
  734. * @return string
  735. */
  736. public function getTranslationLabel($label, $context = '', $type = '');
  737. /**
  738. * NEXT_MAJOR: remove this method.
  739. *
  740. * @param string $action
  741. * @param AdminInterface $childAdmin
  742. *
  743. * @return ItemInterface|bool
  744. *
  745. * @deprecated Use buildTabMenu instead
  746. */
  747. public function buildSideMenu($action, AdminInterface $childAdmin = null);
  748. /**
  749. * Build the tab menu related to the current action.
  750. *
  751. * @param string $action
  752. * @param AdminInterface $childAdmin
  753. *
  754. * @return ItemInterface|bool
  755. */
  756. public function buildTabMenu($action, AdminInterface $childAdmin = null);
  757. /**
  758. * @param $object
  759. *
  760. * @return Metadata
  761. */
  762. public function getObjectMetadata($object);
  763. /**
  764. * @return array
  765. */
  766. public function getListModes();
  767. /**
  768. * @param string $mode
  769. */
  770. public function setListMode($mode);
  771. /**
  772. * return the list mode.
  773. *
  774. * @return string
  775. */
  776. public function getListMode();
  777. /**
  778. * Return the controller access mapping.
  779. *
  780. * @return array
  781. */
  782. public function getAccessMapping();
  783. /**
  784. * Hook to handle access authorization.
  785. *
  786. * @param string $action
  787. * @param object $object
  788. */
  789. public function checkAccess($action, $object = null);
  790. /*
  791. * Configure buttons for an action
  792. *
  793. * @param string $action
  794. * @param object $object
  795. *
  796. */
  797. // public function configureActionButtons($action, $object = null);
  798. // TODO: uncomment this method for next major release
  799. // /**
  800. // * Hook to handle access authorization, without throw Exception
  801. // *
  802. // * @param string $action
  803. // * @param object $object
  804. // *
  805. // * @return bool
  806. // */
  807. // public function hasAccess($action, $object = null);
  808. //TODO: uncomment this method for 4.0
  809. /*
  810. * Returns the result link for an object.
  811. *
  812. * @param mixed $object
  813. *
  814. * @return string|null
  815. */
  816. //public function getSearchResultLink($object)
  817. // TODO: uncomment this method in 4.0
  818. // /**
  819. // * Setting to true will enable mosaic button for the admin screen.
  820. // * Setting to false will hide mosaic button for the admin screen.
  821. // *
  822. // * @param bool $isShown
  823. // */
  824. // public function showMosaicButton($isShown);
  825. /*
  826. * Checks if a filter type is set to a default value
  827. *
  828. * @param string $name
  829. *
  830. * @return bool
  831. */
  832. // NEXT_MAJOR: uncomment this method in 4.0
  833. // public function isDefaultFilter($name);
  834. }