Adicion la funcionalidad DELETE en PROCESS PERMISSIONS

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-01-15 11:43:30 -04:00
parent bbfca418a7
commit 038ec33b52
2 changed files with 50 additions and 1 deletions

View File

@@ -58,5 +58,29 @@ class ProcessPermissions extends Api
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}
}
/**
* @param string $projectUid {@min 1} {@max 32}
* @param string $objectPermissionUid {@min 1} {@max 32}
*
* @access public
* @author Brayan Pereyra (Cochalo) <brayan@colosa.com>
* @copyright Colosa - Bolivia
*
* @return void
*
* @url DELETE /:projectUid/process-permission/:objectPermissionUid
*/
public function doDeleteProcessPermission($projectUid, $objectPermissionUid)
{
try {
$processPermissions = new \BusinessModel\ProcessPermissions();
$response = $processPermissions->deleteProcessPermission($objectPermissionUid, $projectUid);
return $response;
} catch (\Exception $e) {
throw (new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage()));
}
}
}