forked from ezsystems/ezpublish-kernel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
EZP-29850: As a Developer I want API to assign a Section to a subtree (…
- Loading branch information
Showing
14 changed files
with
385 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace eZ\Publish\Core\Limitation; | ||
|
||
use eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface; | ||
use eZ\Publish\API\Repository\Values\User\Limitation as APILimitationValue; | ||
use eZ\Publish\API\Repository\Values\User\UserReference as APIUserReference; | ||
use eZ\Publish\SPI\Limitation\Type as LimitationTypeInterface; | ||
|
||
/** | ||
* Limitation type which doesn't take $object into consideration while evaluation. | ||
* | ||
* @see \eZ\Publish\Core\Repository\Permission\PermissionCriterionResolver::getPermissionsCriterion | ||
*/ | ||
interface TargetOnlyLimitationType extends LimitationTypeInterface | ||
{ | ||
/** | ||
* Returns criterion based on given $target for use in find() query. | ||
* | ||
* @param \eZ\Publish\API\Repository\Values\User\Limitation $value | ||
* @param \eZ\Publish\API\Repository\Values\User\UserReference $currentUser | ||
* @param array|null $targets | ||
* | ||
* @return \eZ\Publish\API\Repository\Values\Content\Query\CriterionInterface | ||
* | ||
* @throws \eZ\Publish\API\Repository\Exceptions\InvalidArgumentException | ||
*/ | ||
public function getCriterionByTarget(APILimitationValue $value, APIUserReference $currentUser, ?array $targets): CriterionInterface; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.