Files
sysPass/lib/SP/DataModel/Dto/AccountAclDto.php
nuxsmin b9bc1c09e9 * [ADD] Permissions for users and groups on accounts could now be set either for viewing or editing.
* [MOD] Improved account ACL performance
* [MOD] Improved tags and permissions saving behavior
2018-04-02 00:02:24 +02:00

157 lines
2.8 KiB
PHP

<?php
/**
* sysPass
*
* @author nuxsmin
* @link https://syspass.org
* @copyright 2012-2018, Rubén Domínguez nuxsmin@$syspass.org
*
* This file is part of sysPass.
*
* sysPass is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* sysPass is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
*/
namespace SP\DataModel\Dto;
use SP\DataModel\ItemData;
/**
* Class AccountAclDto
*
* @package SP\DataModel\Dto
*/
class AccountAclDto
{
/**
* @var int
*/
private $accountId;
/**
* @var int
*/
private $userId;
/**
* @var ItemData[]
*/
private $usersId;
/**
* @var int
*/
private $userGroupId;
/**
* @var ItemData[]
*/
private $userGroupsId;
/**
* @var int
*/
private $dateEdit;
/**
* @return int
*/
public function getUserId()
{
return $this->userId;
}
/**
* @param int $userId
*/
public function setUserId($userId)
{
$this->userId = (int)$userId;
}
/**
* @return ItemData[]
*/
public function getUsersId()
{
return $this->usersId;
}
/**
* @param ItemData[] $usersId
*/
public function setUsersId(array $usersId)
{
$this->usersId = $usersId;
}
/**
* @return int
*/
public function getUserGroupId()
{
return $this->userGroupId;
}
/**
* @param int $userGroupId
*/
public function setUserGroupId($userGroupId)
{
$this->userGroupId = (int)$userGroupId;
}
/**
* @return ItemData[]
*/
public function getUserGroupsId()
{
return $this->userGroupsId;
}
/**
* @param ItemData[] $userGroupsId
*/
public function setUserGroupsId(array $userGroupsId)
{
$this->userGroupsId = $userGroupsId;
}
/**
* @return int
*/
public function getDateEdit()
{
return $this->dateEdit;
}
/**
* @param int $dateEdit
*/
public function setDateEdit($dateEdit)
{
$this->dateEdit = (int)$dateEdit;
}
/**
* @return int
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* @param int $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = (int)$accountId;
}
}