Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing read only properties to role structs #2

Merged
merged 5 commits into from
Feb 14, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions eZ/Publish/API/Repository/Values/User/PolicyCreateStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ abstract class PolicyCreateStruct extends ValueObject
*/
public $function;

/**
* Returns list of limitations added to policy
*
* @return \eZ\Publish\API\Repository\Values\User\Limitation[]
*/
abstract public function getLimitations();

/**
*
* adds a limitation with the given identifier and list of values
Expand Down
7 changes: 7 additions & 0 deletions eZ/Publish/API/Repository/Values/User/PolicyUpdateStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
*/
abstract class PolicyUpdateStruct extends ValueObject
{
/**
* Returns list of limitations added to policy
*
* @return \eZ\Publish\API\Repository\Values\User\Limitation[]
*/
abstract public function getLimitations();

/**
*
* adds a limitation to the policy - if a Limitation exists with the same identifer
Expand Down
7 changes: 7 additions & 0 deletions eZ/Publish/API/Repository/Values/User/RoleCreateStruct.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ abstract class RoleCreateStruct extends ValueObject
*/
public $description;

/**
* Returns policies associated with the role
*
* @return \eZ\Publish\API\Repository\Values\User\PolicyCreateStruct[]
*/
abstract public function getPolicies();

/**
* Adds a policy to this role
*
Expand Down