Unverified Commit f2b8258a authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix/15046 : move service/todisplay from app and limit display of information returned

parent 881379e8
......@@ -67,7 +67,10 @@ class serviceAccount
*/
public function index($limit = null)
{
return $this->sdoFactory->find('auth/account', "accountType='service'", null, null, null, $limit);
$serviceAccounts = $this->sdoFactory->find('auth/account', "accountType='service'", null, null, null, $limit);
$serviceAccounts = \laabs::castMessageCollection($serviceAccounts, 'auth/serviceAccountIndex');
return $serviceAccounts;
}
/**
......
<?php
/*
* Copyright (C) 2015 Maarch
* Copyright (C) 2020 Maarch
*
* This file is part of bundle user.
* This file is part of bundle auth.
*
* Bundle service is free software: you can redistribute it and/or modify
* Bundle auth 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.
*
* Bundle service is distributed in the hope that it will be useful,
* Bundle auth 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 bundle service. If not, see <http://www.gnu.org/licenses/>.
* along with bundle auth. If not, see <http://www.gnu.org/licenses/>.
*/
namespace presentation\maarchRM\UserStory\app;
namespace bundle\auth\Message;
/**
* Interface for service
* userAccountIndex message
*
* @package Auth
* @author Jérôme Boucher <jerome.boucher@maarch.org>
*/
interface accountInterface
class serviceAccountIndex
{
/**
* The service account identifier
*
* @var id
* @notempty
*/
public $accountId;
/**
* The displayed name
*
* @var string
* @notempty
*/
public $accountName;
/**
* List all services to display
* The displayed name
*
* @uses auth/serviceAccount/readIndex
* @var string
* @notempty
*/
public function readServiceTodisplay();
public $displayName;
}
......@@ -66,4 +66,10 @@ interface auditInterface
*/
public function readUserTodisplay();
/**
* List all services to display
*
* @uses auth/serviceAccount/readIndex
*/
public function readServiceTodisplay();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment