diff --git a/lib/private/FullTextSearch/Model/DocumentAccess.php b/lib/private/FullTextSearch/Model/DocumentAccess.php index 9765844d12075..088bf075ae681 100644 --- a/lib/private/FullTextSearch/Model/DocumentAccess.php +++ b/lib/private/FullTextSearch/Model/DocumentAccess.php @@ -51,7 +51,7 @@ * * @see IIndexDocument::setAccess * - * @since 15.0.0 + * @since 16.0.0 * * @package OC\FullTextSearch\Model */ @@ -80,7 +80,7 @@ final class DocumentAccess implements IDocumentAccess, JsonSerializable { /** * Owner of the document can be set at the init of the object. * - * @since 15.0.0 + * @since 16.0.0 * * IDocumentAccess constructor. * @@ -94,7 +94,7 @@ public function __construct(string $ownerId = '') { /** * Set the Owner of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $ownerId * @@ -109,7 +109,7 @@ public function setOwnerId(string $ownerId): IDocumentAccess { /** * Get the Owner of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -121,7 +121,7 @@ public function getOwnerId(): string { /** * Set the viewer of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $viewerId * @@ -136,7 +136,7 @@ public function setViewerId(string $viewerId): IDocumentAccess { /** * Get the viewer of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -148,7 +148,7 @@ public function getViewerId(): string { /** * Set the list of users that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $users * @@ -163,7 +163,7 @@ public function setUsers(array $users): IDocumentAccess { /** * Add an entry to the list of users that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $user * @@ -179,7 +179,7 @@ public function addUser(string $user): IDocumentAccess { * Add multiple entries to the list of users that have read access to the * document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $users * @@ -194,7 +194,7 @@ public function addUsers($users): IDocumentAccess { /** * Get the complete list of users that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -206,7 +206,7 @@ public function getUsers(): array { /** * Set the list of groups that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $groups * @@ -221,7 +221,7 @@ public function setGroups(array $groups): IDocumentAccess { /** * Add an entry to the list of groups that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $group * @@ -237,7 +237,7 @@ public function addGroup(string $group): IDocumentAccess { * Add multiple entries to the list of groups that have read access to the * document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $groups * @@ -252,7 +252,7 @@ public function addGroups(array $groups) { /** * Get the complete list of groups that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -264,7 +264,7 @@ public function getGroups(): array { /** * Set the list of circles that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $circles * @@ -279,7 +279,7 @@ public function setCircles(array $circles): IDocumentAccess { /** * Add an entry to the list of circles that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $circle * @@ -295,7 +295,7 @@ public function addCircle(string $circle): IDocumentAccess { * Add multiple entries to the list of groups that have read access to the * document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $circles * @@ -310,7 +310,7 @@ public function addCircles(array $circles): IDocumentAccess { /** * Get the complete list of circles that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -322,7 +322,7 @@ public function getCircles(): array { /** * Set the list of links that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $links * @@ -337,7 +337,7 @@ public function setLinks(array $links): IDocumentAccess { /** * Get the list of links that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -347,7 +347,7 @@ public function getLinks(): array { /** - * @since 15.0.0 + * @since 16.0.0 * * @return array */ diff --git a/lib/public/FullTextSearch/Model/IDocumentAccess.php b/lib/public/FullTextSearch/Model/IDocumentAccess.php index 66697340a8c91..848e2200f607b 100644 --- a/lib/public/FullTextSearch/Model/IDocumentAccess.php +++ b/lib/public/FullTextSearch/Model/IDocumentAccess.php @@ -47,7 +47,7 @@ * * @see IIndexDocument::setAccess * - * @since 15.0.0 + * @since 16.0.0 * * @package OCP\FullTextSearch\Model */ @@ -57,7 +57,7 @@ interface IDocumentAccess { /** * Owner of the document can be set at the init of the object. * - * @since 15.0.0 + * @since 16.0.0 * * IDocumentAccess constructor. * @@ -69,7 +69,7 @@ public function __construct(string $ownerId = ''); /** * Set the Owner of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $ownerId * @@ -80,7 +80,7 @@ public function setOwnerId(string $ownerId): IDocumentAccess; /** * Get the Owner of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -90,7 +90,7 @@ public function getOwnerId(): string; /** * Set the viewer of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $viewerId * @@ -101,7 +101,7 @@ public function setViewerId(string $viewerId): IDocumentAccess; /** * Get the viewer of the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -111,7 +111,7 @@ public function getViewerId(): string; /** * Set the list of users that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $users * @@ -122,7 +122,7 @@ public function setUsers(array $users): IDocumentAccess; /** * Add an entry to the list of users that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $user * @@ -134,7 +134,7 @@ public function addUser(string $user): IDocumentAccess; * Add multiple entries to the list of users that have read access to the * document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $users * @@ -145,7 +145,7 @@ public function addUsers($users): IDocumentAccess; /** * Get the complete list of users that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -155,7 +155,7 @@ public function getUsers(): array; /** * Set the list of groups that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $groups * @@ -166,7 +166,7 @@ public function setGroups(array $groups): IDocumentAccess; /** * Add an entry to the list of groups that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $group * @@ -178,7 +178,7 @@ public function addGroup(string $group): IDocumentAccess; * Add multiple entries to the list of groups that have read access to the * document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $groups * @@ -189,7 +189,7 @@ public function addGroups(array $groups); /** * Get the complete list of groups that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -199,7 +199,7 @@ public function getGroups(): array; /** * Set the list of circles that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $circles * @@ -210,7 +210,7 @@ public function setCircles(array $circles): IDocumentAccess; /** * Add an entry to the list of circles that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $circle * @@ -222,7 +222,7 @@ public function addCircle(string $circle): IDocumentAccess; * Add multiple entries to the list of groups that have read access to the * document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $circles * @@ -233,7 +233,7 @@ public function addCircles(array $circles): IDocumentAccess; /** * Get the complete list of circles that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ @@ -243,7 +243,7 @@ public function getCircles(): array; /** * Set the list of links that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @param array $links * @@ -254,7 +254,7 @@ public function setLinks(array $links): IDocumentAccess; /** * Get the list of links that have read access to the document. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */ diff --git a/lib/public/FullTextSearch/Model/ISearchOption.php b/lib/public/FullTextSearch/Model/ISearchOption.php index 33802028547b5..4ac995ad75f3a 100644 --- a/lib/public/FullTextSearch/Model/ISearchOption.php +++ b/lib/public/FullTextSearch/Model/ISearchOption.php @@ -32,7 +32,7 @@ /** - * @since 15.0.0 + * @since 16.0.0 * * Interface ISearchOption * @@ -41,9 +41,19 @@ interface ISearchOption { + /** + * @since 16.0.0 + */ const CHECKBOX = 'checkbox'; + + /** + * @since 16.0.0 + */ const INPUT = 'input'; + /** + * @since 16.0.0 + */ const INPUT_SMALL = 'small'; @@ -54,7 +64,7 @@ interface ISearchOption { * * @see ISearchRequest::getOption * - * @since 15.0.0 + * @since 16.0.0 * * @param string $name * @@ -65,7 +75,7 @@ public function setName(string $name): ISearchOption; /** * Get the name/key of the option. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -75,7 +85,7 @@ public function getName(): string; /** * Set the title/display name of the option. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $title * @@ -86,7 +96,7 @@ public function setTitle(string $title): ISearchOption; /** * Get the title of the option. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -97,7 +107,7 @@ public function getTitle(): string; * Set the type of the option. * $type can be ISearchOption::CHECKBOX or ISearchOption::INPUT * - * @since 15.0.0 + * @since 16.0.0 * * @param string $type * @@ -108,7 +118,7 @@ public function setType(string $type): ISearchOption; /** * Get the type of the option. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -119,7 +129,7 @@ public function getType(): string; * In case of Type is INPUT, set the size of the input field. * Value can be ISearchOption::INPUT_SMALL or not defined. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $size * @@ -130,7 +140,7 @@ public function setSize(string $size): ISearchOption; /** * Get the size of the INPUT. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -141,7 +151,7 @@ public function getSize(): string; * In case of Type is , set the placeholder to be displayed in the input * field. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $placeholder * @@ -152,7 +162,7 @@ public function setPlaceholder(string $placeholder): ISearchOption; /** * Get the placeholder. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ diff --git a/lib/public/FullTextSearch/Model/ISearchTemplate.php b/lib/public/FullTextSearch/Model/ISearchTemplate.php index e0140b232522d..9cd6753f2a78e 100644 --- a/lib/public/FullTextSearch/Model/ISearchTemplate.php +++ b/lib/public/FullTextSearch/Model/ISearchTemplate.php @@ -55,7 +55,7 @@ * * @see IFullTextSearchProvider::getSearchTemplate * - * @since 15.0.0 + * @since 16.0.0 * * @package OCP\FullTextSearch\Model */ @@ -66,7 +66,7 @@ interface ISearchTemplate { * Set the class of the icon to be displayed in the left panel of the * FullTextSearch navigation page, in front of the related Content Provider. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $class * @@ -77,7 +77,7 @@ public function setIcon(string $class): ISearchTemplate; /** * Get the class of the icon. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -87,7 +87,7 @@ public function getIcon(): string; /** * Set the path of a CSS file that will be loaded when needed. * - * @since 15.0.0 + * @since 16.0.0 * * @param string $css * @@ -98,7 +98,7 @@ public function setCss(string $css): ISearchTemplate; /** * Get the path of the CSS file. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -111,7 +111,7 @@ public function getCss(): string; * This should only be used if your Content Provider needs to set options in * a way not generated by FullTextSearch * - * @since 15.0.0 + * @since 16.0.0 * * @param string $template * @@ -122,7 +122,7 @@ public function setTemplate(string $template): ISearchTemplate; /** * Get the path of the template file. * - * @since 15.0.0 + * @since 16.0.0 * * @return string */ @@ -135,7 +135,7 @@ public function getTemplate(): string; * * @see ISearchOption * - * @since 15.0.0 + * @since 16.0.0 * * @param ISearchOption $option * @@ -146,7 +146,7 @@ public function addPanelOption(ISearchOption $option): ISearchTemplate; /** * Get all options to be displayed in the Panel. * - * @since 15.0.0 + * @since 16.0.0 * * @return ISearchOption[] */ @@ -158,7 +158,7 @@ public function getPanelOptions(): array; * * @see ISearchOption * - * @since 15.0.0 + * @since 16.0.0 * * @param ISearchOption $option * @@ -169,7 +169,7 @@ public function addNavigationOption(ISearchOption $option): ISearchTemplate; /** * Get all options to be displayed in the FullTextSearch navigation page. * - * @since 15.0.0 + * @since 16.0.0 * * @return array */