Improvement fullName and labels - Audilog Kpi
This commit is contained in:
@@ -326,16 +326,17 @@ class Dashboard {
|
||||
* Delete Dashboard owner
|
||||
*
|
||||
* @param string $das_uid
|
||||
* @param string $owner_uid
|
||||
* @param string $owner_uid
|
||||
* * @param string $usr_uid
|
||||
*
|
||||
* return void
|
||||
*
|
||||
* @author Marco Antonio Nina <marco.antonio.nina@colosa.com>
|
||||
*/
|
||||
public function deleteDashboardOwner($das_uid, $owner_uid)
|
||||
public function deleteDashboardOwner($das_uid, $owner_uid, $usr_uid)
|
||||
{
|
||||
$dashboard = new \DashboardDasInd();
|
||||
$response = $dashboard->remove($das_uid, $owner_uid);
|
||||
$response = $dashboard->remove($das_uid, $owner_uid, $usr_uid);
|
||||
return $response;
|
||||
}
|
||||
|
||||
@@ -359,15 +360,16 @@ class Dashboard {
|
||||
* Delete Indicator
|
||||
*
|
||||
* @param string $das_ind_uid Unique id
|
||||
* @param string $usr_uid
|
||||
*
|
||||
* return void
|
||||
*
|
||||
* @author Marco Antonio Nina <marco.antonio.nina@colosa.com>
|
||||
*/
|
||||
public function delete($das_ind_uid)
|
||||
public function delete($das_ind_uid, $usr_uid)
|
||||
{
|
||||
$dashboard = new \DashboardIndicator();
|
||||
$response = $dashboard->remove($das_ind_uid);
|
||||
$response = $dashboard->remove($das_ind_uid, $usr_uid);
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
@@ -238,6 +238,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$request_data['USR_UID'] = $this->getUserId();
|
||||
$response = $dashboard->createDashboard($request_data);
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
@@ -260,6 +261,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$request_data['USR_UID'] = $this->getUserId();
|
||||
$response = $dashboard->createDashboard($request_data);
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
@@ -279,6 +281,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$request_data['USR_UID'] = $this->getUserId();
|
||||
$response = $dashboard->deletedashboard($das_uid);
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
@@ -300,6 +303,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$request_data['USR_UID'] = $this->getUserId();
|
||||
$response = $dashboard->createOwner($request_data);
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
@@ -320,7 +324,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$response = $dashboard->deleteDashboardOwner($das_uid, $owner_uid);
|
||||
$response = $dashboard->deleteDashboardOwner($das_uid, $owner_uid, $this->getUserId());
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
||||
@@ -341,6 +345,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$request_data['USR_UID'] = $this->getUserId();
|
||||
$response = $dashboard->createIndicator($request_data);
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
@@ -363,6 +368,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$request_data['USR_UID'] = $this->getUserId();
|
||||
$response = $dashboard->createIndicator($request_data);
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
@@ -382,7 +388,7 @@ class Dashboard extends Api
|
||||
{
|
||||
try {
|
||||
$dashboard = new \ProcessMaker\BusinessModel\Dashboard();
|
||||
$response = $dashboard->delete($ind_uid);
|
||||
$response = $dashboard->delete($ind_uid, $this->getUserId());
|
||||
return $response;
|
||||
} catch (\Exception $e) {
|
||||
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
|
||||
|
||||
Reference in New Issue
Block a user