diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php
index 71ba92adf..ee48f2518 100755
--- a/gulliver/system/class.g.php
+++ b/gulliver/system/class.g.php
@@ -5175,25 +5175,39 @@ function getDirectorySize($path,$maxmtime=0)
$rest = new Restler();
$rest->setSupportedFormats('JsonFormat', 'XmlFormat');
- $namespace = 'Services_Rest_';
-
- // override global REQUEST_URI to pass to Restler library
- $_SERVER['REQUEST_URI'] = '/' . strtolower($namespace) . ltrim($uri, '/');
// getting all services class
$srvClasses = glob(PATH_SERVICES_REST . '*.php');
$crudClasses = glob(PATH_SERVICES_REST . 'crud/*.php');
-
$srvClasses = array_merge($srvClasses, $crudClasses);
-
+
+ // hook to get rest api classes from plugins
+ if ( class_exists( 'PMPluginRegistry' ) ) {
+ $pluginRegistry = & PMPluginRegistry::getSingleton();
+ $pluginClasses = $pluginRegistry->getRegisteredRestClassFiles();
+ $srvClasses = array_merge($srvClasses, $pluginClasses);
+ }
+
foreach ($srvClasses as $classFile) {
require_once $classFile;
+ $namespace = 'Services_Rest_';
+ $className = str_replace('.php', '', basename($classFile));
- $className = $namespace . str_replace('.php', '', basename($classFile));
+ // if the core class does not exists try resolve the for a plugin
+ if (! class_exists($namespace . $className)) {
+ $namespace = 'Plugin_Services_Rest_';
+
+ // Couldn't resolve the class name, just skipp it
+ if (! class_exists($namespace . $className)) {
+ continue;
+ }
+ }
+
+ $className = $namespace . $className;
$reflClass = new ReflectionClass($className);
- // verify if there is an auth class implementing 'iAuthenticate'
- if ($reflClass->implementsInterface('iAuthenticate')) {
+ // verify if there is an auth class implementing 'iAuthenticate' that wasn't from plugin
+ if ($reflClass->implementsInterface('iAuthenticate') && $namespace != 'Plugin_Services_Rest_') {
// auth class found, set as restler authentication class handler
$rest->addAuthenticationClass($className);
} else {
@@ -5202,6 +5216,9 @@ function getDirectorySize($path,$maxmtime=0)
}
}
+ // override global REQUEST_URI to pass to Restler library
+ $_SERVER['REQUEST_URI'] = '/' . strtolower($namespace) . ltrim($uri, '/');
+
$rest->handle();
}
}
diff --git a/gulliver/system/class.headPublisher.php b/gulliver/system/class.headPublisher.php
index 929620ce3..f9e92b71e 100755
--- a/gulliver/system/class.headPublisher.php
+++ b/gulliver/system/class.headPublisher.php
@@ -302,12 +302,12 @@ class headPublisher {
//$head .= $this->getExtJsStylesheets();
$head .= $this->getExtJsScripts();
$head .= $this->getExtJsVariablesScript();
-
+
$oServerConf =& serverConf::getSingleton();
if ($oServerConf->isRtl(SYS_LANG)) {
$head .= " \n";
}
-
+
return $head;
}
@@ -491,7 +491,7 @@ class headPublisher {
if ($debug) {
foreach ($pluginJavascripts as $pluginJsFile) {
$jsPluginCacheName = '';
- if (substr($pluginJsFile, -3) != '.js') {
+ if (substr($pgetRegisteredJavascriptByluginJsFile, -3) != '.js') {
$pluginJsFile .= '.js';
}
diff --git a/workflow/engine/bin/rest-gen.php b/workflow/engine/bin/rest-gen
similarity index 98%
rename from workflow/engine/bin/rest-gen.php
rename to workflow/engine/bin/rest-gen
index 6064cf46d..611ef0abd 100644
--- a/workflow/engine/bin/rest-gen.php
+++ b/workflow/engine/bin/rest-gen
@@ -1,3 +1,4 @@
+#!/usr/bin/env php
getSteps();
}
+
+ /**
+ * Register a rest service and expose it
+ *
+ * @author Erik Amaru Ortiz
+ * @param string $coreJsFile
+ * @param array/string $pluginJsFile
+ * @return void
+ */
+ function registerRestService($classname, $path = '')
+ {
+ $oPluginRegistry =& PMPluginRegistry::getSingleton();
+ $oPluginRegistry->registerRestService($this->sNamespace, $classname, $path);
+ }
+
+ /**
+ * Unregister a rest service
+ *
+ * @author Erik Amaru Ortiz
+ * @param string $coreJsFile
+ * @param array/string $pluginJsFile
+ * @return void
+ */
+ function unregisterRestService($classname, $path)
+ {
+ $oPluginRegistry =& PMPluginRegistry::getSingleton();
+ $oPluginRegistry->unregisterRestService($this->sNamespace, $classname, $path);
+ }
}
class menuDetail
diff --git a/workflow/engine/classes/class.pluginRegistry.php b/workflow/engine/classes/class.pluginRegistry.php
index bdbab675f..28277ccea 100755
--- a/workflow/engine/classes/class.pluginRegistry.php
+++ b/workflow/engine/classes/class.pluginRegistry.php
@@ -95,6 +95,11 @@ class PMPluginRegistry {
*/
private $_aJavascripts = array();
+ /**
+ * Contains all rest services classes from plugins
+ */
+ private $_restServices = array();
+
static private $instance = NULL;
/**
@@ -1224,6 +1229,67 @@ class PMPluginRegistry {
}
}
+ /**
+ * Register a rest service class from a plugin to be served by processmaker
+ *
+ * @param string $sNamespace The namespace for the plugin
+ * @param string $classname The service (api) class name
+ * @param string $path (optional) the class file path, if it is not set the system will try resolve the
+ * file path from its classname.
+ */
+ public function registerRestService($sNamespace, $classname, $path = '')
+ {
+ $restService = new StdClass();
+ $restService->sNamespace = $sNamespace;
+ $restService->classname = $classname;
+
+ if (empty($path)) {
+ $path = PATH_PLUGINS . $restService->sNamespace . "/classes/rest/$classname.php";
+ }
+
+ if (! file_exists($path)) {
+ return false;
+ }
+
+ $restService->path = $path;
+ $this->_restServices[] = $restService;
+
+ return true;
+ }
+
+ /**
+ * Unregister a rest service class of a plugin
+ *
+ * @param string $sNamespace The namespace for the plugin
+ * @param string $classname The service (api) class name
+ */
+ public function unregisterRestService($sNamespace, $classname)
+ {
+ foreach ($this->_restServices as $i => $service) {
+ if ($sNamespace == $service->sNamespace) {
+ unset($this->_restServices[$i]);
+ }
+ }
+ // Re-index when all js were unregistered
+ $this->_restServices = array_values($this->_restServices);
+ }
+
+ public function getRegisteredRestServices()
+ {
+ return $this->_restServices;
+ }
+
+ public function getRegisteredRestClassFiles()
+ {
+ $restClassFiles = array();
+
+ foreach ($this->_restServices as $restService) {
+ $restClassFiles[] = $restService->path;
+ }
+
+ return $restClassFiles;
+ }
+
/**
* return all dashboard pages
*
diff --git a/workflow/engine/config/rest-config.ini b/workflow/engine/config/rest-config.ini
new file mode 100644
index 000000000..551e63e39
--- /dev/null
+++ b/workflow/engine/config/rest-config.ini
@@ -0,0 +1,627 @@
+; -= ProcessMaker RestFul services configuration =-
+
+; On this configuration you file can customize all crud rest api.
+; With what methods (GET,POST,PUT,DELETE) you need that PM serve.
+; And for each table/method what columns you can expose.
+
+;Rest Api for table APPLICATION with (16) columns.
+[APPLICATION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID APP_NUMBER APP_PARENT APP_STATUS PRO_UID APP_PROC_STATUS APP_PROC_CODE APP_PARALLEL APP_INIT_USER APP_CUR_USER APP_CREATE_DATE APP_INIT_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_DATA APP_PIN
+ EXPOSE_COLUMNS_PUT = APP_UID APP_NUMBER APP_PARENT APP_STATUS PRO_UID APP_PROC_STATUS APP_PROC_CODE APP_PARALLEL APP_INIT_USER APP_CUR_USER APP_CREATE_DATE APP_INIT_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_DATA APP_PIN
+
+;Rest Api for table APP_DELEGATION with (22) columns.
+[APP_DELEGATION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX DEL_PREVIOUS PRO_UID TAS_UID USR_UID DEL_TYPE DEL_THREAD DEL_THREAD_STATUS DEL_PRIORITY DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED DEL_DATA APP_OVERDUE_PERCENTAGE
+ EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX DEL_PREVIOUS PRO_UID TAS_UID USR_UID DEL_TYPE DEL_THREAD DEL_THREAD_STATUS DEL_PRIORITY DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED DEL_DATA APP_OVERDUE_PERCENTAGE
+
+;Rest Api for table APP_DOCUMENT with (14) columns.
+[APP_DOCUMENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_DOC_UID DOC_VERSION APP_UID DEL_INDEX DOC_UID USR_UID APP_DOC_TYPE APP_DOC_CREATE_DATE APP_DOC_INDEX FOLDER_UID APP_DOC_PLUGIN APP_DOC_TAGS APP_DOC_STATUS APP_DOC_STATUS_DATE
+ EXPOSE_COLUMNS_PUT = APP_DOC_UID DOC_VERSION APP_UID DEL_INDEX DOC_UID USR_UID APP_DOC_TYPE APP_DOC_CREATE_DATE APP_DOC_INDEX FOLDER_UID APP_DOC_PLUGIN APP_DOC_TAGS APP_DOC_STATUS APP_DOC_STATUS_DATE
+
+;Rest Api for table APP_MESSAGE with (16) columns.
+[APP_MESSAGE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_MSG_UID MSG_UID APP_UID DEL_INDEX APP_MSG_TYPE APP_MSG_SUBJECT APP_MSG_FROM APP_MSG_TO APP_MSG_BODY APP_MSG_DATE APP_MSG_CC APP_MSG_BCC APP_MSG_TEMPLATE APP_MSG_STATUS APP_MSG_ATTACH APP_MSG_SEND_DATE
+ EXPOSE_COLUMNS_PUT = APP_MSG_UID MSG_UID APP_UID DEL_INDEX APP_MSG_TYPE APP_MSG_SUBJECT APP_MSG_FROM APP_MSG_TO APP_MSG_BODY APP_MSG_DATE APP_MSG_CC APP_MSG_BCC APP_MSG_TEMPLATE APP_MSG_STATUS APP_MSG_ATTACH APP_MSG_SEND_DATE
+
+;Rest Api for table APP_OWNER with (3) columns.
+[APP_OWNER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID OWN_UID USR_UID
+ EXPOSE_COLUMNS_PUT = APP_UID OWN_UID USR_UID
+
+;Rest Api for table CONFIGURATION with (6) columns.
+[CONFIGURATION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CFG_UID OBJ_UID CFG_VALUE PRO_UID USR_UID APP_UID
+ EXPOSE_COLUMNS_PUT = CFG_UID OBJ_UID CFG_VALUE PRO_UID USR_UID APP_UID
+
+;Rest Api for table CONTENT with (5) columns.
+[CONTENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CON_CATEGORY CON_PARENT CON_ID CON_LANG CON_VALUE
+ EXPOSE_COLUMNS_PUT = CON_CATEGORY CON_PARENT CON_ID CON_LANG CON_VALUE
+
+;Rest Api for table DEPARTMENT with (7) columns.
+[DEPARTMENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = DEP_UID DEP_PARENT DEP_MANAGER DEP_LOCATION DEP_STATUS DEP_REF_CODE DEP_LDAP_DN
+ EXPOSE_COLUMNS_PUT = DEP_UID DEP_PARENT DEP_MANAGER DEP_LOCATION DEP_STATUS DEP_REF_CODE DEP_LDAP_DN
+
+;Rest Api for table DYNAFORM with (4) columns.
+[DYNAFORM]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = DYN_UID PRO_UID DYN_TYPE DYN_FILENAME
+ EXPOSE_COLUMNS_PUT = DYN_UID PRO_UID DYN_TYPE DYN_FILENAME
+
+;Rest Api for table GROUPWF with (4) columns.
+[GROUPWF]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = GRP_UID GRP_STATUS GRP_LDAP_DN GRP_UX
+ EXPOSE_COLUMNS_PUT = GRP_UID GRP_STATUS GRP_LDAP_DN GRP_UX
+
+;Rest Api for table GROUP_USER with (2) columns.
+[GROUP_USER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = GRP_UID USR_UID
+ EXPOSE_COLUMNS_PUT = GRP_UID USR_UID
+
+;Rest Api for table HOLIDAY with (3) columns.
+[HOLIDAY]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = HLD_UID HLD_DATE HLD_DESCRIPTION
+ EXPOSE_COLUMNS_PUT = HLD_UID HLD_DATE HLD_DESCRIPTION
+
+;Rest Api for table INPUT_DOCUMENT with (8) columns.
+[INPUT_DOCUMENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = INP_DOC_UID PRO_UID INP_DOC_FORM_NEEDED INP_DOC_ORIGINAL INP_DOC_PUBLISHED INP_DOC_VERSIONING INP_DOC_DESTINATION_PATH INP_DOC_TAGS
+ EXPOSE_COLUMNS_PUT = INP_DOC_UID PRO_UID INP_DOC_FORM_NEEDED INP_DOC_ORIGINAL INP_DOC_PUBLISHED INP_DOC_VERSIONING INP_DOC_DESTINATION_PATH INP_DOC_TAGS
+
+;Rest Api for table ISO_COUNTRY with (3) columns.
+[ISO_COUNTRY]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = IC_UID IC_NAME IC_SORT_ORDER
+ EXPOSE_COLUMNS_PUT = IC_UID IC_NAME IC_SORT_ORDER
+
+;Rest Api for table ISO_LOCATION with (5) columns.
+[ISO_LOCATION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = IC_UID IL_UID IL_NAME IL_NORMAL_NAME IS_UID
+ EXPOSE_COLUMNS_PUT = IC_UID IL_UID IL_NAME IL_NORMAL_NAME IS_UID
+
+;Rest Api for table ISO_SUBDIVISION with (3) columns.
+[ISO_SUBDIVISION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = IC_UID IS_UID IS_NAME
+ EXPOSE_COLUMNS_PUT = IC_UID IS_UID IS_NAME
+
+;Rest Api for table LANGUAGE with (7) columns.
+[LANGUAGE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = LAN_ID LAN_NAME LAN_NATIVE_NAME LAN_DIRECTION LAN_WEIGHT LAN_ENABLED LAN_CALENDAR
+ EXPOSE_COLUMNS_PUT = LAN_ID LAN_NAME LAN_NATIVE_NAME LAN_DIRECTION LAN_WEIGHT LAN_ENABLED LAN_CALENDAR
+
+;Rest Api for table LEXICO with (4) columns.
+[LEXICO]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = LEX_TOPIC LEX_KEY LEX_VALUE LEX_CAPTION
+ EXPOSE_COLUMNS_PUT = LEX_TOPIC LEX_KEY LEX_VALUE LEX_CAPTION
+
+;Rest Api for table OUTPUT_DOCUMENT with (19) columns.
+[OUTPUT_DOCUMENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = OUT_DOC_UID PRO_UID OUT_DOC_LANDSCAPE OUT_DOC_MEDIA OUT_DOC_LEFT_MARGIN OUT_DOC_RIGHT_MARGIN OUT_DOC_TOP_MARGIN OUT_DOC_BOTTOM_MARGIN OUT_DOC_GENERATE OUT_DOC_TYPE OUT_DOC_CURRENT_REVISION OUT_DOC_FIELD_MAPPING OUT_DOC_VERSIONING OUT_DOC_DESTINATION_PATH OUT_DOC_TAGS OUT_DOC_PDF_SECURITY_ENABLED OUT_DOC_PDF_SECURITY_OPEN_PASSWORD OUT_DOC_PDF_SECURITY_OWNER_PASSWORD OUT_DOC_PDF_SECURITY_PERMISSIONS
+ EXPOSE_COLUMNS_PUT = OUT_DOC_UID PRO_UID OUT_DOC_LANDSCAPE OUT_DOC_MEDIA OUT_DOC_LEFT_MARGIN OUT_DOC_RIGHT_MARGIN OUT_DOC_TOP_MARGIN OUT_DOC_BOTTOM_MARGIN OUT_DOC_GENERATE OUT_DOC_TYPE OUT_DOC_CURRENT_REVISION OUT_DOC_FIELD_MAPPING OUT_DOC_VERSIONING OUT_DOC_DESTINATION_PATH OUT_DOC_TAGS OUT_DOC_PDF_SECURITY_ENABLED OUT_DOC_PDF_SECURITY_OPEN_PASSWORD OUT_DOC_PDF_SECURITY_OWNER_PASSWORD OUT_DOC_PDF_SECURITY_PERMISSIONS
+
+;Rest Api for table PROCESS with (25) columns.
+[PROCESS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = PRO_UID PRO_PARENT PRO_TIME PRO_TIMEUNIT PRO_STATUS PRO_TYPE_DAY PRO_TYPE PRO_ASSIGNMENT PRO_SHOW_MAP PRO_SHOW_MESSAGE PRO_SHOW_DELEGATE PRO_SHOW_DYNAFORM PRO_CATEGORY PRO_SUB_CATEGORY PRO_INDUSTRY PRO_UPDATE_DATE PRO_CREATE_DATE PRO_CREATE_USER PRO_HEIGHT PRO_WIDTH PRO_TITLE_X PRO_TITLE_Y PRO_DEBUG PRO_DYNAFORMS PRO_DERIVATION_SCREEN_TPL
+ EXPOSE_COLUMNS_PUT = PRO_UID PRO_PARENT PRO_TIME PRO_TIMEUNIT PRO_STATUS PRO_TYPE_DAY PRO_TYPE PRO_ASSIGNMENT PRO_SHOW_MAP PRO_SHOW_MESSAGE PRO_SHOW_DELEGATE PRO_SHOW_DYNAFORM PRO_CATEGORY PRO_SUB_CATEGORY PRO_INDUSTRY PRO_UPDATE_DATE PRO_CREATE_DATE PRO_CREATE_USER PRO_HEIGHT PRO_WIDTH PRO_TITLE_X PRO_TITLE_Y PRO_DEBUG PRO_DYNAFORMS PRO_DERIVATION_SCREEN_TPL
+
+;Rest Api for table PROCESS_OWNER with (2) columns.
+[PROCESS_OWNER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = OWN_UID PRO_UID
+ EXPOSE_COLUMNS_PUT = OWN_UID PRO_UID
+
+;Rest Api for table REPORT_TABLE with (8) columns.
+[REPORT_TABLE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = REP_TAB_UID PRO_UID REP_TAB_NAME REP_TAB_TYPE REP_TAB_GRID REP_TAB_CONNECTION REP_TAB_CREATE_DATE REP_TAB_STATUS
+ EXPOSE_COLUMNS_PUT = REP_TAB_UID PRO_UID REP_TAB_NAME REP_TAB_TYPE REP_TAB_GRID REP_TAB_CONNECTION REP_TAB_CREATE_DATE REP_TAB_STATUS
+
+;Rest Api for table REPORT_VAR with (5) columns.
+[REPORT_VAR]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = REP_VAR_UID PRO_UID REP_TAB_UID REP_VAR_NAME REP_VAR_TYPE
+ EXPOSE_COLUMNS_PUT = REP_VAR_UID PRO_UID REP_TAB_UID REP_VAR_NAME REP_VAR_TYPE
+
+;Rest Api for table ROUTE with (17) columns.
+[ROUTE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = ROU_UID ROU_PARENT PRO_UID TAS_UID ROU_NEXT_TASK ROU_CASE ROU_TYPE ROU_CONDITION ROU_TO_LAST_USER ROU_OPTIONAL ROU_SEND_EMAIL ROU_SOURCEANCHOR ROU_TARGETANCHOR ROU_TO_PORT ROU_FROM_PORT ROU_EVN_UID GAT_UID
+ EXPOSE_COLUMNS_PUT = ROU_UID ROU_PARENT PRO_UID TAS_UID ROU_NEXT_TASK ROU_CASE ROU_TYPE ROU_CONDITION ROU_TO_LAST_USER ROU_OPTIONAL ROU_SEND_EMAIL ROU_SOURCEANCHOR ROU_TARGETANCHOR ROU_TO_PORT ROU_FROM_PORT ROU_EVN_UID GAT_UID
+
+;Rest Api for table STEP with (8) columns.
+[STEP]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = STEP_UID PRO_UID TAS_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_CONDITION STEP_POSITION STEP_MODE
+ EXPOSE_COLUMNS_PUT = STEP_UID PRO_UID TAS_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_CONDITION STEP_POSITION STEP_MODE
+
+;Rest Api for table STEP_TRIGGER with (6) columns.
+[STEP_TRIGGER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = STEP_UID TAS_UID TRI_UID ST_TYPE ST_CONDITION ST_POSITION
+ EXPOSE_COLUMNS_PUT = STEP_UID TAS_UID TRI_UID ST_TYPE ST_CONDITION ST_POSITION
+
+;Rest Api for table SWIMLANES_ELEMENTS with (8) columns.
+[SWIMLANES_ELEMENTS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = SWI_UID PRO_UID SWI_TYPE SWI_X SWI_Y SWI_WIDTH SWI_HEIGHT SWI_NEXT_UID
+ EXPOSE_COLUMNS_PUT = SWI_UID PRO_UID SWI_TYPE SWI_X SWI_Y SWI_WIDTH SWI_HEIGHT SWI_NEXT_UID
+
+;Rest Api for table TASK with (41) columns.
+[TASK]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = PRO_UID TAS_UID TAS_TYPE TAS_DURATION TAS_DELAY_TYPE TAS_TEMPORIZER TAS_TYPE_DAY TAS_TIMEUNIT TAS_ALERT TAS_PRIORITY_VARIABLE TAS_ASSIGN_TYPE TAS_ASSIGN_VARIABLE TAS_MI_INSTANCE_VARIABLE TAS_MI_COMPLETE_VARIABLE TAS_ASSIGN_LOCATION TAS_ASSIGN_LOCATION_ADHOC TAS_TRANSFER_FLY TAS_LAST_ASSIGNED TAS_USER TAS_CAN_UPLOAD TAS_VIEW_UPLOAD TAS_VIEW_ADDITIONAL_DOCUMENTATION TAS_CAN_CANCEL TAS_OWNER_APP STG_UID TAS_CAN_PAUSE TAS_CAN_SEND_MESSAGE TAS_CAN_DELETE_DOCS TAS_SELF_SERVICE TAS_START TAS_TO_LAST_USER TAS_SEND_LAST_EMAIL TAS_DERIVATION TAS_POSX TAS_POSY TAS_WIDTH TAS_HEIGHT TAS_COLOR TAS_EVN_UID TAS_BOUNDARY TAS_DERIVATION_SCREEN_TPL
+ EXPOSE_COLUMNS_PUT = PRO_UID TAS_UID TAS_TYPE TAS_DURATION TAS_DELAY_TYPE TAS_TEMPORIZER TAS_TYPE_DAY TAS_TIMEUNIT TAS_ALERT TAS_PRIORITY_VARIABLE TAS_ASSIGN_TYPE TAS_ASSIGN_VARIABLE TAS_MI_INSTANCE_VARIABLE TAS_MI_COMPLETE_VARIABLE TAS_ASSIGN_LOCATION TAS_ASSIGN_LOCATION_ADHOC TAS_TRANSFER_FLY TAS_LAST_ASSIGNED TAS_USER TAS_CAN_UPLOAD TAS_VIEW_UPLOAD TAS_VIEW_ADDITIONAL_DOCUMENTATION TAS_CAN_CANCEL TAS_OWNER_APP STG_UID TAS_CAN_PAUSE TAS_CAN_SEND_MESSAGE TAS_CAN_DELETE_DOCS TAS_SELF_SERVICE TAS_START TAS_TO_LAST_USER TAS_SEND_LAST_EMAIL TAS_DERIVATION TAS_POSX TAS_POSY TAS_WIDTH TAS_HEIGHT TAS_COLOR TAS_EVN_UID TAS_BOUNDARY TAS_DERIVATION_SCREEN_TPL
+
+;Rest Api for table TASK_USER with (4) columns.
+[TASK_USER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = TAS_UID USR_UID TU_TYPE TU_RELATION
+ EXPOSE_COLUMNS_PUT = TAS_UID USR_UID TU_TYPE TU_RELATION
+
+;Rest Api for table TRANSLATION with (5) columns.
+[TRANSLATION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = TRN_CATEGORY TRN_ID TRN_LANG TRN_VALUE TRN_UPDATE_DATE
+ EXPOSE_COLUMNS_PUT = TRN_CATEGORY TRN_ID TRN_LANG TRN_VALUE TRN_UPDATE_DATE
+
+;Rest Api for table TRIGGERS with (5) columns.
+[TRIGGERS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = TRI_UID PRO_UID TRI_TYPE TRI_WEBBOT TRI_PARAM
+ EXPOSE_COLUMNS_PUT = TRI_UID PRO_UID TRI_TYPE TRI_WEBBOT TRI_PARAM
+
+;Rest Api for table USERS with (26) columns.
+[USERS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = USR_UID USR_USERNAME USR_PASSWORD USR_FIRSTNAME USR_LASTNAME USR_EMAIL USR_DUE_DATE USR_CREATE_DATE USR_UPDATE_DATE USR_STATUS USR_COUNTRY USR_CITY USR_LOCATION USR_ADDRESS USR_PHONE USR_FAX USR_CELLULAR USR_ZIP_CODE DEP_UID USR_POSITION USR_RESUME USR_BIRTHDAY USR_ROLE USR_REPORTS_TO USR_REPLACED_BY USR_UX
+ EXPOSE_COLUMNS_PUT = USR_UID USR_USERNAME USR_PASSWORD USR_FIRSTNAME USR_LASTNAME USR_EMAIL USR_DUE_DATE USR_CREATE_DATE USR_UPDATE_DATE USR_STATUS USR_COUNTRY USR_CITY USR_LOCATION USR_ADDRESS USR_PHONE USR_FAX USR_CELLULAR USR_ZIP_CODE DEP_UID USR_POSITION USR_RESUME USR_BIRTHDAY USR_ROLE USR_REPORTS_TO USR_REPLACED_BY USR_UX
+
+;Rest Api for table APP_THREAD with (5) columns.
+[APP_THREAD]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID APP_THREAD_INDEX APP_THREAD_PARENT APP_THREAD_STATUS DEL_INDEX
+ EXPOSE_COLUMNS_PUT = APP_UID APP_THREAD_INDEX APP_THREAD_PARENT APP_THREAD_STATUS DEL_INDEX
+
+;Rest Api for table APP_DELAY with (14) columns.
+[APP_DELAY]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_DELAY_UID PRO_UID APP_UID APP_THREAD_INDEX APP_DEL_INDEX APP_TYPE APP_STATUS APP_NEXT_TASK APP_DELEGATION_USER APP_ENABLE_ACTION_USER APP_ENABLE_ACTION_DATE APP_DISABLE_ACTION_USER APP_DISABLE_ACTION_DATE APP_AUTOMATIC_DISABLED_DATE
+ EXPOSE_COLUMNS_PUT = APP_DELAY_UID PRO_UID APP_UID APP_THREAD_INDEX APP_DEL_INDEX APP_TYPE APP_STATUS APP_NEXT_TASK APP_DELEGATION_USER APP_ENABLE_ACTION_USER APP_ENABLE_ACTION_DATE APP_DISABLE_ACTION_USER APP_DISABLE_ACTION_DATE APP_AUTOMATIC_DISABLED_DATE
+
+;Rest Api for table PROCESS_USER with (4) columns.
+[PROCESS_USER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = PU_UID PRO_UID USR_UID PU_TYPE
+ EXPOSE_COLUMNS_PUT = PU_UID PRO_UID USR_UID PU_TYPE
+
+;Rest Api for table SESSION with (7) columns.
+[SESSION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = SES_UID SES_STATUS USR_UID SES_REMOTE_IP SES_INIT_DATE SES_DUE_DATE SES_END_DATE
+ EXPOSE_COLUMNS_PUT = SES_UID SES_STATUS USR_UID SES_REMOTE_IP SES_INIT_DATE SES_DUE_DATE SES_END_DATE
+
+;Rest Api for table DB_SOURCE with (9) columns.
+[DB_SOURCE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = DBS_UID PRO_UID DBS_TYPE DBS_SERVER DBS_DATABASE_NAME DBS_USERNAME DBS_PASSWORD DBS_PORT DBS_ENCODE
+ EXPOSE_COLUMNS_PUT = DBS_UID PRO_UID DBS_TYPE DBS_SERVER DBS_DATABASE_NAME DBS_USERNAME DBS_PASSWORD DBS_PORT DBS_ENCODE
+
+;Rest Api for table STEP_SUPERVISOR with (5) columns.
+[STEP_SUPERVISOR]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = STEP_UID PRO_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_POSITION
+ EXPOSE_COLUMNS_PUT = STEP_UID PRO_UID STEP_TYPE_OBJ STEP_UID_OBJ STEP_POSITION
+
+;Rest Api for table OBJECT_PERMISSION with (11) columns.
+[OBJECT_PERMISSION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = OP_UID PRO_UID TAS_UID USR_UID OP_USER_RELATION OP_TASK_SOURCE OP_PARTICIPATE OP_OBJ_TYPE OP_OBJ_UID OP_ACTION OP_CASE_STATUS
+ EXPOSE_COLUMNS_PUT = OP_UID PRO_UID TAS_UID USR_UID OP_USER_RELATION OP_TASK_SOURCE OP_PARTICIPATE OP_OBJ_TYPE OP_OBJ_UID OP_ACTION OP_CASE_STATUS
+
+;Rest Api for table CASE_TRACKER with (4) columns.
+[CASE_TRACKER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = PRO_UID CT_MAP_TYPE CT_DERIVATION_HISTORY CT_MESSAGE_HISTORY
+ EXPOSE_COLUMNS_PUT = PRO_UID CT_MAP_TYPE CT_DERIVATION_HISTORY CT_MESSAGE_HISTORY
+
+;Rest Api for table CASE_TRACKER_OBJECT with (6) columns.
+[CASE_TRACKER_OBJECT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CTO_UID PRO_UID CTO_TYPE_OBJ CTO_UID_OBJ CTO_CONDITION CTO_POSITION
+ EXPOSE_COLUMNS_PUT = CTO_UID PRO_UID CTO_TYPE_OBJ CTO_UID_OBJ CTO_CONDITION CTO_POSITION
+
+;Rest Api for table STAGE with (5) columns.
+[STAGE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = STG_UID PRO_UID STG_POSX STG_POSY STG_INDEX
+ EXPOSE_COLUMNS_PUT = STG_UID PRO_UID STG_POSX STG_POSY STG_INDEX
+
+;Rest Api for table SUB_PROCESS with (12) columns.
+[SUB_PROCESS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = SP_UID PRO_UID TAS_UID PRO_PARENT TAS_PARENT SP_TYPE SP_SYNCHRONOUS SP_SYNCHRONOUS_TYPE SP_SYNCHRONOUS_WAIT SP_VARIABLES_OUT SP_VARIABLES_IN SP_GRID_IN
+ EXPOSE_COLUMNS_PUT = SP_UID PRO_UID TAS_UID PRO_PARENT TAS_PARENT SP_TYPE SP_SYNCHRONOUS SP_SYNCHRONOUS_TYPE SP_SYNCHRONOUS_WAIT SP_VARIABLES_OUT SP_VARIABLES_IN SP_GRID_IN
+
+;Rest Api for table SUB_APPLICATION with (9) columns.
+[SUB_APPLICATION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID APP_PARENT DEL_INDEX_PARENT DEL_THREAD_PARENT SA_STATUS SA_VALUES_OUT SA_VALUES_IN SA_INIT_DATE SA_FINISH_DATE
+ EXPOSE_COLUMNS_PUT = APP_UID APP_PARENT DEL_INDEX_PARENT DEL_THREAD_PARENT SA_STATUS SA_VALUES_OUT SA_VALUES_IN SA_INIT_DATE SA_FINISH_DATE
+
+;Rest Api for table LOGIN_LOG with (8) columns.
+[LOGIN_LOG]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = LOG_UID LOG_STATUS LOG_IP LOG_SID LOG_INIT_DATE LOG_END_DATE LOG_CLIENT_HOSTNAME USR_UID
+ EXPOSE_COLUMNS_PUT = LOG_UID LOG_STATUS LOG_IP LOG_SID LOG_INIT_DATE LOG_END_DATE LOG_CLIENT_HOSTNAME USR_UID
+
+;Rest Api for table USERS_PROPERTIES with (4) columns.
+[USERS_PROPERTIES]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = USR_UID USR_LAST_UPDATE_DATE USR_LOGGED_NEXT_TIME USR_PASSWORD_HISTORY
+ EXPOSE_COLUMNS_PUT = USR_UID USR_LAST_UPDATE_DATE USR_LOGGED_NEXT_TIME USR_PASSWORD_HISTORY
+
+;Rest Api for table ADDITIONAL_TABLES with (16) columns.
+[ADDITIONAL_TABLES]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = ADD_TAB_UID ADD_TAB_NAME ADD_TAB_CLASS_NAME ADD_TAB_DESCRIPTION ADD_TAB_SDW_LOG_INSERT ADD_TAB_SDW_LOG_UPDATE ADD_TAB_SDW_LOG_DELETE ADD_TAB_SDW_LOG_SELECT ADD_TAB_SDW_MAX_LENGTH ADD_TAB_SDW_AUTO_DELETE ADD_TAB_PLG_UID DBS_UID PRO_UID ADD_TAB_TYPE ADD_TAB_GRID ADD_TAB_TAG
+ EXPOSE_COLUMNS_PUT = ADD_TAB_UID ADD_TAB_NAME ADD_TAB_CLASS_NAME ADD_TAB_DESCRIPTION ADD_TAB_SDW_LOG_INSERT ADD_TAB_SDW_LOG_UPDATE ADD_TAB_SDW_LOG_DELETE ADD_TAB_SDW_LOG_SELECT ADD_TAB_SDW_MAX_LENGTH ADD_TAB_SDW_AUTO_DELETE ADD_TAB_PLG_UID DBS_UID PRO_UID ADD_TAB_TYPE ADD_TAB_GRID ADD_TAB_TAG
+
+;Rest Api for table FIELDS with (15) columns.
+[FIELDS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = FLD_UID ADD_TAB_UID FLD_INDEX FLD_NAME FLD_DESCRIPTION FLD_TYPE FLD_SIZE FLD_NULL FLD_AUTO_INCREMENT FLD_KEY FLD_FOREIGN_KEY FLD_FOREIGN_KEY_TABLE FLD_DYN_NAME FLD_DYN_UID FLD_FILTER
+ EXPOSE_COLUMNS_PUT = FLD_UID ADD_TAB_UID FLD_INDEX FLD_NAME FLD_DESCRIPTION FLD_TYPE FLD_SIZE FLD_NULL FLD_AUTO_INCREMENT FLD_KEY FLD_FOREIGN_KEY FLD_FOREIGN_KEY_TABLE FLD_DYN_NAME FLD_DYN_UID FLD_FILTER
+
+;Rest Api for table SHADOW_TABLE with (7) columns.
+[SHADOW_TABLE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = SHD_UID ADD_TAB_UID SHD_ACTION SHD_DETAILS USR_UID APP_UID SHD_DATE
+ EXPOSE_COLUMNS_PUT = SHD_UID ADD_TAB_UID SHD_ACTION SHD_DETAILS USR_UID APP_UID SHD_DATE
+
+;Rest Api for table EVENT with (20) columns.
+[EVENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = EVN_UID PRO_UID EVN_STATUS EVN_WHEN_OCCURS EVN_RELATED_TO TAS_UID EVN_TAS_UID_FROM EVN_TAS_UID_TO EVN_TAS_ESTIMATED_DURATION EVN_TIME_UNIT EVN_WHEN EVN_MAX_ATTEMPTS EVN_ACTION EVN_CONDITIONS EVN_ACTION_PARAMETERS TRI_UID EVN_POSX EVN_POSY EVN_TYPE TAS_EVN_UID
+ EXPOSE_COLUMNS_PUT = EVN_UID PRO_UID EVN_STATUS EVN_WHEN_OCCURS EVN_RELATED_TO TAS_UID EVN_TAS_UID_FROM EVN_TAS_UID_TO EVN_TAS_ESTIMATED_DURATION EVN_TIME_UNIT EVN_WHEN EVN_MAX_ATTEMPTS EVN_ACTION EVN_CONDITIONS EVN_ACTION_PARAMETERS TRI_UID EVN_POSX EVN_POSY EVN_TYPE TAS_EVN_UID
+
+;Rest Api for table GATEWAY with (7) columns.
+[GATEWAY]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = GAT_UID PRO_UID TAS_UID GAT_NEXT_TASK GAT_X GAT_Y GAT_TYPE
+ EXPOSE_COLUMNS_PUT = GAT_UID PRO_UID TAS_UID GAT_NEXT_TASK GAT_X GAT_Y GAT_TYPE
+
+;Rest Api for table APP_EVENT with (7) columns.
+[APP_EVENT]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX EVN_UID APP_EVN_ACTION_DATE APP_EVN_ATTEMPTS APP_EVN_LAST_EXECUTION_DATE APP_EVN_STATUS
+ EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX EVN_UID APP_EVN_ACTION_DATE APP_EVN_ATTEMPTS APP_EVN_LAST_EXECUTION_DATE APP_EVN_STATUS
+
+;Rest Api for table APP_CACHE_VIEW with (30) columns.
+[APP_CACHE_VIEW]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX APP_NUMBER APP_STATUS USR_UID PREVIOUS_USR_UID TAS_UID PRO_UID DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_THREAD_STATUS APP_THREAD_STATUS APP_TITLE APP_PRO_TITLE APP_TAS_TITLE APP_CURRENT_USER APP_DEL_PREVIOUS_USER DEL_PRIORITY DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED APP_CREATE_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_OVERDUE_PERCENTAGE
+ EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX APP_NUMBER APP_STATUS USR_UID PREVIOUS_USR_UID TAS_UID PRO_UID DEL_DELEGATE_DATE DEL_INIT_DATE DEL_TASK_DUE_DATE DEL_FINISH_DATE DEL_THREAD_STATUS APP_THREAD_STATUS APP_TITLE APP_PRO_TITLE APP_TAS_TITLE APP_CURRENT_USER APP_DEL_PREVIOUS_USER DEL_PRIORITY DEL_DURATION DEL_QUEUE_DURATION DEL_DELAY_DURATION DEL_STARTED DEL_FINISHED DEL_DELAYED APP_CREATE_DATE APP_FINISH_DATE APP_UPDATE_DATE APP_OVERDUE_PERCENTAGE
+
+;Rest Api for table DIM_TIME_DELEGATE with (8) columns.
+[DIM_TIME_DELEGATE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
+ EXPOSE_COLUMNS_PUT = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
+
+;Rest Api for table DIM_TIME_COMPLETE with (8) columns.
+[DIM_TIME_COMPLETE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
+ EXPOSE_COLUMNS_PUT = TIME_ID MONTH_ID QTR_ID YEAR_ID MONTH_NAME MONTH_DESC QTR_NAME QTR_DESC
+
+;Rest Api for table APP_HISTORY with (9) columns.
+[APP_HISTORY]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID DEL_INDEX PRO_UID TAS_UID DYN_UID USR_UID APP_STATUS HISTORY_DATE HISTORY_DATA
+ EXPOSE_COLUMNS_PUT = APP_UID DEL_INDEX PRO_UID TAS_UID DYN_UID USR_UID APP_STATUS HISTORY_DATE HISTORY_DATA
+
+;Rest Api for table APP_FOLDER with (5) columns.
+[APP_FOLDER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = FOLDER_UID FOLDER_PARENT_UID FOLDER_NAME FOLDER_CREATE_DATE FOLDER_UPDATE_DATE
+ EXPOSE_COLUMNS_PUT = FOLDER_UID FOLDER_PARENT_UID FOLDER_NAME FOLDER_CREATE_DATE FOLDER_UPDATE_DATE
+
+;Rest Api for table FIELD_CONDITION with (8) columns.
+[FIELD_CONDITION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = FCD_UID FCD_FUNCTION FCD_FIELDS FCD_CONDITION FCD_EVENTS FCD_EVENT_OWNERS FCD_STATUS FCD_DYN_UID
+ EXPOSE_COLUMNS_PUT = FCD_UID FCD_FUNCTION FCD_FIELDS FCD_CONDITION FCD_EVENTS FCD_EVENT_OWNERS FCD_STATUS FCD_DYN_UID
+
+;Rest Api for table LOG_CASES_SCHEDULER with (10) columns.
+[LOG_CASES_SCHEDULER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = LOG_CASE_UID PRO_UID TAS_UID USR_NAME EXEC_DATE EXEC_HOUR RESULT SCH_UID WS_CREATE_CASE_STATUS WS_ROUTE_CASE_STATUS
+ EXPOSE_COLUMNS_PUT = LOG_CASE_UID PRO_UID TAS_UID USR_NAME EXEC_DATE EXEC_HOUR RESULT SCH_UID WS_CREATE_CASE_STATUS WS_ROUTE_CASE_STATUS
+
+;Rest Api for table CASE_SCHEDULER with (25) columns.
+[CASE_SCHEDULER]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = SCH_UID SCH_DEL_USER_NAME SCH_DEL_USER_PASS SCH_DEL_USER_UID SCH_NAME PRO_UID TAS_UID SCH_TIME_NEXT_RUN SCH_LAST_RUN_TIME SCH_STATE SCH_LAST_STATE USR_UID SCH_OPTION SCH_START_TIME SCH_START_DATE SCH_DAYS_PERFORM_TASK SCH_EVERY_DAYS SCH_WEEK_DAYS SCH_START_DAY SCH_MONTHS SCH_END_DATE SCH_REPEAT_EVERY SCH_REPEAT_UNTIL SCH_REPEAT_STOP_IF_RUNNING CASE_SH_PLUGIN_UID
+ EXPOSE_COLUMNS_PUT = SCH_UID SCH_DEL_USER_NAME SCH_DEL_USER_PASS SCH_DEL_USER_UID SCH_NAME PRO_UID TAS_UID SCH_TIME_NEXT_RUN SCH_LAST_RUN_TIME SCH_STATE SCH_LAST_STATE USR_UID SCH_OPTION SCH_START_TIME SCH_START_DATE SCH_DAYS_PERFORM_TASK SCH_EVERY_DAYS SCH_WEEK_DAYS SCH_START_DAY SCH_MONTHS SCH_END_DATE SCH_REPEAT_EVERY SCH_REPEAT_UNTIL SCH_REPEAT_STOP_IF_RUNNING CASE_SH_PLUGIN_UID
+
+;Rest Api for table CALENDAR_DEFINITION with (7) columns.
+[CALENDAR_DEFINITION]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CALENDAR_UID CALENDAR_NAME CALENDAR_CREATE_DATE CALENDAR_UPDATE_DATE CALENDAR_WORK_DAYS CALENDAR_DESCRIPTION CALENDAR_STATUS
+ EXPOSE_COLUMNS_PUT = CALENDAR_UID CALENDAR_NAME CALENDAR_CREATE_DATE CALENDAR_UPDATE_DATE CALENDAR_WORK_DAYS CALENDAR_DESCRIPTION CALENDAR_STATUS
+
+;Rest Api for table CALENDAR_BUSINESS_HOURS with (4) columns.
+[CALENDAR_BUSINESS_HOURS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CALENDAR_UID CALENDAR_BUSINESS_DAY CALENDAR_BUSINESS_START CALENDAR_BUSINESS_END
+ EXPOSE_COLUMNS_PUT = CALENDAR_UID CALENDAR_BUSINESS_DAY CALENDAR_BUSINESS_START CALENDAR_BUSINESS_END
+
+;Rest Api for table CALENDAR_HOLIDAYS with (4) columns.
+[CALENDAR_HOLIDAYS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CALENDAR_UID CALENDAR_HOLIDAY_NAME CALENDAR_HOLIDAY_START CALENDAR_HOLIDAY_END
+ EXPOSE_COLUMNS_PUT = CALENDAR_UID CALENDAR_HOLIDAY_NAME CALENDAR_HOLIDAY_START CALENDAR_HOLIDAY_END
+
+;Rest Api for table CALENDAR_ASSIGNMENTS with (3) columns.
+[CALENDAR_ASSIGNMENTS]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = OBJECT_UID CALENDAR_UID OBJECT_TYPE
+ EXPOSE_COLUMNS_PUT = OBJECT_UID CALENDAR_UID OBJECT_TYPE
+
+;Rest Api for table PROCESS_CATEGORY with (4) columns.
+[PROCESS_CATEGORY]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = CATEGORY_UID CATEGORY_PARENT CATEGORY_NAME CATEGORY_ICON
+ EXPOSE_COLUMNS_PUT = CATEGORY_UID CATEGORY_PARENT CATEGORY_NAME CATEGORY_ICON
+
+;Rest Api for table APP_NOTES with (10) columns.
+[APP_NOTES]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID USR_UID NOTE_DATE NOTE_CONTENT NOTE_TYPE NOTE_AVAILABILITY NOTE_ORIGIN_OBJ NOTE_AFFECTED_OBJ1 NOTE_AFFECTED_OBJ2 NOTE_RECIPIENTS
+ EXPOSE_COLUMNS_PUT = APP_UID USR_UID NOTE_DATE NOTE_CONTENT NOTE_TYPE NOTE_AVAILABILITY NOTE_ORIGIN_OBJ NOTE_AFFECTED_OBJ1 NOTE_AFFECTED_OBJ2 NOTE_RECIPIENTS
+
+;Rest Api for table DASHLET with (8) columns.
+[DASHLET]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = DAS_UID DAS_CLASS DAS_TITLE DAS_DESCRIPTION DAS_VERSION DAS_CREATE_DATE DAS_UPDATE_DATE DAS_STATUS
+ EXPOSE_COLUMNS_PUT = DAS_UID DAS_CLASS DAS_TITLE DAS_DESCRIPTION DAS_VERSION DAS_CREATE_DATE DAS_UPDATE_DATE DAS_STATUS
+
+;Rest Api for table DASHLET_INSTANCE with (8) columns.
+[DASHLET_INSTANCE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = DAS_INS_UID DAS_UID DAS_INS_OWNER_TYPE DAS_INS_OWNER_UID DAS_INS_ADDITIONAL_PROPERTIES DAS_INS_CREATE_DATE DAS_INS_UPDATE_DATE DAS_INS_STATUS
+ EXPOSE_COLUMNS_PUT = DAS_INS_UID DAS_UID DAS_INS_OWNER_TYPE DAS_INS_OWNER_UID DAS_INS_ADDITIONAL_PROPERTIES DAS_INS_CREATE_DATE DAS_INS_UPDATE_DATE DAS_INS_STATUS
+
+;Rest Api for table APP_SOLR_QUEUE with (2) columns.
+[APP_SOLR_QUEUE]
+ ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE
+ ALLOW_METHODS = GET
+ ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns
+ EXPOSE_COLUMNS_GET = *
+ EXPOSE_COLUMNS_POST = APP_UID APP_UPDATED
+ EXPOSE_COLUMNS_PUT = APP_UID APP_UPDATED
+
diff --git a/workflow/engine/lib/Service/Rest/RestTool.php b/workflow/engine/lib/Service/Rest/RestTool.php
index 9a5b391b1..e86d9843b 100644
--- a/workflow/engine/lib/Service/Rest/RestTool.php
+++ b/workflow/engine/lib/Service/Rest/RestTool.php
@@ -38,7 +38,7 @@ class Service_Rest_RestTool
$this->dbInfo[$table['@name']]['pKeys'] = array();
$this->dbInfo[$table['@name']]['columns'] = array();
$this->dbInfo[$table['@name']]['required_columns'] = array();
-
+
foreach ($table['column'] as $column) {
$this->dbInfo[$table['@name']]['columns'][] = $column['@name'];
@@ -58,14 +58,23 @@ class Service_Rest_RestTool
$this->loadDbXmlSchema();
$this->configFile = empty($filename) ? PATH_CONFIG . $this->configFile : $filename;
- $configIniStr = '';
+ $configIniStr = "; -= ProcessMaker RestFul services configuration =-\n";
+ $configIniStr .= "\n";
+ $configIniStr .= "; On this configuration you file can customize all crud rest api.\n";
+ $configIniStr .= "; With what methods (GET,POST,PUT,DELETE) you need that PM serve.\n";
+ $configIniStr .= "; And for each table/method what columns you can expose.\n";
+ $configIniStr .= "\n";
foreach ($this->dbInfo as $table => $columns) {
+ $strColumns = implode(' ', $columns['columns']);
+ $configIniStr .= ";Rest Api for table $table with (".count($columns['columns']).") columns.\n";
$configIniStr .= "[$table]\n";
- $configIniStr .= " ALLOW_METHODS = GET POST PUT DELETE\n";
+ $configIniStr .= " ; Param to set the allowed methods (separeted by a single space), complete sample: ALLOW_METHODS = GET POST PUT DELETE\n";
+ $configIniStr .= " ALLOW_METHODS = GET\n";
+ $configIniStr .= " ; Params to set what columns should be exposed, you can use wildcard '*' to speccify all columns \n";
$configIniStr .= " EXPOSE_COLUMNS_GET = *\n";
- $configIniStr .= " EXPOSE_COLUMNS_POST = ".implode(' ', $columns) . "\n";
- $configIniStr .= " EXPOSE_COLUMNS_PUT = ".implode(' ', $columns) . "\n";
+ $configIniStr .= " EXPOSE_COLUMNS_POST = ".$strColumns."\n";
+ $configIniStr .= " EXPOSE_COLUMNS_PUT = ".$strColumns."\n";
$configIniStr .= "\n";
}
@@ -97,7 +106,7 @@ class Service_Rest_RestTool
)
));
-
+
foreach ($this->config as $table => $conf) {
$classname = self::camelize($table, 'class');
$allowedMethods = explode(' ', $conf['ALLOW_METHODS']);
@@ -105,6 +114,11 @@ class Service_Rest_RestTool
//$allowedMethods = array('DELETE');
foreach ($allowedMethods as $method) {
+ // validation for a valid method
+ if (! in_array($method, array('GET', 'POST', 'PUT', 'DELETE'))) {
+ throw new Exception("Invalid method '$method'.");
+ }
+
$method = strtoupper($method);
$exposedColumns = array();
$params = array();
@@ -118,6 +132,15 @@ class Service_Rest_RestTool
} else {
$exposedColumns = explode(' ', $conf['EXPOSE_COLUMNS_'.$method]);
+ // validation for valid columns
+ $tableColumns = $this->dbInfo[$table]['columns'];
+
+ foreach ($exposedColumns as $column) {
+ if (! in_array($column, $tableColumns)) {
+ throw new Exception("Invalid column '$column' for table $table, it does not exist!.");
+ }
+ }
+
// validate that all required columns are in exposed columns array
if ($method == 'POST') {
// intersect required columns with exposed columns
@@ -152,7 +175,7 @@ class Service_Rest_RestTool
case 'PUT':
foreach ($exposedColumns as $i => $column) {
$paramsStr[$i] = "\$".self::camelize($column);
-
+
if (! in_array($column, $this->dbInfo[$table]['pKeys'])) {
$params[$i] = self::camelize($column);
}
@@ -168,14 +191,14 @@ class Service_Rest_RestTool
}
$paramsStr = implode(', ', $paramsStr);
- // formatting primary keys for template
+ // formatting primary keys for template
foreach ($this->dbInfo[$table]['pKeys'] as $i => $pk) {
$primaryKeys[$i] = "\$".self::camelize($pk);
}
$primaryKeys = implode(', ', $primaryKeys);
$methods .= Haanga::Load(
- 'method'.self::camelize($method, 'class').'.tpl',
+ 'method'.self::camelize($method, 'class').'.tpl',
array(
'params' => $params,
'paramsStr' => $paramsStr,
diff --git a/workflow/engine/services/rest/crud/AdditionalTables.php b/workflow/engine/services/rest/crud/AdditionalTables.php
index de69c6979..01572741c 100644
--- a/workflow/engine/services/rest/crud/AdditionalTables.php
+++ b/workflow/engine/services/rest/crud/AdditionalTables.php
@@ -51,105 +51,5 @@ class Services_Rest_AdditionalTables
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $addTabUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($addTabUid, $addTabName, $addTabClassName, $addTabDescription, $addTabSdwLogInsert, $addTabSdwLogUpdate, $addTabSdwLogDelete, $addTabSdwLogSelect, $addTabSdwMaxLength, $addTabSdwAutoDelete, $addTabPlgUid, $dbsUid, $proUid, $addTabType, $addTabGrid, $addTabTag)
- {
- try {
- $result = array();
- $obj = new AdditionalTables();
-
- $obj->setAddTabUid($addTabUid);
- $obj->setAddTabName($addTabName);
- $obj->setAddTabClassName($addTabClassName);
- $obj->setAddTabDescription($addTabDescription);
- $obj->setAddTabSdwLogInsert($addTabSdwLogInsert);
- $obj->setAddTabSdwLogUpdate($addTabSdwLogUpdate);
- $obj->setAddTabSdwLogDelete($addTabSdwLogDelete);
- $obj->setAddTabSdwLogSelect($addTabSdwLogSelect);
- $obj->setAddTabSdwMaxLength($addTabSdwMaxLength);
- $obj->setAddTabSdwAutoDelete($addTabSdwAutoDelete);
- $obj->setAddTabPlgUid($addTabPlgUid);
- $obj->setDbsUid($dbsUid);
- $obj->setProUid($proUid);
- $obj->setAddTabType($addTabType);
- $obj->setAddTabGrid($addTabGrid);
- $obj->setAddTabTag($addTabTag);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $addTabUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($addTabUid, $addTabName, $addTabClassName, $addTabDescription, $addTabSdwLogInsert, $addTabSdwLogUpdate, $addTabSdwLogDelete, $addTabSdwLogSelect, $addTabSdwMaxLength, $addTabSdwAutoDelete, $addTabPlgUid, $dbsUid, $proUid, $addTabType, $addTabGrid, $addTabTag)
- {
- try {
- $obj = AdditionalTablesPeer::retrieveByPK($addTabUid);
-
- $obj->setAddTabName($addTabName);
- $obj->setAddTabClassName($addTabClassName);
- $obj->setAddTabDescription($addTabDescription);
- $obj->setAddTabSdwLogInsert($addTabSdwLogInsert);
- $obj->setAddTabSdwLogUpdate($addTabSdwLogUpdate);
- $obj->setAddTabSdwLogDelete($addTabSdwLogDelete);
- $obj->setAddTabSdwLogSelect($addTabSdwLogSelect);
- $obj->setAddTabSdwMaxLength($addTabSdwMaxLength);
- $obj->setAddTabSdwAutoDelete($addTabSdwAutoDelete);
- $obj->setAddTabPlgUid($addTabPlgUid);
- $obj->setDbsUid($dbsUid);
- $obj->setProUid($proUid);
- $obj->setAddTabType($addTabType);
- $obj->setAddTabGrid($addTabGrid);
- $obj->setAddTabTag($addTabTag);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $addTabUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($addTabUid)
- {
- $conn = Propel::getConnection(AdditionalTablesPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AdditionalTablesPeer::retrieveByPK($addTabUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppCacheView.php b/workflow/engine/services/rest/crud/AppCacheView.php
index 6149152fa..fccd2425c 100644
--- a/workflow/engine/services/rest/crud/AppCacheView.php
+++ b/workflow/engine/services/rest/crud/AppCacheView.php
@@ -65,132 +65,5 @@ class Services_Rest_AppCacheView
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid, $delIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $delIndex, $appNumber, $appStatus, $usrUid, $previousUsrUid, $tasUid, $proUid, $delDelegateDate, $delInitDate, $delTaskDueDate, $delFinishDate, $delThreadStatus, $appThreadStatus, $appTitle, $appProTitle, $appTasTitle, $appCurrentUser, $appDelPreviousUser, $delPriority, $delDuration, $delQueueDuration, $delDelayDuration, $delStarted, $delFinished, $delDelayed, $appCreateDate, $appFinishDate, $appUpdateDate, $appOverduePercentage)
- {
- try {
- $result = array();
- $obj = new AppCacheView();
-
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setAppNumber($appNumber);
- $obj->setAppStatus($appStatus);
- $obj->setUsrUid($usrUid);
- $obj->setPreviousUsrUid($previousUsrUid);
- $obj->setTasUid($tasUid);
- $obj->setProUid($proUid);
- $obj->setDelDelegateDate($delDelegateDate);
- $obj->setDelInitDate($delInitDate);
- $obj->setDelTaskDueDate($delTaskDueDate);
- $obj->setDelFinishDate($delFinishDate);
- $obj->setDelThreadStatus($delThreadStatus);
- $obj->setAppThreadStatus($appThreadStatus);
- $obj->setAppTitle($appTitle);
- $obj->setAppProTitle($appProTitle);
- $obj->setAppTasTitle($appTasTitle);
- $obj->setAppCurrentUser($appCurrentUser);
- $obj->setAppDelPreviousUser($appDelPreviousUser);
- $obj->setDelPriority($delPriority);
- $obj->setDelDuration($delDuration);
- $obj->setDelQueueDuration($delQueueDuration);
- $obj->setDelDelayDuration($delDelayDuration);
- $obj->setDelStarted($delStarted);
- $obj->setDelFinished($delFinished);
- $obj->setDelDelayed($delDelayed);
- $obj->setAppCreateDate($appCreateDate);
- $obj->setAppFinishDate($appFinishDate);
- $obj->setAppUpdateDate($appUpdateDate);
- $obj->setAppOverduePercentage($appOverduePercentage);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid, $delIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $delIndex, $appNumber, $appStatus, $usrUid, $previousUsrUid, $tasUid, $proUid, $delDelegateDate, $delInitDate, $delTaskDueDate, $delFinishDate, $delThreadStatus, $appThreadStatus, $appTitle, $appProTitle, $appTasTitle, $appCurrentUser, $appDelPreviousUser, $delPriority, $delDuration, $delQueueDuration, $delDelayDuration, $delStarted, $delFinished, $delDelayed, $appCreateDate, $appFinishDate, $appUpdateDate, $appOverduePercentage)
- {
- try {
- $obj = AppCacheViewPeer::retrieveByPK($appUid, $delIndex);
-
- $obj->setAppNumber($appNumber);
- $obj->setAppStatus($appStatus);
- $obj->setUsrUid($usrUid);
- $obj->setPreviousUsrUid($previousUsrUid);
- $obj->setTasUid($tasUid);
- $obj->setProUid($proUid);
- $obj->setDelDelegateDate($delDelegateDate);
- $obj->setDelInitDate($delInitDate);
- $obj->setDelTaskDueDate($delTaskDueDate);
- $obj->setDelFinishDate($delFinishDate);
- $obj->setDelThreadStatus($delThreadStatus);
- $obj->setAppThreadStatus($appThreadStatus);
- $obj->setAppTitle($appTitle);
- $obj->setAppProTitle($appProTitle);
- $obj->setAppTasTitle($appTasTitle);
- $obj->setAppCurrentUser($appCurrentUser);
- $obj->setAppDelPreviousUser($appDelPreviousUser);
- $obj->setDelPriority($delPriority);
- $obj->setDelDuration($delDuration);
- $obj->setDelQueueDuration($delQueueDuration);
- $obj->setDelDelayDuration($delDelayDuration);
- $obj->setDelStarted($delStarted);
- $obj->setDelFinished($delFinished);
- $obj->setDelDelayed($delDelayed);
- $obj->setAppCreateDate($appCreateDate);
- $obj->setAppFinishDate($appFinishDate);
- $obj->setAppUpdateDate($appUpdateDate);
- $obj->setAppOverduePercentage($appOverduePercentage);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid, $delIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid, $delIndex)
- {
- $conn = Propel::getConnection(AppCacheViewPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppCacheViewPeer::retrieveByPK($appUid, $delIndex);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppDelay.php b/workflow/engine/services/rest/crud/AppDelay.php
index 6923750cf..881e5aa0e 100644
--- a/workflow/engine/services/rest/crud/AppDelay.php
+++ b/workflow/engine/services/rest/crud/AppDelay.php
@@ -49,101 +49,5 @@ class Services_Rest_AppDelay
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appDelayUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appDelayUid, $proUid, $appUid, $appThreadIndex, $appDelIndex, $appType, $appStatus, $appNextTask, $appDelegationUser, $appEnableActionUser, $appEnableActionDate, $appDisableActionUser, $appDisableActionDate, $appAutomaticDisabledDate)
- {
- try {
- $result = array();
- $obj = new AppDelay();
-
- $obj->setAppDelayUid($appDelayUid);
- $obj->setProUid($proUid);
- $obj->setAppUid($appUid);
- $obj->setAppThreadIndex($appThreadIndex);
- $obj->setAppDelIndex($appDelIndex);
- $obj->setAppType($appType);
- $obj->setAppStatus($appStatus);
- $obj->setAppNextTask($appNextTask);
- $obj->setAppDelegationUser($appDelegationUser);
- $obj->setAppEnableActionUser($appEnableActionUser);
- $obj->setAppEnableActionDate($appEnableActionDate);
- $obj->setAppDisableActionUser($appDisableActionUser);
- $obj->setAppDisableActionDate($appDisableActionDate);
- $obj->setAppAutomaticDisabledDate($appAutomaticDisabledDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appDelayUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appDelayUid, $proUid, $appUid, $appThreadIndex, $appDelIndex, $appType, $appStatus, $appNextTask, $appDelegationUser, $appEnableActionUser, $appEnableActionDate, $appDisableActionUser, $appDisableActionDate, $appAutomaticDisabledDate)
- {
- try {
- $obj = AppDelayPeer::retrieveByPK($appDelayUid);
-
- $obj->setProUid($proUid);
- $obj->setAppUid($appUid);
- $obj->setAppThreadIndex($appThreadIndex);
- $obj->setAppDelIndex($appDelIndex);
- $obj->setAppType($appType);
- $obj->setAppStatus($appStatus);
- $obj->setAppNextTask($appNextTask);
- $obj->setAppDelegationUser($appDelegationUser);
- $obj->setAppEnableActionUser($appEnableActionUser);
- $obj->setAppEnableActionDate($appEnableActionDate);
- $obj->setAppDisableActionUser($appDisableActionUser);
- $obj->setAppDisableActionDate($appDisableActionDate);
- $obj->setAppAutomaticDisabledDate($appAutomaticDisabledDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appDelayUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appDelayUid)
- {
- $conn = Propel::getConnection(AppDelayPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppDelayPeer::retrieveByPK($appDelayUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppDelegation.php b/workflow/engine/services/rest/crud/AppDelegation.php
index 9cc0bc6d5..17e4b7c10 100644
--- a/workflow/engine/services/rest/crud/AppDelegation.php
+++ b/workflow/engine/services/rest/crud/AppDelegation.php
@@ -57,116 +57,5 @@ class Services_Rest_AppDelegation
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid, $delIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $delIndex, $delPrevious, $proUid, $tasUid, $usrUid, $delType, $delThread, $delThreadStatus, $delPriority, $delDelegateDate, $delInitDate, $delTaskDueDate, $delFinishDate, $delDuration, $delQueueDuration, $delDelayDuration, $delStarted, $delFinished, $delDelayed, $delData, $appOverduePercentage)
- {
- try {
- $result = array();
- $obj = new AppDelegation();
-
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setDelPrevious($delPrevious);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setUsrUid($usrUid);
- $obj->setDelType($delType);
- $obj->setDelThread($delThread);
- $obj->setDelThreadStatus($delThreadStatus);
- $obj->setDelPriority($delPriority);
- $obj->setDelDelegateDate($delDelegateDate);
- $obj->setDelInitDate($delInitDate);
- $obj->setDelTaskDueDate($delTaskDueDate);
- $obj->setDelFinishDate($delFinishDate);
- $obj->setDelDuration($delDuration);
- $obj->setDelQueueDuration($delQueueDuration);
- $obj->setDelDelayDuration($delDelayDuration);
- $obj->setDelStarted($delStarted);
- $obj->setDelFinished($delFinished);
- $obj->setDelDelayed($delDelayed);
- $obj->setDelData($delData);
- $obj->setAppOverduePercentage($appOverduePercentage);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid, $delIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $delIndex, $delPrevious, $proUid, $tasUid, $usrUid, $delType, $delThread, $delThreadStatus, $delPriority, $delDelegateDate, $delInitDate, $delTaskDueDate, $delFinishDate, $delDuration, $delQueueDuration, $delDelayDuration, $delStarted, $delFinished, $delDelayed, $delData, $appOverduePercentage)
- {
- try {
- $obj = AppDelegationPeer::retrieveByPK($appUid, $delIndex);
-
- $obj->setDelPrevious($delPrevious);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setUsrUid($usrUid);
- $obj->setDelType($delType);
- $obj->setDelThread($delThread);
- $obj->setDelThreadStatus($delThreadStatus);
- $obj->setDelPriority($delPriority);
- $obj->setDelDelegateDate($delDelegateDate);
- $obj->setDelInitDate($delInitDate);
- $obj->setDelTaskDueDate($delTaskDueDate);
- $obj->setDelFinishDate($delFinishDate);
- $obj->setDelDuration($delDuration);
- $obj->setDelQueueDuration($delQueueDuration);
- $obj->setDelDelayDuration($delDelayDuration);
- $obj->setDelStarted($delStarted);
- $obj->setDelFinished($delFinished);
- $obj->setDelDelayed($delDelayed);
- $obj->setDelData($delData);
- $obj->setAppOverduePercentage($appOverduePercentage);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid, $delIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid, $delIndex)
- {
- $conn = Propel::getConnection(AppDelegationPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppDelegationPeer::retrieveByPK($appUid, $delIndex);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppDocument.php b/workflow/engine/services/rest/crud/AppDocument.php
index 957e9e556..1711f7db1 100644
--- a/workflow/engine/services/rest/crud/AppDocument.php
+++ b/workflow/engine/services/rest/crud/AppDocument.php
@@ -49,100 +49,5 @@ class Services_Rest_AppDocument
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appDocUid, $docVersion Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appDocUid, $docVersion, $appUid, $delIndex, $docUid, $usrUid, $appDocType, $appDocCreateDate, $appDocIndex, $folderUid, $appDocPlugin, $appDocTags, $appDocStatus, $appDocStatusDate)
- {
- try {
- $result = array();
- $obj = new AppDocument();
-
- $obj->setAppDocUid($appDocUid);
- $obj->setDocVersion($docVersion);
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setDocUid($docUid);
- $obj->setUsrUid($usrUid);
- $obj->setAppDocType($appDocType);
- $obj->setAppDocCreateDate($appDocCreateDate);
- $obj->setAppDocIndex($appDocIndex);
- $obj->setFolderUid($folderUid);
- $obj->setAppDocPlugin($appDocPlugin);
- $obj->setAppDocTags($appDocTags);
- $obj->setAppDocStatus($appDocStatus);
- $obj->setAppDocStatusDate($appDocStatusDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appDocUid, $docVersion Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appDocUid, $docVersion, $appUid, $delIndex, $docUid, $usrUid, $appDocType, $appDocCreateDate, $appDocIndex, $folderUid, $appDocPlugin, $appDocTags, $appDocStatus, $appDocStatusDate)
- {
- try {
- $obj = AppDocumentPeer::retrieveByPK($appDocUid, $docVersion);
-
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setDocUid($docUid);
- $obj->setUsrUid($usrUid);
- $obj->setAppDocType($appDocType);
- $obj->setAppDocCreateDate($appDocCreateDate);
- $obj->setAppDocIndex($appDocIndex);
- $obj->setFolderUid($folderUid);
- $obj->setAppDocPlugin($appDocPlugin);
- $obj->setAppDocTags($appDocTags);
- $obj->setAppDocStatus($appDocStatus);
- $obj->setAppDocStatusDate($appDocStatusDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appDocUid, $docVersion Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appDocUid, $docVersion)
- {
- $conn = Propel::getConnection(AppDocumentPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppDocumentPeer::retrieveByPK($appDocUid, $docVersion);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppEvent.php b/workflow/engine/services/rest/crud/AppEvent.php
index a7465cd01..9c359ddc4 100644
--- a/workflow/engine/services/rest/crud/AppEvent.php
+++ b/workflow/engine/services/rest/crud/AppEvent.php
@@ -42,85 +42,5 @@ class Services_Rest_AppEvent
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid, $delIndex, $evnUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $delIndex, $evnUid, $appEvnActionDate, $appEvnAttempts, $appEvnLastExecutionDate, $appEvnStatus)
- {
- try {
- $result = array();
- $obj = new AppEvent();
-
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setEvnUid($evnUid);
- $obj->setAppEvnActionDate($appEvnActionDate);
- $obj->setAppEvnAttempts($appEvnAttempts);
- $obj->setAppEvnLastExecutionDate($appEvnLastExecutionDate);
- $obj->setAppEvnStatus($appEvnStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid, $delIndex, $evnUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $delIndex, $evnUid, $appEvnActionDate, $appEvnAttempts, $appEvnLastExecutionDate, $appEvnStatus)
- {
- try {
- $obj = AppEventPeer::retrieveByPK($appUid, $delIndex, $evnUid);
-
- $obj->setAppEvnActionDate($appEvnActionDate);
- $obj->setAppEvnAttempts($appEvnAttempts);
- $obj->setAppEvnLastExecutionDate($appEvnLastExecutionDate);
- $obj->setAppEvnStatus($appEvnStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid, $delIndex, $evnUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid, $delIndex, $evnUid)
- {
- $conn = Propel::getConnection(AppEventPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppEventPeer::retrieveByPK($appUid, $delIndex, $evnUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppFolder.php b/workflow/engine/services/rest/crud/AppFolder.php
index 9fcc08d58..f512758f2 100644
--- a/workflow/engine/services/rest/crud/AppFolder.php
+++ b/workflow/engine/services/rest/crud/AppFolder.php
@@ -40,83 +40,5 @@ class Services_Rest_AppFolder
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $folderUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($folderUid, $folderParentUid, $folderName, $folderCreateDate, $folderUpdateDate)
- {
- try {
- $result = array();
- $obj = new AppFolder();
-
- $obj->setFolderUid($folderUid);
- $obj->setFolderParentUid($folderParentUid);
- $obj->setFolderName($folderName);
- $obj->setFolderCreateDate($folderCreateDate);
- $obj->setFolderUpdateDate($folderUpdateDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $folderUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($folderUid, $folderParentUid, $folderName, $folderCreateDate, $folderUpdateDate)
- {
- try {
- $obj = AppFolderPeer::retrieveByPK($folderUid);
-
- $obj->setFolderParentUid($folderParentUid);
- $obj->setFolderName($folderName);
- $obj->setFolderCreateDate($folderCreateDate);
- $obj->setFolderUpdateDate($folderUpdateDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $folderUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($folderUid)
- {
- $conn = Propel::getConnection(AppFolderPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppFolderPeer::retrieveByPK($folderUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppHistory.php b/workflow/engine/services/rest/crud/AppHistory.php
index b48d34b01..dcc7866f6 100644
--- a/workflow/engine/services/rest/crud/AppHistory.php
+++ b/workflow/engine/services/rest/crud/AppHistory.php
@@ -44,92 +44,5 @@ class Services_Rest_AppHistory
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $delIndex, $proUid, $tasUid, $dynUid, $usrUid, $appStatus, $historyDate, $historyData)
- {
- try {
- $result = array();
- $obj = new AppHistory();
-
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setDynUid($dynUid);
- $obj->setUsrUid($usrUid);
- $obj->setAppStatus($appStatus);
- $obj->setHistoryDate($historyDate);
- $obj->setHistoryData($historyData);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $delIndex, $proUid, $tasUid, $dynUid, $usrUid, $appStatus, $historyDate, $historyData)
- {
- try {
- $obj = AppHistoryPeer::retrieveByPK();
-
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setDynUid($dynUid);
- $obj->setUsrUid($usrUid);
- $obj->setAppStatus($appStatus);
- $obj->setHistoryDate($historyDate);
- $obj->setHistoryData($historyData);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete()
- {
- $conn = Propel::getConnection(AppHistoryPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppHistoryPeer::retrieveByPK();
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppMessage.php b/workflow/engine/services/rest/crud/AppMessage.php
index 52f49e93f..2e4543640 100644
--- a/workflow/engine/services/rest/crud/AppMessage.php
+++ b/workflow/engine/services/rest/crud/AppMessage.php
@@ -51,105 +51,5 @@ class Services_Rest_AppMessage
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appMsgUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appMsgUid, $msgUid, $appUid, $delIndex, $appMsgType, $appMsgSubject, $appMsgFrom, $appMsgTo, $appMsgBody, $appMsgDate, $appMsgCc, $appMsgBcc, $appMsgTemplate, $appMsgStatus, $appMsgAttach, $appMsgSendDate)
- {
- try {
- $result = array();
- $obj = new AppMessage();
-
- $obj->setAppMsgUid($appMsgUid);
- $obj->setMsgUid($msgUid);
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setAppMsgType($appMsgType);
- $obj->setAppMsgSubject($appMsgSubject);
- $obj->setAppMsgFrom($appMsgFrom);
- $obj->setAppMsgTo($appMsgTo);
- $obj->setAppMsgBody($appMsgBody);
- $obj->setAppMsgDate($appMsgDate);
- $obj->setAppMsgCc($appMsgCc);
- $obj->setAppMsgBcc($appMsgBcc);
- $obj->setAppMsgTemplate($appMsgTemplate);
- $obj->setAppMsgStatus($appMsgStatus);
- $obj->setAppMsgAttach($appMsgAttach);
- $obj->setAppMsgSendDate($appMsgSendDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appMsgUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appMsgUid, $msgUid, $appUid, $delIndex, $appMsgType, $appMsgSubject, $appMsgFrom, $appMsgTo, $appMsgBody, $appMsgDate, $appMsgCc, $appMsgBcc, $appMsgTemplate, $appMsgStatus, $appMsgAttach, $appMsgSendDate)
- {
- try {
- $obj = AppMessagePeer::retrieveByPK($appMsgUid);
-
- $obj->setMsgUid($msgUid);
- $obj->setAppUid($appUid);
- $obj->setDelIndex($delIndex);
- $obj->setAppMsgType($appMsgType);
- $obj->setAppMsgSubject($appMsgSubject);
- $obj->setAppMsgFrom($appMsgFrom);
- $obj->setAppMsgTo($appMsgTo);
- $obj->setAppMsgBody($appMsgBody);
- $obj->setAppMsgDate($appMsgDate);
- $obj->setAppMsgCc($appMsgCc);
- $obj->setAppMsgBcc($appMsgBcc);
- $obj->setAppMsgTemplate($appMsgTemplate);
- $obj->setAppMsgStatus($appMsgStatus);
- $obj->setAppMsgAttach($appMsgAttach);
- $obj->setAppMsgSendDate($appMsgSendDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appMsgUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appMsgUid)
- {
- $conn = Propel::getConnection(AppMessagePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppMessagePeer::retrieveByPK($appMsgUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppNotes.php b/workflow/engine/services/rest/crud/AppNotes.php
index 7c496c2cd..6b74466f2 100644
--- a/workflow/engine/services/rest/crud/AppNotes.php
+++ b/workflow/engine/services/rest/crud/AppNotes.php
@@ -45,94 +45,5 @@ class Services_Rest_AppNotes
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $usrUid, $noteDate, $noteContent, $noteType, $noteAvailability, $noteOriginObj, $noteAffectedObj1, $noteAffectedObj2, $noteRecipients)
- {
- try {
- $result = array();
- $obj = new AppNotes();
-
- $obj->setAppUid($appUid);
- $obj->setUsrUid($usrUid);
- $obj->setNoteDate($noteDate);
- $obj->setNoteContent($noteContent);
- $obj->setNoteType($noteType);
- $obj->setNoteAvailability($noteAvailability);
- $obj->setNoteOriginObj($noteOriginObj);
- $obj->setNoteAffectedObj1($noteAffectedObj1);
- $obj->setNoteAffectedObj2($noteAffectedObj2);
- $obj->setNoteRecipients($noteRecipients);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $usrUid, $noteDate, $noteContent, $noteType, $noteAvailability, $noteOriginObj, $noteAffectedObj1, $noteAffectedObj2, $noteRecipients)
- {
- try {
- $obj = AppNotesPeer::retrieveByPK();
-
- $obj->setAppUid($appUid);
- $obj->setUsrUid($usrUid);
- $obj->setNoteDate($noteDate);
- $obj->setNoteContent($noteContent);
- $obj->setNoteType($noteType);
- $obj->setNoteAvailability($noteAvailability);
- $obj->setNoteOriginObj($noteOriginObj);
- $obj->setNoteAffectedObj1($noteAffectedObj1);
- $obj->setNoteAffectedObj2($noteAffectedObj2);
- $obj->setNoteRecipients($noteRecipients);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete()
- {
- $conn = Propel::getConnection(AppNotesPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppNotesPeer::retrieveByPK();
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppOwner.php b/workflow/engine/services/rest/crud/AppOwner.php
index ed4842a05..e28d14cce 100644
--- a/workflow/engine/services/rest/crud/AppOwner.php
+++ b/workflow/engine/services/rest/crud/AppOwner.php
@@ -38,77 +38,5 @@ class Services_Rest_AppOwner
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid, $ownUid, $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $ownUid, $usrUid)
- {
- try {
- $result = array();
- $obj = new AppOwner();
-
- $obj->setAppUid($appUid);
- $obj->setOwnUid($ownUid);
- $obj->setUsrUid($usrUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid, $ownUid, $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $ownUid, $usrUid)
- {
- try {
- $obj = AppOwnerPeer::retrieveByPK($appUid, $ownUid, $usrUid);
-
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid, $ownUid, $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid, $ownUid, $usrUid)
- {
- $conn = Propel::getConnection(AppOwnerPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppOwnerPeer::retrieveByPK($appUid, $ownUid, $usrUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppSolrQueue.php b/workflow/engine/services/rest/crud/AppSolrQueue.php
index 1ecdbd556..25209f5b2 100644
--- a/workflow/engine/services/rest/crud/AppSolrQueue.php
+++ b/workflow/engine/services/rest/crud/AppSolrQueue.php
@@ -37,77 +37,5 @@ class Services_Rest_AppSolrQueue
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $appUpdated)
- {
- try {
- $result = array();
- $obj = new AppSolrQueue();
-
- $obj->setAppUid($appUid);
- $obj->setAppUpdated($appUpdated);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $appUpdated)
- {
- try {
- $obj = AppSolrQueuePeer::retrieveByPK($appUid);
-
- $obj->setAppUpdated($appUpdated);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid)
- {
- $conn = Propel::getConnection(AppSolrQueuePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppSolrQueuePeer::retrieveByPK($appUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/AppThread.php b/workflow/engine/services/rest/crud/AppThread.php
index 6ee71270f..9fef7877a 100644
--- a/workflow/engine/services/rest/crud/AppThread.php
+++ b/workflow/engine/services/rest/crud/AppThread.php
@@ -40,82 +40,5 @@ class Services_Rest_AppThread
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid, $appThreadIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $appThreadIndex, $appThreadParent, $appThreadStatus, $delIndex)
- {
- try {
- $result = array();
- $obj = new AppThread();
-
- $obj->setAppUid($appUid);
- $obj->setAppThreadIndex($appThreadIndex);
- $obj->setAppThreadParent($appThreadParent);
- $obj->setAppThreadStatus($appThreadStatus);
- $obj->setDelIndex($delIndex);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid, $appThreadIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $appThreadIndex, $appThreadParent, $appThreadStatus, $delIndex)
- {
- try {
- $obj = AppThreadPeer::retrieveByPK($appUid, $appThreadIndex);
-
- $obj->setAppThreadParent($appThreadParent);
- $obj->setAppThreadStatus($appThreadStatus);
- $obj->setDelIndex($delIndex);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid, $appThreadIndex Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid, $appThreadIndex)
- {
- $conn = Propel::getConnection(AppThreadPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = AppThreadPeer::retrieveByPK($appUid, $appThreadIndex);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Application.php b/workflow/engine/services/rest/crud/Application.php
index 23241f8e0..0e67c4d13 100644
--- a/workflow/engine/services/rest/crud/Application.php
+++ b/workflow/engine/services/rest/crud/Application.php
@@ -22,6 +22,17 @@ class Services_Rest_Application
$criteria->addSelectColumn(ApplicationPeer::APP_PARENT);
$criteria->addSelectColumn(ApplicationPeer::APP_STATUS);
$criteria->addSelectColumn(ApplicationPeer::PRO_UID);
+ $criteria->addSelectColumn(ApplicationPeer::APP_PROC_STATUS);
+ $criteria->addSelectColumn(ApplicationPeer::APP_PROC_CODE);
+ $criteria->addSelectColumn(ApplicationPeer::APP_PARALLEL);
+ $criteria->addSelectColumn(ApplicationPeer::APP_INIT_USER);
+ $criteria->addSelectColumn(ApplicationPeer::APP_CUR_USER);
+ $criteria->addSelectColumn(ApplicationPeer::APP_CREATE_DATE);
+ $criteria->addSelectColumn(ApplicationPeer::APP_INIT_DATE);
+ $criteria->addSelectColumn(ApplicationPeer::APP_FINISH_DATE);
+ $criteria->addSelectColumn(ApplicationPeer::APP_UPDATE_DATE);
+ $criteria->addSelectColumn(ApplicationPeer::APP_DATA);
+ $criteria->addSelectColumn(ApplicationPeer::APP_PIN);
$dataset = AppEventPeer::doSelectRS($criteria);
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
@@ -40,105 +51,5 @@ class Services_Rest_Application
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $appNumber, $appParent, $appStatus, $proUid, $appProcStatus, $appProcCode, $appParallel, $appInitUser, $appCurUser, $appCreateDate, $appInitDate, $appFinishDate, $appUpdateDate, $appData, $appPin)
- {
- try {
- $result = array();
- $obj = new Application();
-
- $obj->setAppUid($appUid);
- $obj->setAppNumber($appNumber);
- $obj->setAppParent($appParent);
- $obj->setAppStatus($appStatus);
- $obj->setProUid($proUid);
- $obj->setAppProcStatus($appProcStatus);
- $obj->setAppProcCode($appProcCode);
- $obj->setAppParallel($appParallel);
- $obj->setAppInitUser($appInitUser);
- $obj->setAppCurUser($appCurUser);
- $obj->setAppCreateDate($appCreateDate);
- $obj->setAppInitDate($appInitDate);
- $obj->setAppFinishDate($appFinishDate);
- $obj->setAppUpdateDate($appUpdateDate);
- $obj->setAppData($appData);
- $obj->setAppPin($appPin);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $appNumber, $appParent, $appStatus, $proUid, $appProcStatus, $appProcCode, $appParallel, $appInitUser, $appCurUser, $appCreateDate, $appInitDate, $appFinishDate, $appUpdateDate, $appData, $appPin)
- {
- try {
- $obj = ApplicationPeer::retrieveByPK($appUid);
-
- $obj->setAppNumber($appNumber);
- $obj->setAppParent($appParent);
- $obj->setAppStatus($appStatus);
- $obj->setProUid($proUid);
- $obj->setAppProcStatus($appProcStatus);
- $obj->setAppProcCode($appProcCode);
- $obj->setAppParallel($appParallel);
- $obj->setAppInitUser($appInitUser);
- $obj->setAppCurUser($appCurUser);
- $obj->setAppCreateDate($appCreateDate);
- $obj->setAppInitDate($appInitDate);
- $obj->setAppFinishDate($appFinishDate);
- $obj->setAppUpdateDate($appUpdateDate);
- $obj->setAppData($appData);
- $obj->setAppPin($appPin);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid)
- {
- $conn = Propel::getConnection(ApplicationPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ApplicationPeer::retrieveByPK($appUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CalendarAssignments.php b/workflow/engine/services/rest/crud/CalendarAssignments.php
index 47a34cf9d..acdd586c2 100644
--- a/workflow/engine/services/rest/crud/CalendarAssignments.php
+++ b/workflow/engine/services/rest/crud/CalendarAssignments.php
@@ -38,79 +38,5 @@ class Services_Rest_CalendarAssignments
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $objectUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($objectUid, $calendarUid, $objectType)
- {
- try {
- $result = array();
- $obj = new CalendarAssignments();
-
- $obj->setObjectUid($objectUid);
- $obj->setCalendarUid($calendarUid);
- $obj->setObjectType($objectType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $objectUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($objectUid, $calendarUid, $objectType)
- {
- try {
- $obj = CalendarAssignmentsPeer::retrieveByPK($objectUid);
-
- $obj->setCalendarUid($calendarUid);
- $obj->setObjectType($objectType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $objectUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($objectUid)
- {
- $conn = Propel::getConnection(CalendarAssignmentsPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CalendarAssignmentsPeer::retrieveByPK($objectUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CalendarBusinessHours.php b/workflow/engine/services/rest/crud/CalendarBusinessHours.php
index 757afc060..c742c2971 100644
--- a/workflow/engine/services/rest/crud/CalendarBusinessHours.php
+++ b/workflow/engine/services/rest/crud/CalendarBusinessHours.php
@@ -39,78 +39,5 @@ class Services_Rest_CalendarBusinessHours
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd)
- {
- try {
- $result = array();
- $obj = new CalendarBusinessHours();
-
- $obj->setCalendarUid($calendarUid);
- $obj->setCalendarBusinessDay($calendarBusinessDay);
- $obj->setCalendarBusinessStart($calendarBusinessStart);
- $obj->setCalendarBusinessEnd($calendarBusinessEnd);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd)
- {
- try {
- $obj = CalendarBusinessHoursPeer::retrieveByPK($calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd);
-
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd)
- {
- $conn = Propel::getConnection(CalendarBusinessHoursPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CalendarBusinessHoursPeer::retrieveByPK($calendarUid, $calendarBusinessDay, $calendarBusinessStart, $calendarBusinessEnd);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CalendarDefinition.php b/workflow/engine/services/rest/crud/CalendarDefinition.php
index 7b4ff2d19..658f86eb4 100644
--- a/workflow/engine/services/rest/crud/CalendarDefinition.php
+++ b/workflow/engine/services/rest/crud/CalendarDefinition.php
@@ -42,87 +42,5 @@ class Services_Rest_CalendarDefinition
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $calendarUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($calendarUid, $calendarName, $calendarCreateDate, $calendarUpdateDate, $calendarWorkDays, $calendarDescription, $calendarStatus)
- {
- try {
- $result = array();
- $obj = new CalendarDefinition();
-
- $obj->setCalendarUid($calendarUid);
- $obj->setCalendarName($calendarName);
- $obj->setCalendarCreateDate($calendarCreateDate);
- $obj->setCalendarUpdateDate($calendarUpdateDate);
- $obj->setCalendarWorkDays($calendarWorkDays);
- $obj->setCalendarDescription($calendarDescription);
- $obj->setCalendarStatus($calendarStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $calendarUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($calendarUid, $calendarName, $calendarCreateDate, $calendarUpdateDate, $calendarWorkDays, $calendarDescription, $calendarStatus)
- {
- try {
- $obj = CalendarDefinitionPeer::retrieveByPK($calendarUid);
-
- $obj->setCalendarName($calendarName);
- $obj->setCalendarCreateDate($calendarCreateDate);
- $obj->setCalendarUpdateDate($calendarUpdateDate);
- $obj->setCalendarWorkDays($calendarWorkDays);
- $obj->setCalendarDescription($calendarDescription);
- $obj->setCalendarStatus($calendarStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $calendarUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($calendarUid)
- {
- $conn = Propel::getConnection(CalendarDefinitionPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CalendarDefinitionPeer::retrieveByPK($calendarUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CalendarHolidays.php b/workflow/engine/services/rest/crud/CalendarHolidays.php
index 1a7d56c1a..8ecbc60a2 100644
--- a/workflow/engine/services/rest/crud/CalendarHolidays.php
+++ b/workflow/engine/services/rest/crud/CalendarHolidays.php
@@ -39,80 +39,5 @@ class Services_Rest_CalendarHolidays
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $calendarUid, $calendarHolidayName Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($calendarUid, $calendarHolidayName, $calendarHolidayStart, $calendarHolidayEnd)
- {
- try {
- $result = array();
- $obj = new CalendarHolidays();
-
- $obj->setCalendarUid($calendarUid);
- $obj->setCalendarHolidayName($calendarHolidayName);
- $obj->setCalendarHolidayStart($calendarHolidayStart);
- $obj->setCalendarHolidayEnd($calendarHolidayEnd);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $calendarUid, $calendarHolidayName Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($calendarUid, $calendarHolidayName, $calendarHolidayStart, $calendarHolidayEnd)
- {
- try {
- $obj = CalendarHolidaysPeer::retrieveByPK($calendarUid, $calendarHolidayName);
-
- $obj->setCalendarHolidayStart($calendarHolidayStart);
- $obj->setCalendarHolidayEnd($calendarHolidayEnd);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $calendarUid, $calendarHolidayName Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($calendarUid, $calendarHolidayName)
- {
- $conn = Propel::getConnection(CalendarHolidaysPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CalendarHolidaysPeer::retrieveByPK($calendarUid, $calendarHolidayName);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CaseScheduler.php b/workflow/engine/services/rest/crud/CaseScheduler.php
index b7db053ca..e8e5c660f 100644
--- a/workflow/engine/services/rest/crud/CaseScheduler.php
+++ b/workflow/engine/services/rest/crud/CaseScheduler.php
@@ -60,123 +60,5 @@ class Services_Rest_CaseScheduler
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $schUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($schUid, $schDelUserName, $schDelUserPass, $schDelUserUid, $schName, $proUid, $tasUid, $schTimeNextRun, $schLastRunTime, $schState, $schLastState, $usrUid, $schOption, $schStartTime, $schStartDate, $schDaysPerformTask, $schEveryDays, $schWeekDays, $schStartDay, $schMonths, $schEndDate, $schRepeatEvery, $schRepeatUntil, $schRepeatStopIfRunning, $caseShPluginUid)
- {
- try {
- $result = array();
- $obj = new CaseScheduler();
-
- $obj->setSchUid($schUid);
- $obj->setSchDelUserName($schDelUserName);
- $obj->setSchDelUserPass($schDelUserPass);
- $obj->setSchDelUserUid($schDelUserUid);
- $obj->setSchName($schName);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setSchTimeNextRun($schTimeNextRun);
- $obj->setSchLastRunTime($schLastRunTime);
- $obj->setSchState($schState);
- $obj->setSchLastState($schLastState);
- $obj->setUsrUid($usrUid);
- $obj->setSchOption($schOption);
- $obj->setSchStartTime($schStartTime);
- $obj->setSchStartDate($schStartDate);
- $obj->setSchDaysPerformTask($schDaysPerformTask);
- $obj->setSchEveryDays($schEveryDays);
- $obj->setSchWeekDays($schWeekDays);
- $obj->setSchStartDay($schStartDay);
- $obj->setSchMonths($schMonths);
- $obj->setSchEndDate($schEndDate);
- $obj->setSchRepeatEvery($schRepeatEvery);
- $obj->setSchRepeatUntil($schRepeatUntil);
- $obj->setSchRepeatStopIfRunning($schRepeatStopIfRunning);
- $obj->setCaseShPluginUid($caseShPluginUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $schUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($schUid, $schDelUserName, $schDelUserPass, $schDelUserUid, $schName, $proUid, $tasUid, $schTimeNextRun, $schLastRunTime, $schState, $schLastState, $usrUid, $schOption, $schStartTime, $schStartDate, $schDaysPerformTask, $schEveryDays, $schWeekDays, $schStartDay, $schMonths, $schEndDate, $schRepeatEvery, $schRepeatUntil, $schRepeatStopIfRunning, $caseShPluginUid)
- {
- try {
- $obj = CaseSchedulerPeer::retrieveByPK($schUid);
-
- $obj->setSchDelUserName($schDelUserName);
- $obj->setSchDelUserPass($schDelUserPass);
- $obj->setSchDelUserUid($schDelUserUid);
- $obj->setSchName($schName);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setSchTimeNextRun($schTimeNextRun);
- $obj->setSchLastRunTime($schLastRunTime);
- $obj->setSchState($schState);
- $obj->setSchLastState($schLastState);
- $obj->setUsrUid($usrUid);
- $obj->setSchOption($schOption);
- $obj->setSchStartTime($schStartTime);
- $obj->setSchStartDate($schStartDate);
- $obj->setSchDaysPerformTask($schDaysPerformTask);
- $obj->setSchEveryDays($schEveryDays);
- $obj->setSchWeekDays($schWeekDays);
- $obj->setSchStartDay($schStartDay);
- $obj->setSchMonths($schMonths);
- $obj->setSchEndDate($schEndDate);
- $obj->setSchRepeatEvery($schRepeatEvery);
- $obj->setSchRepeatUntil($schRepeatUntil);
- $obj->setSchRepeatStopIfRunning($schRepeatStopIfRunning);
- $obj->setCaseShPluginUid($caseShPluginUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $schUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($schUid)
- {
- $conn = Propel::getConnection(CaseSchedulerPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CaseSchedulerPeer::retrieveByPK($schUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CaseTracker.php b/workflow/engine/services/rest/crud/CaseTracker.php
index 4fa22eb32..99fd9fa07 100644
--- a/workflow/engine/services/rest/crud/CaseTracker.php
+++ b/workflow/engine/services/rest/crud/CaseTracker.php
@@ -39,81 +39,5 @@ class Services_Rest_CaseTracker
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($proUid, $ctMapType, $ctDerivationHistory, $ctMessageHistory)
- {
- try {
- $result = array();
- $obj = new CaseTracker();
-
- $obj->setProUid($proUid);
- $obj->setCtMapType($ctMapType);
- $obj->setCtDerivationHistory($ctDerivationHistory);
- $obj->setCtMessageHistory($ctMessageHistory);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($proUid, $ctMapType, $ctDerivationHistory, $ctMessageHistory)
- {
- try {
- $obj = CaseTrackerPeer::retrieveByPK($proUid);
-
- $obj->setCtMapType($ctMapType);
- $obj->setCtDerivationHistory($ctDerivationHistory);
- $obj->setCtMessageHistory($ctMessageHistory);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($proUid)
- {
- $conn = Propel::getConnection(CaseTrackerPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CaseTrackerPeer::retrieveByPK($proUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/CaseTrackerObject.php b/workflow/engine/services/rest/crud/CaseTrackerObject.php
index d2a454023..904dbe11f 100644
--- a/workflow/engine/services/rest/crud/CaseTrackerObject.php
+++ b/workflow/engine/services/rest/crud/CaseTrackerObject.php
@@ -41,85 +41,5 @@ class Services_Rest_CaseTrackerObject
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $ctoUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($ctoUid, $proUid, $ctoTypeObj, $ctoUidObj, $ctoCondition, $ctoPosition)
- {
- try {
- $result = array();
- $obj = new CaseTrackerObject();
-
- $obj->setCtoUid($ctoUid);
- $obj->setProUid($proUid);
- $obj->setCtoTypeObj($ctoTypeObj);
- $obj->setCtoUidObj($ctoUidObj);
- $obj->setCtoCondition($ctoCondition);
- $obj->setCtoPosition($ctoPosition);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $ctoUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($ctoUid, $proUid, $ctoTypeObj, $ctoUidObj, $ctoCondition, $ctoPosition)
- {
- try {
- $obj = CaseTrackerObjectPeer::retrieveByPK($ctoUid);
-
- $obj->setProUid($proUid);
- $obj->setCtoTypeObj($ctoTypeObj);
- $obj->setCtoUidObj($ctoUidObj);
- $obj->setCtoCondition($ctoCondition);
- $obj->setCtoPosition($ctoPosition);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $ctoUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($ctoUid)
- {
- $conn = Propel::getConnection(CaseTrackerObjectPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = CaseTrackerObjectPeer::retrieveByPK($ctoUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Configuration.php b/workflow/engine/services/rest/crud/Configuration.php
index bf5b26b90..3b423e84b 100644
--- a/workflow/engine/services/rest/crud/Configuration.php
+++ b/workflow/engine/services/rest/crud/Configuration.php
@@ -41,81 +41,5 @@ class Services_Rest_Configuration
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $cfgUid, $objUid, $proUid, $usrUid, $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($cfgUid, $objUid, $cfgValue, $proUid, $usrUid, $appUid)
- {
- try {
- $result = array();
- $obj = new Configuration();
-
- $obj->setCfgUid($cfgUid);
- $obj->setObjUid($objUid);
- $obj->setCfgValue($cfgValue);
- $obj->setProUid($proUid);
- $obj->setUsrUid($usrUid);
- $obj->setAppUid($appUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $cfgUid, $objUid, $proUid, $usrUid, $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($cfgUid, $objUid, $cfgValue, $proUid, $usrUid, $appUid)
- {
- try {
- $obj = ConfigurationPeer::retrieveByPK($cfgUid, $objUid, $proUid, $usrUid, $appUid);
-
- $obj->setCfgValue($cfgValue);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $cfgUid, $objUid, $proUid, $usrUid, $appUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($cfgUid, $objUid, $proUid, $usrUid, $appUid)
- {
- $conn = Propel::getConnection(ConfigurationPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ConfigurationPeer::retrieveByPK($cfgUid, $objUid, $proUid, $usrUid, $appUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Content.php b/workflow/engine/services/rest/crud/Content.php
index 3d9c0cafe..4df5ed94b 100644
--- a/workflow/engine/services/rest/crud/Content.php
+++ b/workflow/engine/services/rest/crud/Content.php
@@ -40,80 +40,5 @@ class Services_Rest_Content
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $conCategory, $conParent, $conId, $conLang Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($conCategory, $conParent, $conId, $conLang, $conValue)
- {
- try {
- $result = array();
- $obj = new Content();
-
- $obj->setConCategory($conCategory);
- $obj->setConParent($conParent);
- $obj->setConId($conId);
- $obj->setConLang($conLang);
- $obj->setConValue($conValue);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $conCategory, $conParent, $conId, $conLang Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($conCategory, $conParent, $conId, $conLang, $conValue)
- {
- try {
- $obj = ContentPeer::retrieveByPK($conCategory, $conParent, $conId, $conLang);
-
- $obj->setConValue($conValue);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $conCategory, $conParent, $conId, $conLang Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($conCategory, $conParent, $conId, $conLang)
- {
- $conn = Propel::getConnection(ContentPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ContentPeer::retrieveByPK($conCategory, $conParent, $conId, $conLang);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Dashlet.php b/workflow/engine/services/rest/crud/Dashlet.php
index f0afb4148..abb002da9 100644
--- a/workflow/engine/services/rest/crud/Dashlet.php
+++ b/workflow/engine/services/rest/crud/Dashlet.php
@@ -43,89 +43,5 @@ class Services_Rest_Dashlet
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $dasUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($dasUid, $dasClass, $dasTitle, $dasDescription, $dasVersion, $dasCreateDate, $dasUpdateDate, $dasStatus)
- {
- try {
- $result = array();
- $obj = new Dashlet();
-
- $obj->setDasUid($dasUid);
- $obj->setDasClass($dasClass);
- $obj->setDasTitle($dasTitle);
- $obj->setDasDescription($dasDescription);
- $obj->setDasVersion($dasVersion);
- $obj->setDasCreateDate($dasCreateDate);
- $obj->setDasUpdateDate($dasUpdateDate);
- $obj->setDasStatus($dasStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $dasUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($dasUid, $dasClass, $dasTitle, $dasDescription, $dasVersion, $dasCreateDate, $dasUpdateDate, $dasStatus)
- {
- try {
- $obj = DashletPeer::retrieveByPK($dasUid);
-
- $obj->setDasClass($dasClass);
- $obj->setDasTitle($dasTitle);
- $obj->setDasDescription($dasDescription);
- $obj->setDasVersion($dasVersion);
- $obj->setDasCreateDate($dasCreateDate);
- $obj->setDasUpdateDate($dasUpdateDate);
- $obj->setDasStatus($dasStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $dasUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($dasUid)
- {
- $conn = Propel::getConnection(DashletPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DashletPeer::retrieveByPK($dasUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/DashletInstance.php b/workflow/engine/services/rest/crud/DashletInstance.php
index 668f37254..4b90bb942 100644
--- a/workflow/engine/services/rest/crud/DashletInstance.php
+++ b/workflow/engine/services/rest/crud/DashletInstance.php
@@ -43,89 +43,5 @@ class Services_Rest_DashletInstance
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $dasInsUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($dasInsUid, $dasUid, $dasInsOwnerType, $dasInsOwnerUid, $dasInsAdditionalProperties, $dasInsCreateDate, $dasInsUpdateDate, $dasInsStatus)
- {
- try {
- $result = array();
- $obj = new DashletInstance();
-
- $obj->setDasInsUid($dasInsUid);
- $obj->setDasUid($dasUid);
- $obj->setDasInsOwnerType($dasInsOwnerType);
- $obj->setDasInsOwnerUid($dasInsOwnerUid);
- $obj->setDasInsAdditionalProperties($dasInsAdditionalProperties);
- $obj->setDasInsCreateDate($dasInsCreateDate);
- $obj->setDasInsUpdateDate($dasInsUpdateDate);
- $obj->setDasInsStatus($dasInsStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $dasInsUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($dasInsUid, $dasUid, $dasInsOwnerType, $dasInsOwnerUid, $dasInsAdditionalProperties, $dasInsCreateDate, $dasInsUpdateDate, $dasInsStatus)
- {
- try {
- $obj = DashletInstancePeer::retrieveByPK($dasInsUid);
-
- $obj->setDasUid($dasUid);
- $obj->setDasInsOwnerType($dasInsOwnerType);
- $obj->setDasInsOwnerUid($dasInsOwnerUid);
- $obj->setDasInsAdditionalProperties($dasInsAdditionalProperties);
- $obj->setDasInsCreateDate($dasInsCreateDate);
- $obj->setDasInsUpdateDate($dasInsUpdateDate);
- $obj->setDasInsStatus($dasInsStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $dasInsUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($dasInsUid)
- {
- $conn = Propel::getConnection(DashletInstancePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DashletInstancePeer::retrieveByPK($dasInsUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/DbSource.php b/workflow/engine/services/rest/crud/DbSource.php
index d18615017..aafdfec28 100644
--- a/workflow/engine/services/rest/crud/DbSource.php
+++ b/workflow/engine/services/rest/crud/DbSource.php
@@ -44,90 +44,5 @@ class Services_Rest_DbSource
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $dbsUid, $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($dbsUid, $proUid, $dbsType, $dbsServer, $dbsDatabaseName, $dbsUsername, $dbsPassword, $dbsPort, $dbsEncode)
- {
- try {
- $result = array();
- $obj = new DbSource();
-
- $obj->setDbsUid($dbsUid);
- $obj->setProUid($proUid);
- $obj->setDbsType($dbsType);
- $obj->setDbsServer($dbsServer);
- $obj->setDbsDatabaseName($dbsDatabaseName);
- $obj->setDbsUsername($dbsUsername);
- $obj->setDbsPassword($dbsPassword);
- $obj->setDbsPort($dbsPort);
- $obj->setDbsEncode($dbsEncode);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $dbsUid, $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($dbsUid, $proUid, $dbsType, $dbsServer, $dbsDatabaseName, $dbsUsername, $dbsPassword, $dbsPort, $dbsEncode)
- {
- try {
- $obj = DbSourcePeer::retrieveByPK($dbsUid, $proUid);
-
- $obj->setDbsType($dbsType);
- $obj->setDbsServer($dbsServer);
- $obj->setDbsDatabaseName($dbsDatabaseName);
- $obj->setDbsUsername($dbsUsername);
- $obj->setDbsPassword($dbsPassword);
- $obj->setDbsPort($dbsPort);
- $obj->setDbsEncode($dbsEncode);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $dbsUid, $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($dbsUid, $proUid)
- {
- $conn = Propel::getConnection(DbSourcePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DbSourcePeer::retrieveByPK($dbsUid, $proUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Department.php b/workflow/engine/services/rest/crud/Department.php
index e326b1974..b889e7d0a 100644
--- a/workflow/engine/services/rest/crud/Department.php
+++ b/workflow/engine/services/rest/crud/Department.php
@@ -42,87 +42,5 @@ class Services_Rest_Department
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $depUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($depUid, $depParent, $depManager, $depLocation, $depStatus, $depRefCode, $depLdapDn)
- {
- try {
- $result = array();
- $obj = new Department();
-
- $obj->setDepUid($depUid);
- $obj->setDepParent($depParent);
- $obj->setDepManager($depManager);
- $obj->setDepLocation($depLocation);
- $obj->setDepStatus($depStatus);
- $obj->setDepRefCode($depRefCode);
- $obj->setDepLdapDn($depLdapDn);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $depUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($depUid, $depParent, $depManager, $depLocation, $depStatus, $depRefCode, $depLdapDn)
- {
- try {
- $obj = DepartmentPeer::retrieveByPK($depUid);
-
- $obj->setDepParent($depParent);
- $obj->setDepManager($depManager);
- $obj->setDepLocation($depLocation);
- $obj->setDepStatus($depStatus);
- $obj->setDepRefCode($depRefCode);
- $obj->setDepLdapDn($depLdapDn);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $depUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($depUid)
- {
- $conn = Propel::getConnection(DepartmentPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DepartmentPeer::retrieveByPK($depUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/DimTimeComplete.php b/workflow/engine/services/rest/crud/DimTimeComplete.php
index 5d3809156..9ed957eea 100644
--- a/workflow/engine/services/rest/crud/DimTimeComplete.php
+++ b/workflow/engine/services/rest/crud/DimTimeComplete.php
@@ -43,89 +43,5 @@ class Services_Rest_DimTimeComplete
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $timeId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($timeId, $monthId, $qtrId, $yearId, $monthName, $monthDesc, $qtrName, $qtrDesc)
- {
- try {
- $result = array();
- $obj = new DimTimeComplete();
-
- $obj->setTimeId($timeId);
- $obj->setMonthId($monthId);
- $obj->setQtrId($qtrId);
- $obj->setYearId($yearId);
- $obj->setMonthName($monthName);
- $obj->setMonthDesc($monthDesc);
- $obj->setQtrName($qtrName);
- $obj->setQtrDesc($qtrDesc);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $timeId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($timeId, $monthId, $qtrId, $yearId, $monthName, $monthDesc, $qtrName, $qtrDesc)
- {
- try {
- $obj = DimTimeCompletePeer::retrieveByPK($timeId);
-
- $obj->setMonthId($monthId);
- $obj->setQtrId($qtrId);
- $obj->setYearId($yearId);
- $obj->setMonthName($monthName);
- $obj->setMonthDesc($monthDesc);
- $obj->setQtrName($qtrName);
- $obj->setQtrDesc($qtrDesc);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $timeId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($timeId)
- {
- $conn = Propel::getConnection(DimTimeCompletePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DimTimeCompletePeer::retrieveByPK($timeId);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/DimTimeDelegate.php b/workflow/engine/services/rest/crud/DimTimeDelegate.php
index 6f9ddc9e6..2b8fb7201 100644
--- a/workflow/engine/services/rest/crud/DimTimeDelegate.php
+++ b/workflow/engine/services/rest/crud/DimTimeDelegate.php
@@ -43,89 +43,5 @@ class Services_Rest_DimTimeDelegate
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $timeId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($timeId, $monthId, $qtrId, $yearId, $monthName, $monthDesc, $qtrName, $qtrDesc)
- {
- try {
- $result = array();
- $obj = new DimTimeDelegate();
-
- $obj->setTimeId($timeId);
- $obj->setMonthId($monthId);
- $obj->setQtrId($qtrId);
- $obj->setYearId($yearId);
- $obj->setMonthName($monthName);
- $obj->setMonthDesc($monthDesc);
- $obj->setQtrName($qtrName);
- $obj->setQtrDesc($qtrDesc);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $timeId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($timeId, $monthId, $qtrId, $yearId, $monthName, $monthDesc, $qtrName, $qtrDesc)
- {
- try {
- $obj = DimTimeDelegatePeer::retrieveByPK($timeId);
-
- $obj->setMonthId($monthId);
- $obj->setQtrId($qtrId);
- $obj->setYearId($yearId);
- $obj->setMonthName($monthName);
- $obj->setMonthDesc($monthDesc);
- $obj->setQtrName($qtrName);
- $obj->setQtrDesc($qtrDesc);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $timeId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($timeId)
- {
- $conn = Propel::getConnection(DimTimeDelegatePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DimTimeDelegatePeer::retrieveByPK($timeId);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Dynaform.php b/workflow/engine/services/rest/crud/Dynaform.php
index 716c8ceb8..27f6d1f50 100644
--- a/workflow/engine/services/rest/crud/Dynaform.php
+++ b/workflow/engine/services/rest/crud/Dynaform.php
@@ -39,81 +39,5 @@ class Services_Rest_Dynaform
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $dynUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($dynUid, $proUid, $dynType, $dynFilename)
- {
- try {
- $result = array();
- $obj = new Dynaform();
-
- $obj->setDynUid($dynUid);
- $obj->setProUid($proUid);
- $obj->setDynType($dynType);
- $obj->setDynFilename($dynFilename);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $dynUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($dynUid, $proUid, $dynType, $dynFilename)
- {
- try {
- $obj = DynaformPeer::retrieveByPK($dynUid);
-
- $obj->setProUid($proUid);
- $obj->setDynType($dynType);
- $obj->setDynFilename($dynFilename);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $dynUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($dynUid)
- {
- $conn = Propel::getConnection(DynaformPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = DynaformPeer::retrieveByPK($dynUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Event.php b/workflow/engine/services/rest/crud/Event.php
index db749c3dc..e8fdcea14 100644
--- a/workflow/engine/services/rest/crud/Event.php
+++ b/workflow/engine/services/rest/crud/Event.php
@@ -26,6 +26,7 @@ class Services_Rest_Event
$criteria->addSelectColumn(EventPeer::EVN_TAS_UID_FROM);
$criteria->addSelectColumn(EventPeer::EVN_TAS_UID_TO);
$criteria->addSelectColumn(EventPeer::EVN_TAS_ESTIMATED_DURATION);
+ $criteria->addSelectColumn(EventPeer::EVN_TIME_UNIT);
$criteria->addSelectColumn(EventPeer::EVN_WHEN);
$criteria->addSelectColumn(EventPeer::EVN_MAX_ATTEMPTS);
$criteria->addSelectColumn(EventPeer::EVN_ACTION);
@@ -54,111 +55,5 @@ class Services_Rest_Event
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $evnUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($evnUid, $proUid, $evnStatus, $evnWhenOccurs, $evnRelatedTo, $tasUid, $evnTasUidFrom, $evnTasUidTo, $evnTasEstimatedDuration, $evnWhen, $evnMaxAttempts, $evnAction, $evnConditions, $evnActionParameters, $triUid, $evnPosx, $evnPosy, $evnType, $tasEvnUid)
- {
- try {
- $result = array();
- $obj = new Event();
-
- $obj->setEvnUid($evnUid);
- $obj->setProUid($proUid);
- $obj->setEvnStatus($evnStatus);
- $obj->setEvnWhenOccurs($evnWhenOccurs);
- $obj->setEvnRelatedTo($evnRelatedTo);
- $obj->setTasUid($tasUid);
- $obj->setEvnTasUidFrom($evnTasUidFrom);
- $obj->setEvnTasUidTo($evnTasUidTo);
- $obj->setEvnTasEstimatedDuration($evnTasEstimatedDuration);
- $obj->setEvnWhen($evnWhen);
- $obj->setEvnMaxAttempts($evnMaxAttempts);
- $obj->setEvnAction($evnAction);
- $obj->setEvnConditions($evnConditions);
- $obj->setEvnActionParameters($evnActionParameters);
- $obj->setTriUid($triUid);
- $obj->setEvnPosx($evnPosx);
- $obj->setEvnPosy($evnPosy);
- $obj->setEvnType($evnType);
- $obj->setTasEvnUid($tasEvnUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $evnUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($evnUid, $proUid, $evnStatus, $evnWhenOccurs, $evnRelatedTo, $tasUid, $evnTasUidFrom, $evnTasUidTo, $evnTasEstimatedDuration, $evnWhen, $evnMaxAttempts, $evnAction, $evnConditions, $evnActionParameters, $triUid, $evnPosx, $evnPosy, $evnType, $tasEvnUid)
- {
- try {
- $obj = EventPeer::retrieveByPK($evnUid);
-
- $obj->setProUid($proUid);
- $obj->setEvnStatus($evnStatus);
- $obj->setEvnWhenOccurs($evnWhenOccurs);
- $obj->setEvnRelatedTo($evnRelatedTo);
- $obj->setTasUid($tasUid);
- $obj->setEvnTasUidFrom($evnTasUidFrom);
- $obj->setEvnTasUidTo($evnTasUidTo);
- $obj->setEvnTasEstimatedDuration($evnTasEstimatedDuration);
- $obj->setEvnWhen($evnWhen);
- $obj->setEvnMaxAttempts($evnMaxAttempts);
- $obj->setEvnAction($evnAction);
- $obj->setEvnConditions($evnConditions);
- $obj->setEvnActionParameters($evnActionParameters);
- $obj->setTriUid($triUid);
- $obj->setEvnPosx($evnPosx);
- $obj->setEvnPosy($evnPosy);
- $obj->setEvnType($evnType);
- $obj->setTasEvnUid($tasEvnUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $evnUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($evnUid)
- {
- $conn = Propel::getConnection(EventPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = EventPeer::retrieveByPK($evnUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/FieldCondition.php b/workflow/engine/services/rest/crud/FieldCondition.php
index 49f81cf73..1b4448d0f 100644
--- a/workflow/engine/services/rest/crud/FieldCondition.php
+++ b/workflow/engine/services/rest/crud/FieldCondition.php
@@ -43,89 +43,5 @@ class Services_Rest_FieldCondition
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $fcdUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($fcdUid, $fcdFunction, $fcdFields, $fcdCondition, $fcdEvents, $fcdEventOwners, $fcdStatus, $fcdDynUid)
- {
- try {
- $result = array();
- $obj = new FieldCondition();
-
- $obj->setFcdUid($fcdUid);
- $obj->setFcdFunction($fcdFunction);
- $obj->setFcdFields($fcdFields);
- $obj->setFcdCondition($fcdCondition);
- $obj->setFcdEvents($fcdEvents);
- $obj->setFcdEventOwners($fcdEventOwners);
- $obj->setFcdStatus($fcdStatus);
- $obj->setFcdDynUid($fcdDynUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $fcdUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($fcdUid, $fcdFunction, $fcdFields, $fcdCondition, $fcdEvents, $fcdEventOwners, $fcdStatus, $fcdDynUid)
- {
- try {
- $obj = FieldConditionPeer::retrieveByPK($fcdUid);
-
- $obj->setFcdFunction($fcdFunction);
- $obj->setFcdFields($fcdFields);
- $obj->setFcdCondition($fcdCondition);
- $obj->setFcdEvents($fcdEvents);
- $obj->setFcdEventOwners($fcdEventOwners);
- $obj->setFcdStatus($fcdStatus);
- $obj->setFcdDynUid($fcdDynUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $fcdUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($fcdUid)
- {
- $conn = Propel::getConnection(FieldConditionPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = FieldConditionPeer::retrieveByPK($fcdUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Fields.php b/workflow/engine/services/rest/crud/Fields.php
index 327893baf..c8da06f14 100644
--- a/workflow/engine/services/rest/crud/Fields.php
+++ b/workflow/engine/services/rest/crud/Fields.php
@@ -50,103 +50,5 @@ class Services_Rest_Fields
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $fldUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($fldUid, $addTabUid, $fldIndex, $fldName, $fldDescription, $fldType, $fldSize, $fldNull, $fldAutoIncrement, $fldKey, $fldForeignKey, $fldForeignKeyTable, $fldDynName, $fldDynUid, $fldFilter)
- {
- try {
- $result = array();
- $obj = new Fields();
-
- $obj->setFldUid($fldUid);
- $obj->setAddTabUid($addTabUid);
- $obj->setFldIndex($fldIndex);
- $obj->setFldName($fldName);
- $obj->setFldDescription($fldDescription);
- $obj->setFldType($fldType);
- $obj->setFldSize($fldSize);
- $obj->setFldNull($fldNull);
- $obj->setFldAutoIncrement($fldAutoIncrement);
- $obj->setFldKey($fldKey);
- $obj->setFldForeignKey($fldForeignKey);
- $obj->setFldForeignKeyTable($fldForeignKeyTable);
- $obj->setFldDynName($fldDynName);
- $obj->setFldDynUid($fldDynUid);
- $obj->setFldFilter($fldFilter);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $fldUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($fldUid, $addTabUid, $fldIndex, $fldName, $fldDescription, $fldType, $fldSize, $fldNull, $fldAutoIncrement, $fldKey, $fldForeignKey, $fldForeignKeyTable, $fldDynName, $fldDynUid, $fldFilter)
- {
- try {
- $obj = FieldsPeer::retrieveByPK($fldUid);
-
- $obj->setAddTabUid($addTabUid);
- $obj->setFldIndex($fldIndex);
- $obj->setFldName($fldName);
- $obj->setFldDescription($fldDescription);
- $obj->setFldType($fldType);
- $obj->setFldSize($fldSize);
- $obj->setFldNull($fldNull);
- $obj->setFldAutoIncrement($fldAutoIncrement);
- $obj->setFldKey($fldKey);
- $obj->setFldForeignKey($fldForeignKey);
- $obj->setFldForeignKeyTable($fldForeignKeyTable);
- $obj->setFldDynName($fldDynName);
- $obj->setFldDynUid($fldDynUid);
- $obj->setFldFilter($fldFilter);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $fldUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($fldUid)
- {
- $conn = Propel::getConnection(FieldsPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = FieldsPeer::retrieveByPK($fldUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Gateway.php b/workflow/engine/services/rest/crud/Gateway.php
index 8d3cd7d81..51daec779 100644
--- a/workflow/engine/services/rest/crud/Gateway.php
+++ b/workflow/engine/services/rest/crud/Gateway.php
@@ -42,87 +42,5 @@ class Services_Rest_Gateway
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $gatUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($gatUid, $proUid, $tasUid, $gatNextTask, $gatX, $gatY, $gatType)
- {
- try {
- $result = array();
- $obj = new Gateway();
-
- $obj->setGatUid($gatUid);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setGatNextTask($gatNextTask);
- $obj->setGatX($gatX);
- $obj->setGatY($gatY);
- $obj->setGatType($gatType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $gatUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($gatUid, $proUid, $tasUid, $gatNextTask, $gatX, $gatY, $gatType)
- {
- try {
- $obj = GatewayPeer::retrieveByPK($gatUid);
-
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setGatNextTask($gatNextTask);
- $obj->setGatX($gatX);
- $obj->setGatY($gatY);
- $obj->setGatType($gatType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $gatUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($gatUid)
- {
- $conn = Propel::getConnection(GatewayPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = GatewayPeer::retrieveByPK($gatUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/GroupUser.php b/workflow/engine/services/rest/crud/GroupUser.php
index 9ed7e0f7f..9ca4faad7 100644
--- a/workflow/engine/services/rest/crud/GroupUser.php
+++ b/workflow/engine/services/rest/crud/GroupUser.php
@@ -37,76 +37,5 @@ class Services_Rest_GroupUser
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $grpUid, $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($grpUid, $usrUid)
- {
- try {
- $result = array();
- $obj = new GroupUser();
-
- $obj->setGrpUid($grpUid);
- $obj->setUsrUid($usrUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $grpUid, $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($grpUid, $usrUid)
- {
- try {
- $obj = GroupUserPeer::retrieveByPK($grpUid, $usrUid);
-
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $grpUid, $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($grpUid, $usrUid)
- {
- $conn = Propel::getConnection(GroupUserPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = GroupUserPeer::retrieveByPK($grpUid, $usrUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Groupwf.php b/workflow/engine/services/rest/crud/Groupwf.php
index 1b6df3038..56f84dda7 100644
--- a/workflow/engine/services/rest/crud/Groupwf.php
+++ b/workflow/engine/services/rest/crud/Groupwf.php
@@ -39,81 +39,5 @@ class Services_Rest_Groupwf
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $grpUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($grpUid, $grpStatus, $grpLdapDn, $grpUx)
- {
- try {
- $result = array();
- $obj = new Groupwf();
-
- $obj->setGrpUid($grpUid);
- $obj->setGrpStatus($grpStatus);
- $obj->setGrpLdapDn($grpLdapDn);
- $obj->setGrpUx($grpUx);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $grpUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($grpUid, $grpStatus, $grpLdapDn, $grpUx)
- {
- try {
- $obj = GroupwfPeer::retrieveByPK($grpUid);
-
- $obj->setGrpStatus($grpStatus);
- $obj->setGrpLdapDn($grpLdapDn);
- $obj->setGrpUx($grpUx);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $grpUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($grpUid)
- {
- $conn = Propel::getConnection(GroupwfPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = GroupwfPeer::retrieveByPK($grpUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Holiday.php b/workflow/engine/services/rest/crud/Holiday.php
index a7779c957..5b25d8df4 100644
--- a/workflow/engine/services/rest/crud/Holiday.php
+++ b/workflow/engine/services/rest/crud/Holiday.php
@@ -38,79 +38,5 @@ class Services_Rest_Holiday
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $hldUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($hldUid, $hldDate, $hldDescription)
- {
- try {
- $result = array();
- $obj = new Holiday();
-
- $obj->setHldUid($hldUid);
- $obj->setHldDate($hldDate);
- $obj->setHldDescription($hldDescription);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $hldUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($hldUid, $hldDate, $hldDescription)
- {
- try {
- $obj = HolidayPeer::retrieveByPK($hldUid);
-
- $obj->setHldDate($hldDate);
- $obj->setHldDescription($hldDescription);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $hldUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($hldUid)
- {
- $conn = Propel::getConnection(HolidayPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = HolidayPeer::retrieveByPK($hldUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/InputDocument.php b/workflow/engine/services/rest/crud/InputDocument.php
index 0832e919f..460774fa5 100644
--- a/workflow/engine/services/rest/crud/InputDocument.php
+++ b/workflow/engine/services/rest/crud/InputDocument.php
@@ -43,89 +43,5 @@ class Services_Rest_InputDocument
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $inpDocUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($inpDocUid, $proUid, $inpDocFormNeeded, $inpDocOriginal, $inpDocPublished, $inpDocVersioning, $inpDocDestinationPath, $inpDocTags)
- {
- try {
- $result = array();
- $obj = new InputDocument();
-
- $obj->setInpDocUid($inpDocUid);
- $obj->setProUid($proUid);
- $obj->setInpDocFormNeeded($inpDocFormNeeded);
- $obj->setInpDocOriginal($inpDocOriginal);
- $obj->setInpDocPublished($inpDocPublished);
- $obj->setInpDocVersioning($inpDocVersioning);
- $obj->setInpDocDestinationPath($inpDocDestinationPath);
- $obj->setInpDocTags($inpDocTags);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $inpDocUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($inpDocUid, $proUid, $inpDocFormNeeded, $inpDocOriginal, $inpDocPublished, $inpDocVersioning, $inpDocDestinationPath, $inpDocTags)
- {
- try {
- $obj = InputDocumentPeer::retrieveByPK($inpDocUid);
-
- $obj->setProUid($proUid);
- $obj->setInpDocFormNeeded($inpDocFormNeeded);
- $obj->setInpDocOriginal($inpDocOriginal);
- $obj->setInpDocPublished($inpDocPublished);
- $obj->setInpDocVersioning($inpDocVersioning);
- $obj->setInpDocDestinationPath($inpDocDestinationPath);
- $obj->setInpDocTags($inpDocTags);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $inpDocUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($inpDocUid)
- {
- $conn = Propel::getConnection(InputDocumentPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = InputDocumentPeer::retrieveByPK($inpDocUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/IsoCountry.php b/workflow/engine/services/rest/crud/IsoCountry.php
index a631448de..4c8146fa3 100644
--- a/workflow/engine/services/rest/crud/IsoCountry.php
+++ b/workflow/engine/services/rest/crud/IsoCountry.php
@@ -38,79 +38,5 @@ class Services_Rest_IsoCountry
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $icUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($icUid, $icName, $icSortOrder)
- {
- try {
- $result = array();
- $obj = new IsoCountry();
-
- $obj->setIcUid($icUid);
- $obj->setIcName($icName);
- $obj->setIcSortOrder($icSortOrder);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $icUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($icUid, $icName, $icSortOrder)
- {
- try {
- $obj = IsoCountryPeer::retrieveByPK($icUid);
-
- $obj->setIcName($icName);
- $obj->setIcSortOrder($icSortOrder);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $icUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($icUid)
- {
- $conn = Propel::getConnection(IsoCountryPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = IsoCountryPeer::retrieveByPK($icUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/IsoLocation.php b/workflow/engine/services/rest/crud/IsoLocation.php
index 32106230e..8f7d98280 100644
--- a/workflow/engine/services/rest/crud/IsoLocation.php
+++ b/workflow/engine/services/rest/crud/IsoLocation.php
@@ -40,82 +40,5 @@ class Services_Rest_IsoLocation
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $icUid, $ilUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($icUid, $ilUid, $ilName, $ilNormalName, $isUid)
- {
- try {
- $result = array();
- $obj = new IsoLocation();
-
- $obj->setIcUid($icUid);
- $obj->setIlUid($ilUid);
- $obj->setIlName($ilName);
- $obj->setIlNormalName($ilNormalName);
- $obj->setIsUid($isUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $icUid, $ilUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($icUid, $ilUid, $ilName, $ilNormalName, $isUid)
- {
- try {
- $obj = IsoLocationPeer::retrieveByPK($icUid, $ilUid);
-
- $obj->setIlName($ilName);
- $obj->setIlNormalName($ilNormalName);
- $obj->setIsUid($isUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $icUid, $ilUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($icUid, $ilUid)
- {
- $conn = Propel::getConnection(IsoLocationPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = IsoLocationPeer::retrieveByPK($icUid, $ilUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/IsoSubdivision.php b/workflow/engine/services/rest/crud/IsoSubdivision.php
index fb8ecf89e..ed5284ba8 100644
--- a/workflow/engine/services/rest/crud/IsoSubdivision.php
+++ b/workflow/engine/services/rest/crud/IsoSubdivision.php
@@ -38,78 +38,5 @@ class Services_Rest_IsoSubdivision
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $icUid, $isUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($icUid, $isUid, $isName)
- {
- try {
- $result = array();
- $obj = new IsoSubdivision();
-
- $obj->setIcUid($icUid);
- $obj->setIsUid($isUid);
- $obj->setIsName($isName);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $icUid, $isUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($icUid, $isUid, $isName)
- {
- try {
- $obj = IsoSubdivisionPeer::retrieveByPK($icUid, $isUid);
-
- $obj->setIsName($isName);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $icUid, $isUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($icUid, $isUid)
- {
- $conn = Propel::getConnection(IsoSubdivisionPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = IsoSubdivisionPeer::retrieveByPK($icUid, $isUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Language.php b/workflow/engine/services/rest/crud/Language.php
index 8a5a6e67a..6ed0c7988 100644
--- a/workflow/engine/services/rest/crud/Language.php
+++ b/workflow/engine/services/rest/crud/Language.php
@@ -42,87 +42,5 @@ class Services_Rest_Language
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $lanId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($lanId, $lanName, $lanNativeName, $lanDirection, $lanWeight, $lanEnabled, $lanCalendar)
- {
- try {
- $result = array();
- $obj = new Language();
-
- $obj->setLanId($lanId);
- $obj->setLanName($lanName);
- $obj->setLanNativeName($lanNativeName);
- $obj->setLanDirection($lanDirection);
- $obj->setLanWeight($lanWeight);
- $obj->setLanEnabled($lanEnabled);
- $obj->setLanCalendar($lanCalendar);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $lanId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($lanId, $lanName, $lanNativeName, $lanDirection, $lanWeight, $lanEnabled, $lanCalendar)
- {
- try {
- $obj = LanguagePeer::retrieveByPK($lanId);
-
- $obj->setLanName($lanName);
- $obj->setLanNativeName($lanNativeName);
- $obj->setLanDirection($lanDirection);
- $obj->setLanWeight($lanWeight);
- $obj->setLanEnabled($lanEnabled);
- $obj->setLanCalendar($lanCalendar);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $lanId Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($lanId)
- {
- $conn = Propel::getConnection(LanguagePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = LanguagePeer::retrieveByPK($lanId);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Lexico.php b/workflow/engine/services/rest/crud/Lexico.php
index c2dd57d24..482fc8daa 100644
--- a/workflow/engine/services/rest/crud/Lexico.php
+++ b/workflow/engine/services/rest/crud/Lexico.php
@@ -39,80 +39,5 @@ class Services_Rest_Lexico
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $lexTopic, $lexKey Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($lexTopic, $lexKey, $lexValue, $lexCaption)
- {
- try {
- $result = array();
- $obj = new Lexico();
-
- $obj->setLexTopic($lexTopic);
- $obj->setLexKey($lexKey);
- $obj->setLexValue($lexValue);
- $obj->setLexCaption($lexCaption);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $lexTopic, $lexKey Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($lexTopic, $lexKey, $lexValue, $lexCaption)
- {
- try {
- $obj = LexicoPeer::retrieveByPK($lexTopic, $lexKey);
-
- $obj->setLexValue($lexValue);
- $obj->setLexCaption($lexCaption);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $lexTopic, $lexKey Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($lexTopic, $lexKey)
- {
- $conn = Propel::getConnection(LexicoPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = LexicoPeer::retrieveByPK($lexTopic, $lexKey);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/LogCasesScheduler.php b/workflow/engine/services/rest/crud/LogCasesScheduler.php
index b6e2012dc..274fcf938 100644
--- a/workflow/engine/services/rest/crud/LogCasesScheduler.php
+++ b/workflow/engine/services/rest/crud/LogCasesScheduler.php
@@ -45,93 +45,5 @@ class Services_Rest_LogCasesScheduler
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $logCaseUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($logCaseUid, $proUid, $tasUid, $usrName, $execDate, $execHour, $result, $schUid, $wsCreateCaseStatus, $wsRouteCaseStatus)
- {
- try {
- $result = array();
- $obj = new LogCasesScheduler();
-
- $obj->setLogCaseUid($logCaseUid);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setUsrName($usrName);
- $obj->setExecDate($execDate);
- $obj->setExecHour($execHour);
- $obj->setResult($result);
- $obj->setSchUid($schUid);
- $obj->setWsCreateCaseStatus($wsCreateCaseStatus);
- $obj->setWsRouteCaseStatus($wsRouteCaseStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $logCaseUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($logCaseUid, $proUid, $tasUid, $usrName, $execDate, $execHour, $result, $schUid, $wsCreateCaseStatus, $wsRouteCaseStatus)
- {
- try {
- $obj = LogCasesSchedulerPeer::retrieveByPK($logCaseUid);
-
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setUsrName($usrName);
- $obj->setExecDate($execDate);
- $obj->setExecHour($execHour);
- $obj->setResult($result);
- $obj->setSchUid($schUid);
- $obj->setWsCreateCaseStatus($wsCreateCaseStatus);
- $obj->setWsRouteCaseStatus($wsRouteCaseStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $logCaseUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($logCaseUid)
- {
- $conn = Propel::getConnection(LogCasesSchedulerPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = LogCasesSchedulerPeer::retrieveByPK($logCaseUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/LoginLog.php b/workflow/engine/services/rest/crud/LoginLog.php
index 8369f7e3e..97beea5eb 100644
--- a/workflow/engine/services/rest/crud/LoginLog.php
+++ b/workflow/engine/services/rest/crud/LoginLog.php
@@ -43,89 +43,5 @@ class Services_Rest_LoginLog
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $logUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($logUid, $logStatus, $logIp, $logSid, $logInitDate, $logEndDate, $logClientHostname, $usrUid)
- {
- try {
- $result = array();
- $obj = new LoginLog();
-
- $obj->setLogUid($logUid);
- $obj->setLogStatus($logStatus);
- $obj->setLogIp($logIp);
- $obj->setLogSid($logSid);
- $obj->setLogInitDate($logInitDate);
- $obj->setLogEndDate($logEndDate);
- $obj->setLogClientHostname($logClientHostname);
- $obj->setUsrUid($usrUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $logUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($logUid, $logStatus, $logIp, $logSid, $logInitDate, $logEndDate, $logClientHostname, $usrUid)
- {
- try {
- $obj = LoginLogPeer::retrieveByPK($logUid);
-
- $obj->setLogStatus($logStatus);
- $obj->setLogIp($logIp);
- $obj->setLogSid($logSid);
- $obj->setLogInitDate($logInitDate);
- $obj->setLogEndDate($logEndDate);
- $obj->setLogClientHostname($logClientHostname);
- $obj->setUsrUid($usrUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $logUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($logUid)
- {
- $conn = Propel::getConnection(LoginLogPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = LoginLogPeer::retrieveByPK($logUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ObjectPermission.php b/workflow/engine/services/rest/crud/ObjectPermission.php
index a75969bc5..61d96427e 100644
--- a/workflow/engine/services/rest/crud/ObjectPermission.php
+++ b/workflow/engine/services/rest/crud/ObjectPermission.php
@@ -46,95 +46,5 @@ class Services_Rest_ObjectPermission
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $opUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($opUid, $proUid, $tasUid, $usrUid, $opUserRelation, $opTaskSource, $opParticipate, $opObjType, $opObjUid, $opAction, $opCaseStatus)
- {
- try {
- $result = array();
- $obj = new ObjectPermission();
-
- $obj->setOpUid($opUid);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setUsrUid($usrUid);
- $obj->setOpUserRelation($opUserRelation);
- $obj->setOpTaskSource($opTaskSource);
- $obj->setOpParticipate($opParticipate);
- $obj->setOpObjType($opObjType);
- $obj->setOpObjUid($opObjUid);
- $obj->setOpAction($opAction);
- $obj->setOpCaseStatus($opCaseStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $opUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($opUid, $proUid, $tasUid, $usrUid, $opUserRelation, $opTaskSource, $opParticipate, $opObjType, $opObjUid, $opAction, $opCaseStatus)
- {
- try {
- $obj = ObjectPermissionPeer::retrieveByPK($opUid);
-
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setUsrUid($usrUid);
- $obj->setOpUserRelation($opUserRelation);
- $obj->setOpTaskSource($opTaskSource);
- $obj->setOpParticipate($opParticipate);
- $obj->setOpObjType($opObjType);
- $obj->setOpObjUid($opObjUid);
- $obj->setOpAction($opAction);
- $obj->setOpCaseStatus($opCaseStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $opUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($opUid)
- {
- $conn = Propel::getConnection(ObjectPermissionPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ObjectPermissionPeer::retrieveByPK($opUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/OutputDocument.php b/workflow/engine/services/rest/crud/OutputDocument.php
index 233e33c91..c9039cabc 100644
--- a/workflow/engine/services/rest/crud/OutputDocument.php
+++ b/workflow/engine/services/rest/crud/OutputDocument.php
@@ -54,111 +54,5 @@ class Services_Rest_OutputDocument
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $outDocUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($outDocUid, $proUid, $outDocLandscape, $outDocMedia, $outDocLeftMargin, $outDocRightMargin, $outDocTopMargin, $outDocBottomMargin, $outDocGenerate, $outDocType, $outDocCurrentRevision, $outDocFieldMapping, $outDocVersioning, $outDocDestinationPath, $outDocTags, $outDocPdfSecurityEnabled, $outDocPdfSecurityOpenPassword, $outDocPdfSecurityOwnerPassword, $outDocPdfSecurityPermissions)
- {
- try {
- $result = array();
- $obj = new OutputDocument();
-
- $obj->setOutDocUid($outDocUid);
- $obj->setProUid($proUid);
- $obj->setOutDocLandscape($outDocLandscape);
- $obj->setOutDocMedia($outDocMedia);
- $obj->setOutDocLeftMargin($outDocLeftMargin);
- $obj->setOutDocRightMargin($outDocRightMargin);
- $obj->setOutDocTopMargin($outDocTopMargin);
- $obj->setOutDocBottomMargin($outDocBottomMargin);
- $obj->setOutDocGenerate($outDocGenerate);
- $obj->setOutDocType($outDocType);
- $obj->setOutDocCurrentRevision($outDocCurrentRevision);
- $obj->setOutDocFieldMapping($outDocFieldMapping);
- $obj->setOutDocVersioning($outDocVersioning);
- $obj->setOutDocDestinationPath($outDocDestinationPath);
- $obj->setOutDocTags($outDocTags);
- $obj->setOutDocPdfSecurityEnabled($outDocPdfSecurityEnabled);
- $obj->setOutDocPdfSecurityOpenPassword($outDocPdfSecurityOpenPassword);
- $obj->setOutDocPdfSecurityOwnerPassword($outDocPdfSecurityOwnerPassword);
- $obj->setOutDocPdfSecurityPermissions($outDocPdfSecurityPermissions);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $outDocUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($outDocUid, $proUid, $outDocLandscape, $outDocMedia, $outDocLeftMargin, $outDocRightMargin, $outDocTopMargin, $outDocBottomMargin, $outDocGenerate, $outDocType, $outDocCurrentRevision, $outDocFieldMapping, $outDocVersioning, $outDocDestinationPath, $outDocTags, $outDocPdfSecurityEnabled, $outDocPdfSecurityOpenPassword, $outDocPdfSecurityOwnerPassword, $outDocPdfSecurityPermissions)
- {
- try {
- $obj = OutputDocumentPeer::retrieveByPK($outDocUid);
-
- $obj->setProUid($proUid);
- $obj->setOutDocLandscape($outDocLandscape);
- $obj->setOutDocMedia($outDocMedia);
- $obj->setOutDocLeftMargin($outDocLeftMargin);
- $obj->setOutDocRightMargin($outDocRightMargin);
- $obj->setOutDocTopMargin($outDocTopMargin);
- $obj->setOutDocBottomMargin($outDocBottomMargin);
- $obj->setOutDocGenerate($outDocGenerate);
- $obj->setOutDocType($outDocType);
- $obj->setOutDocCurrentRevision($outDocCurrentRevision);
- $obj->setOutDocFieldMapping($outDocFieldMapping);
- $obj->setOutDocVersioning($outDocVersioning);
- $obj->setOutDocDestinationPath($outDocDestinationPath);
- $obj->setOutDocTags($outDocTags);
- $obj->setOutDocPdfSecurityEnabled($outDocPdfSecurityEnabled);
- $obj->setOutDocPdfSecurityOpenPassword($outDocPdfSecurityOpenPassword);
- $obj->setOutDocPdfSecurityOwnerPassword($outDocPdfSecurityOwnerPassword);
- $obj->setOutDocPdfSecurityPermissions($outDocPdfSecurityPermissions);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $outDocUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($outDocUid)
- {
- $conn = Propel::getConnection(OutputDocumentPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = OutputDocumentPeer::retrieveByPK($outDocUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Process.php b/workflow/engine/services/rest/crud/Process.php
index ddceb96fc..facc88b7e 100644
--- a/workflow/engine/services/rest/crud/Process.php
+++ b/workflow/engine/services/rest/crud/Process.php
@@ -60,123 +60,5 @@ class Services_Rest_Process
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($proUid, $proParent, $proTime, $proTimeunit, $proStatus, $proTypeDay, $proType, $proAssignment, $proShowMap, $proShowMessage, $proShowDelegate, $proShowDynaform, $proCategory, $proSubCategory, $proIndustry, $proUpdateDate, $proCreateDate, $proCreateUser, $proHeight, $proWidth, $proTitleX, $proTitleY, $proDebug, $proDynaforms, $proDerivationScreenTpl)
- {
- try {
- $result = array();
- $obj = new Process();
-
- $obj->setProUid($proUid);
- $obj->setProParent($proParent);
- $obj->setProTime($proTime);
- $obj->setProTimeunit($proTimeunit);
- $obj->setProStatus($proStatus);
- $obj->setProTypeDay($proTypeDay);
- $obj->setProType($proType);
- $obj->setProAssignment($proAssignment);
- $obj->setProShowMap($proShowMap);
- $obj->setProShowMessage($proShowMessage);
- $obj->setProShowDelegate($proShowDelegate);
- $obj->setProShowDynaform($proShowDynaform);
- $obj->setProCategory($proCategory);
- $obj->setProSubCategory($proSubCategory);
- $obj->setProIndustry($proIndustry);
- $obj->setProUpdateDate($proUpdateDate);
- $obj->setProCreateDate($proCreateDate);
- $obj->setProCreateUser($proCreateUser);
- $obj->setProHeight($proHeight);
- $obj->setProWidth($proWidth);
- $obj->setProTitleX($proTitleX);
- $obj->setProTitleY($proTitleY);
- $obj->setProDebug($proDebug);
- $obj->setProDynaforms($proDynaforms);
- $obj->setProDerivationScreenTpl($proDerivationScreenTpl);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($proUid, $proParent, $proTime, $proTimeunit, $proStatus, $proTypeDay, $proType, $proAssignment, $proShowMap, $proShowMessage, $proShowDelegate, $proShowDynaform, $proCategory, $proSubCategory, $proIndustry, $proUpdateDate, $proCreateDate, $proCreateUser, $proHeight, $proWidth, $proTitleX, $proTitleY, $proDebug, $proDynaforms, $proDerivationScreenTpl)
- {
- try {
- $obj = ProcessPeer::retrieveByPK($proUid);
-
- $obj->setProParent($proParent);
- $obj->setProTime($proTime);
- $obj->setProTimeunit($proTimeunit);
- $obj->setProStatus($proStatus);
- $obj->setProTypeDay($proTypeDay);
- $obj->setProType($proType);
- $obj->setProAssignment($proAssignment);
- $obj->setProShowMap($proShowMap);
- $obj->setProShowMessage($proShowMessage);
- $obj->setProShowDelegate($proShowDelegate);
- $obj->setProShowDynaform($proShowDynaform);
- $obj->setProCategory($proCategory);
- $obj->setProSubCategory($proSubCategory);
- $obj->setProIndustry($proIndustry);
- $obj->setProUpdateDate($proUpdateDate);
- $obj->setProCreateDate($proCreateDate);
- $obj->setProCreateUser($proCreateUser);
- $obj->setProHeight($proHeight);
- $obj->setProWidth($proWidth);
- $obj->setProTitleX($proTitleX);
- $obj->setProTitleY($proTitleY);
- $obj->setProDebug($proDebug);
- $obj->setProDynaforms($proDynaforms);
- $obj->setProDerivationScreenTpl($proDerivationScreenTpl);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($proUid)
- {
- $conn = Propel::getConnection(ProcessPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ProcessPeer::retrieveByPK($proUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ProcessCategory.php b/workflow/engine/services/rest/crud/ProcessCategory.php
index e2f9986f9..95b846998 100644
--- a/workflow/engine/services/rest/crud/ProcessCategory.php
+++ b/workflow/engine/services/rest/crud/ProcessCategory.php
@@ -39,81 +39,5 @@ class Services_Rest_ProcessCategory
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $categoryUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($categoryUid, $categoryParent, $categoryName, $categoryIcon)
- {
- try {
- $result = array();
- $obj = new ProcessCategory();
-
- $obj->setCategoryUid($categoryUid);
- $obj->setCategoryParent($categoryParent);
- $obj->setCategoryName($categoryName);
- $obj->setCategoryIcon($categoryIcon);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $categoryUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($categoryUid, $categoryParent, $categoryName, $categoryIcon)
- {
- try {
- $obj = ProcessCategoryPeer::retrieveByPK($categoryUid);
-
- $obj->setCategoryParent($categoryParent);
- $obj->setCategoryName($categoryName);
- $obj->setCategoryIcon($categoryIcon);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $categoryUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($categoryUid)
- {
- $conn = Propel::getConnection(ProcessCategoryPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ProcessCategoryPeer::retrieveByPK($categoryUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ProcessOwner.php b/workflow/engine/services/rest/crud/ProcessOwner.php
index 02bb180e5..e8ace9b1b 100644
--- a/workflow/engine/services/rest/crud/ProcessOwner.php
+++ b/workflow/engine/services/rest/crud/ProcessOwner.php
@@ -37,76 +37,5 @@ class Services_Rest_ProcessOwner
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $ownUid, $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($ownUid, $proUid)
- {
- try {
- $result = array();
- $obj = new ProcessOwner();
-
- $obj->setOwnUid($ownUid);
- $obj->setProUid($proUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $ownUid, $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($ownUid, $proUid)
- {
- try {
- $obj = ProcessOwnerPeer::retrieveByPK($ownUid, $proUid);
-
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $ownUid, $proUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($ownUid, $proUid)
- {
- $conn = Propel::getConnection(ProcessOwnerPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ProcessOwnerPeer::retrieveByPK($ownUid, $proUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ProcessUser.php b/workflow/engine/services/rest/crud/ProcessUser.php
index 566f00b38..ed9c5a59d 100644
--- a/workflow/engine/services/rest/crud/ProcessUser.php
+++ b/workflow/engine/services/rest/crud/ProcessUser.php
@@ -39,81 +39,5 @@ class Services_Rest_ProcessUser
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $puUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($puUid, $proUid, $usrUid, $puType)
- {
- try {
- $result = array();
- $obj = new ProcessUser();
-
- $obj->setPuUid($puUid);
- $obj->setProUid($proUid);
- $obj->setUsrUid($usrUid);
- $obj->setPuType($puType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $puUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($puUid, $proUid, $usrUid, $puType)
- {
- try {
- $obj = ProcessUserPeer::retrieveByPK($puUid);
-
- $obj->setProUid($proUid);
- $obj->setUsrUid($usrUid);
- $obj->setPuType($puType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $puUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($puUid)
- {
- $conn = Propel::getConnection(ProcessUserPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ProcessUserPeer::retrieveByPK($puUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ReportTable.php b/workflow/engine/services/rest/crud/ReportTable.php
index f0d62fcff..4c0ed4818 100644
--- a/workflow/engine/services/rest/crud/ReportTable.php
+++ b/workflow/engine/services/rest/crud/ReportTable.php
@@ -43,89 +43,5 @@ class Services_Rest_ReportTable
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $repTabUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($repTabUid, $proUid, $repTabName, $repTabType, $repTabGrid, $repTabConnection, $repTabCreateDate, $repTabStatus)
- {
- try {
- $result = array();
- $obj = new ReportTable();
-
- $obj->setRepTabUid($repTabUid);
- $obj->setProUid($proUid);
- $obj->setRepTabName($repTabName);
- $obj->setRepTabType($repTabType);
- $obj->setRepTabGrid($repTabGrid);
- $obj->setRepTabConnection($repTabConnection);
- $obj->setRepTabCreateDate($repTabCreateDate);
- $obj->setRepTabStatus($repTabStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $repTabUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($repTabUid, $proUid, $repTabName, $repTabType, $repTabGrid, $repTabConnection, $repTabCreateDate, $repTabStatus)
- {
- try {
- $obj = ReportTablePeer::retrieveByPK($repTabUid);
-
- $obj->setProUid($proUid);
- $obj->setRepTabName($repTabName);
- $obj->setRepTabType($repTabType);
- $obj->setRepTabGrid($repTabGrid);
- $obj->setRepTabConnection($repTabConnection);
- $obj->setRepTabCreateDate($repTabCreateDate);
- $obj->setRepTabStatus($repTabStatus);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $repTabUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($repTabUid)
- {
- $conn = Propel::getConnection(ReportTablePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ReportTablePeer::retrieveByPK($repTabUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ReportVar.php b/workflow/engine/services/rest/crud/ReportVar.php
index 5e24fd3fb..a17162431 100644
--- a/workflow/engine/services/rest/crud/ReportVar.php
+++ b/workflow/engine/services/rest/crud/ReportVar.php
@@ -40,83 +40,5 @@ class Services_Rest_ReportVar
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $repVarUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($repVarUid, $proUid, $repTabUid, $repVarName, $repVarType)
- {
- try {
- $result = array();
- $obj = new ReportVar();
-
- $obj->setRepVarUid($repVarUid);
- $obj->setProUid($proUid);
- $obj->setRepTabUid($repTabUid);
- $obj->setRepVarName($repVarName);
- $obj->setRepVarType($repVarType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $repVarUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($repVarUid, $proUid, $repTabUid, $repVarName, $repVarType)
- {
- try {
- $obj = ReportVarPeer::retrieveByPK($repVarUid);
-
- $obj->setProUid($proUid);
- $obj->setRepTabUid($repTabUid);
- $obj->setRepVarName($repVarName);
- $obj->setRepVarType($repVarType);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $repVarUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($repVarUid)
- {
- $conn = Propel::getConnection(ReportVarPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ReportVarPeer::retrieveByPK($repVarUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Route.php b/workflow/engine/services/rest/crud/Route.php
index c6cf2e929..854005cda 100644
--- a/workflow/engine/services/rest/crud/Route.php
+++ b/workflow/engine/services/rest/crud/Route.php
@@ -52,107 +52,5 @@ class Services_Rest_Route
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $rouUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($rouUid, $rouParent, $proUid, $tasUid, $rouNextTask, $rouCase, $rouType, $rouCondition, $rouToLastUser, $rouOptional, $rouSendEmail, $rouSourceanchor, $rouTargetanchor, $rouToPort, $rouFromPort, $rouEvnUid, $gatUid)
- {
- try {
- $result = array();
- $obj = new Route();
-
- $obj->setRouUid($rouUid);
- $obj->setRouParent($rouParent);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setRouNextTask($rouNextTask);
- $obj->setRouCase($rouCase);
- $obj->setRouType($rouType);
- $obj->setRouCondition($rouCondition);
- $obj->setRouToLastUser($rouToLastUser);
- $obj->setRouOptional($rouOptional);
- $obj->setRouSendEmail($rouSendEmail);
- $obj->setRouSourceanchor($rouSourceanchor);
- $obj->setRouTargetanchor($rouTargetanchor);
- $obj->setRouToPort($rouToPort);
- $obj->setRouFromPort($rouFromPort);
- $obj->setRouEvnUid($rouEvnUid);
- $obj->setGatUid($gatUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $rouUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($rouUid, $rouParent, $proUid, $tasUid, $rouNextTask, $rouCase, $rouType, $rouCondition, $rouToLastUser, $rouOptional, $rouSendEmail, $rouSourceanchor, $rouTargetanchor, $rouToPort, $rouFromPort, $rouEvnUid, $gatUid)
- {
- try {
- $obj = RoutePeer::retrieveByPK($rouUid);
-
- $obj->setRouParent($rouParent);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setRouNextTask($rouNextTask);
- $obj->setRouCase($rouCase);
- $obj->setRouType($rouType);
- $obj->setRouCondition($rouCondition);
- $obj->setRouToLastUser($rouToLastUser);
- $obj->setRouOptional($rouOptional);
- $obj->setRouSendEmail($rouSendEmail);
- $obj->setRouSourceanchor($rouSourceanchor);
- $obj->setRouTargetanchor($rouTargetanchor);
- $obj->setRouToPort($rouToPort);
- $obj->setRouFromPort($rouFromPort);
- $obj->setRouEvnUid($rouEvnUid);
- $obj->setGatUid($gatUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $rouUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($rouUid)
- {
- $conn = Propel::getConnection(RoutePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = RoutePeer::retrieveByPK($rouUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Session.php b/workflow/engine/services/rest/crud/Session.php
index 039342203..66de99c0d 100644
--- a/workflow/engine/services/rest/crud/Session.php
+++ b/workflow/engine/services/rest/crud/Session.php
@@ -42,87 +42,5 @@ class Services_Rest_Session
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $sesUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($sesUid, $sesStatus, $usrUid, $sesRemoteIp, $sesInitDate, $sesDueDate, $sesEndDate)
- {
- try {
- $result = array();
- $obj = new Session();
-
- $obj->setSesUid($sesUid);
- $obj->setSesStatus($sesStatus);
- $obj->setUsrUid($usrUid);
- $obj->setSesRemoteIp($sesRemoteIp);
- $obj->setSesInitDate($sesInitDate);
- $obj->setSesDueDate($sesDueDate);
- $obj->setSesEndDate($sesEndDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $sesUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($sesUid, $sesStatus, $usrUid, $sesRemoteIp, $sesInitDate, $sesDueDate, $sesEndDate)
- {
- try {
- $obj = SessionPeer::retrieveByPK($sesUid);
-
- $obj->setSesStatus($sesStatus);
- $obj->setUsrUid($usrUid);
- $obj->setSesRemoteIp($sesRemoteIp);
- $obj->setSesInitDate($sesInitDate);
- $obj->setSesDueDate($sesDueDate);
- $obj->setSesEndDate($sesEndDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $sesUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($sesUid)
- {
- $conn = Propel::getConnection(SessionPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = SessionPeer::retrieveByPK($sesUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/ShadowTable.php b/workflow/engine/services/rest/crud/ShadowTable.php
index d2a5220b2..e1b640e3a 100644
--- a/workflow/engine/services/rest/crud/ShadowTable.php
+++ b/workflow/engine/services/rest/crud/ShadowTable.php
@@ -42,87 +42,5 @@ class Services_Rest_ShadowTable
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $shdUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($shdUid, $addTabUid, $shdAction, $shdDetails, $usrUid, $appUid, $shdDate)
- {
- try {
- $result = array();
- $obj = new ShadowTable();
-
- $obj->setShdUid($shdUid);
- $obj->setAddTabUid($addTabUid);
- $obj->setShdAction($shdAction);
- $obj->setShdDetails($shdDetails);
- $obj->setUsrUid($usrUid);
- $obj->setAppUid($appUid);
- $obj->setShdDate($shdDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $shdUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($shdUid, $addTabUid, $shdAction, $shdDetails, $usrUid, $appUid, $shdDate)
- {
- try {
- $obj = ShadowTablePeer::retrieveByPK($shdUid);
-
- $obj->setAddTabUid($addTabUid);
- $obj->setShdAction($shdAction);
- $obj->setShdDetails($shdDetails);
- $obj->setUsrUid($usrUid);
- $obj->setAppUid($appUid);
- $obj->setShdDate($shdDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $shdUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($shdUid)
- {
- $conn = Propel::getConnection(ShadowTablePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = ShadowTablePeer::retrieveByPK($shdUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Stage.php b/workflow/engine/services/rest/crud/Stage.php
index 90deeb86e..0801d853e 100644
--- a/workflow/engine/services/rest/crud/Stage.php
+++ b/workflow/engine/services/rest/crud/Stage.php
@@ -40,83 +40,5 @@ class Services_Rest_Stage
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $stgUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($stgUid, $proUid, $stgPosx, $stgPosy, $stgIndex)
- {
- try {
- $result = array();
- $obj = new Stage();
-
- $obj->setStgUid($stgUid);
- $obj->setProUid($proUid);
- $obj->setStgPosx($stgPosx);
- $obj->setStgPosy($stgPosy);
- $obj->setStgIndex($stgIndex);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $stgUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($stgUid, $proUid, $stgPosx, $stgPosy, $stgIndex)
- {
- try {
- $obj = StagePeer::retrieveByPK($stgUid);
-
- $obj->setProUid($proUid);
- $obj->setStgPosx($stgPosx);
- $obj->setStgPosy($stgPosy);
- $obj->setStgIndex($stgIndex);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $stgUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($stgUid)
- {
- $conn = Propel::getConnection(StagePeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = StagePeer::retrieveByPK($stgUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Step.php b/workflow/engine/services/rest/crud/Step.php
index 51843bcc2..ea584a83c 100644
--- a/workflow/engine/services/rest/crud/Step.php
+++ b/workflow/engine/services/rest/crud/Step.php
@@ -43,89 +43,5 @@ class Services_Rest_Step
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $stepUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($stepUid, $proUid, $tasUid, $stepTypeObj, $stepUidObj, $stepCondition, $stepPosition, $stepMode)
- {
- try {
- $result = array();
- $obj = new Step();
-
- $obj->setStepUid($stepUid);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setStepTypeObj($stepTypeObj);
- $obj->setStepUidObj($stepUidObj);
- $obj->setStepCondition($stepCondition);
- $obj->setStepPosition($stepPosition);
- $obj->setStepMode($stepMode);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $stepUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($stepUid, $proUid, $tasUid, $stepTypeObj, $stepUidObj, $stepCondition, $stepPosition, $stepMode)
- {
- try {
- $obj = StepPeer::retrieveByPK($stepUid);
-
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setStepTypeObj($stepTypeObj);
- $obj->setStepUidObj($stepUidObj);
- $obj->setStepCondition($stepCondition);
- $obj->setStepPosition($stepPosition);
- $obj->setStepMode($stepMode);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $stepUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($stepUid)
- {
- $conn = Propel::getConnection(StepPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = StepPeer::retrieveByPK($stepUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/StepSupervisor.php b/workflow/engine/services/rest/crud/StepSupervisor.php
index 08585f53d..fa91a1220 100644
--- a/workflow/engine/services/rest/crud/StepSupervisor.php
+++ b/workflow/engine/services/rest/crud/StepSupervisor.php
@@ -40,83 +40,5 @@ class Services_Rest_StepSupervisor
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $stepUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($stepUid, $proUid, $stepTypeObj, $stepUidObj, $stepPosition)
- {
- try {
- $result = array();
- $obj = new StepSupervisor();
-
- $obj->setStepUid($stepUid);
- $obj->setProUid($proUid);
- $obj->setStepTypeObj($stepTypeObj);
- $obj->setStepUidObj($stepUidObj);
- $obj->setStepPosition($stepPosition);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $stepUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($stepUid, $proUid, $stepTypeObj, $stepUidObj, $stepPosition)
- {
- try {
- $obj = StepSupervisorPeer::retrieveByPK($stepUid);
-
- $obj->setProUid($proUid);
- $obj->setStepTypeObj($stepTypeObj);
- $obj->setStepUidObj($stepUidObj);
- $obj->setStepPosition($stepPosition);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $stepUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($stepUid)
- {
- $conn = Propel::getConnection(StepSupervisorPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = StepSupervisorPeer::retrieveByPK($stepUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/StepTrigger.php b/workflow/engine/services/rest/crud/StepTrigger.php
index 07e0077b2..2481de234 100644
--- a/workflow/engine/services/rest/crud/StepTrigger.php
+++ b/workflow/engine/services/rest/crud/StepTrigger.php
@@ -41,82 +41,5 @@ class Services_Rest_StepTrigger
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $stepUid, $tasUid, $triUid, $stType Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($stepUid, $tasUid, $triUid, $stType, $stCondition, $stPosition)
- {
- try {
- $result = array();
- $obj = new StepTrigger();
-
- $obj->setStepUid($stepUid);
- $obj->setTasUid($tasUid);
- $obj->setTriUid($triUid);
- $obj->setStType($stType);
- $obj->setStCondition($stCondition);
- $obj->setStPosition($stPosition);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $stepUid, $tasUid, $triUid, $stType Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($stepUid, $tasUid, $triUid, $stType, $stCondition, $stPosition)
- {
- try {
- $obj = StepTriggerPeer::retrieveByPK($stepUid, $tasUid, $triUid, $stType);
-
- $obj->setStCondition($stCondition);
- $obj->setStPosition($stPosition);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $stepUid, $tasUid, $triUid, $stType Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($stepUid, $tasUid, $triUid, $stType)
- {
- $conn = Propel::getConnection(StepTriggerPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = StepTriggerPeer::retrieveByPK($stepUid, $tasUid, $triUid, $stType);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/SubApplication.php b/workflow/engine/services/rest/crud/SubApplication.php
index 6f1319219..441a4abb8 100644
--- a/workflow/engine/services/rest/crud/SubApplication.php
+++ b/workflow/engine/services/rest/crud/SubApplication.php
@@ -44,88 +44,5 @@ class Services_Rest_SubApplication
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $appUid, $appParent, $delIndexParent, $delThreadParent Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($appUid, $appParent, $delIndexParent, $delThreadParent, $saStatus, $saValuesOut, $saValuesIn, $saInitDate, $saFinishDate)
- {
- try {
- $result = array();
- $obj = new SubApplication();
-
- $obj->setAppUid($appUid);
- $obj->setAppParent($appParent);
- $obj->setDelIndexParent($delIndexParent);
- $obj->setDelThreadParent($delThreadParent);
- $obj->setSaStatus($saStatus);
- $obj->setSaValuesOut($saValuesOut);
- $obj->setSaValuesIn($saValuesIn);
- $obj->setSaInitDate($saInitDate);
- $obj->setSaFinishDate($saFinishDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $appUid, $appParent, $delIndexParent, $delThreadParent Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($appUid, $appParent, $delIndexParent, $delThreadParent, $saStatus, $saValuesOut, $saValuesIn, $saInitDate, $saFinishDate)
- {
- try {
- $obj = SubApplicationPeer::retrieveByPK($appUid, $appParent, $delIndexParent, $delThreadParent);
-
- $obj->setSaStatus($saStatus);
- $obj->setSaValuesOut($saValuesOut);
- $obj->setSaValuesIn($saValuesIn);
- $obj->setSaInitDate($saInitDate);
- $obj->setSaFinishDate($saFinishDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $appUid, $appParent, $delIndexParent, $delThreadParent Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($appUid, $appParent, $delIndexParent, $delThreadParent)
- {
- $conn = Propel::getConnection(SubApplicationPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = SubApplicationPeer::retrieveByPK($appUid, $appParent, $delIndexParent, $delThreadParent);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/SubProcess.php b/workflow/engine/services/rest/crud/SubProcess.php
index 969881dbb..d404743f3 100644
--- a/workflow/engine/services/rest/crud/SubProcess.php
+++ b/workflow/engine/services/rest/crud/SubProcess.php
@@ -47,97 +47,5 @@ class Services_Rest_SubProcess
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $spUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($spUid, $proUid, $tasUid, $proParent, $tasParent, $spType, $spSynchronous, $spSynchronousType, $spSynchronousWait, $spVariablesOut, $spVariablesIn, $spGridIn)
- {
- try {
- $result = array();
- $obj = new SubProcess();
-
- $obj->setSpUid($spUid);
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setProParent($proParent);
- $obj->setTasParent($tasParent);
- $obj->setSpType($spType);
- $obj->setSpSynchronous($spSynchronous);
- $obj->setSpSynchronousType($spSynchronousType);
- $obj->setSpSynchronousWait($spSynchronousWait);
- $obj->setSpVariablesOut($spVariablesOut);
- $obj->setSpVariablesIn($spVariablesIn);
- $obj->setSpGridIn($spGridIn);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $spUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($spUid, $proUid, $tasUid, $proParent, $tasParent, $spType, $spSynchronous, $spSynchronousType, $spSynchronousWait, $spVariablesOut, $spVariablesIn, $spGridIn)
- {
- try {
- $obj = SubProcessPeer::retrieveByPK($spUid);
-
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setProParent($proParent);
- $obj->setTasParent($tasParent);
- $obj->setSpType($spType);
- $obj->setSpSynchronous($spSynchronous);
- $obj->setSpSynchronousType($spSynchronousType);
- $obj->setSpSynchronousWait($spSynchronousWait);
- $obj->setSpVariablesOut($spVariablesOut);
- $obj->setSpVariablesIn($spVariablesIn);
- $obj->setSpGridIn($spGridIn);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $spUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($spUid)
- {
- $conn = Propel::getConnection(SubProcessPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = SubProcessPeer::retrieveByPK($spUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/SwimlanesElements.php b/workflow/engine/services/rest/crud/SwimlanesElements.php
index 9991cfead..8b4443d40 100644
--- a/workflow/engine/services/rest/crud/SwimlanesElements.php
+++ b/workflow/engine/services/rest/crud/SwimlanesElements.php
@@ -43,89 +43,5 @@ class Services_Rest_SwimlanesElements
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $swiUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($swiUid, $proUid, $swiType, $swiX, $swiY, $swiWidth, $swiHeight, $swiNextUid)
- {
- try {
- $result = array();
- $obj = new SwimlanesElements();
-
- $obj->setSwiUid($swiUid);
- $obj->setProUid($proUid);
- $obj->setSwiType($swiType);
- $obj->setSwiX($swiX);
- $obj->setSwiY($swiY);
- $obj->setSwiWidth($swiWidth);
- $obj->setSwiHeight($swiHeight);
- $obj->setSwiNextUid($swiNextUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $swiUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($swiUid, $proUid, $swiType, $swiX, $swiY, $swiWidth, $swiHeight, $swiNextUid)
- {
- try {
- $obj = SwimlanesElementsPeer::retrieveByPK($swiUid);
-
- $obj->setProUid($proUid);
- $obj->setSwiType($swiType);
- $obj->setSwiX($swiX);
- $obj->setSwiY($swiY);
- $obj->setSwiWidth($swiWidth);
- $obj->setSwiHeight($swiHeight);
- $obj->setSwiNextUid($swiNextUid);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $swiUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($swiUid)
- {
- $conn = Propel::getConnection(SwimlanesElementsPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = SwimlanesElementsPeer::retrieveByPK($swiUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Task.php b/workflow/engine/services/rest/crud/Task.php
index 9caae43ec..3ea0f097c 100644
--- a/workflow/engine/services/rest/crud/Task.php
+++ b/workflow/engine/services/rest/crud/Task.php
@@ -76,155 +76,5 @@ class Services_Rest_Task
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $tasUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($proUid, $tasUid, $tasType, $tasDuration, $tasDelayType, $tasTemporizer, $tasTypeDay, $tasTimeunit, $tasAlert, $tasPriorityVariable, $tasAssignType, $tasAssignVariable, $tasMiInstanceVariable, $tasMiCompleteVariable, $tasAssignLocation, $tasAssignLocationAdhoc, $tasTransferFly, $tasLastAssigned, $tasUser, $tasCanUpload, $tasViewUpload, $tasViewAdditionalDocumentation, $tasCanCancel, $tasOwnerApp, $stgUid, $tasCanPause, $tasCanSendMessage, $tasCanDeleteDocs, $tasSelfService, $tasStart, $tasToLastUser, $tasSendLastEmail, $tasDerivation, $tasPosx, $tasPosy, $tasWidth, $tasHeight, $tasColor, $tasEvnUid, $tasBoundary, $tasDerivationScreenTpl)
- {
- try {
- $result = array();
- $obj = new Task();
-
- $obj->setProUid($proUid);
- $obj->setTasUid($tasUid);
- $obj->setTasType($tasType);
- $obj->setTasDuration($tasDuration);
- $obj->setTasDelayType($tasDelayType);
- $obj->setTasTemporizer($tasTemporizer);
- $obj->setTasTypeDay($tasTypeDay);
- $obj->setTasTimeunit($tasTimeunit);
- $obj->setTasAlert($tasAlert);
- $obj->setTasPriorityVariable($tasPriorityVariable);
- $obj->setTasAssignType($tasAssignType);
- $obj->setTasAssignVariable($tasAssignVariable);
- $obj->setTasMiInstanceVariable($tasMiInstanceVariable);
- $obj->setTasMiCompleteVariable($tasMiCompleteVariable);
- $obj->setTasAssignLocation($tasAssignLocation);
- $obj->setTasAssignLocationAdhoc($tasAssignLocationAdhoc);
- $obj->setTasTransferFly($tasTransferFly);
- $obj->setTasLastAssigned($tasLastAssigned);
- $obj->setTasUser($tasUser);
- $obj->setTasCanUpload($tasCanUpload);
- $obj->setTasViewUpload($tasViewUpload);
- $obj->setTasViewAdditionalDocumentation($tasViewAdditionalDocumentation);
- $obj->setTasCanCancel($tasCanCancel);
- $obj->setTasOwnerApp($tasOwnerApp);
- $obj->setStgUid($stgUid);
- $obj->setTasCanPause($tasCanPause);
- $obj->setTasCanSendMessage($tasCanSendMessage);
- $obj->setTasCanDeleteDocs($tasCanDeleteDocs);
- $obj->setTasSelfService($tasSelfService);
- $obj->setTasStart($tasStart);
- $obj->setTasToLastUser($tasToLastUser);
- $obj->setTasSendLastEmail($tasSendLastEmail);
- $obj->setTasDerivation($tasDerivation);
- $obj->setTasPosx($tasPosx);
- $obj->setTasPosy($tasPosy);
- $obj->setTasWidth($tasWidth);
- $obj->setTasHeight($tasHeight);
- $obj->setTasColor($tasColor);
- $obj->setTasEvnUid($tasEvnUid);
- $obj->setTasBoundary($tasBoundary);
- $obj->setTasDerivationScreenTpl($tasDerivationScreenTpl);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $tasUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($proUid, $tasUid, $tasType, $tasDuration, $tasDelayType, $tasTemporizer, $tasTypeDay, $tasTimeunit, $tasAlert, $tasPriorityVariable, $tasAssignType, $tasAssignVariable, $tasMiInstanceVariable, $tasMiCompleteVariable, $tasAssignLocation, $tasAssignLocationAdhoc, $tasTransferFly, $tasLastAssigned, $tasUser, $tasCanUpload, $tasViewUpload, $tasViewAdditionalDocumentation, $tasCanCancel, $tasOwnerApp, $stgUid, $tasCanPause, $tasCanSendMessage, $tasCanDeleteDocs, $tasSelfService, $tasStart, $tasToLastUser, $tasSendLastEmail, $tasDerivation, $tasPosx, $tasPosy, $tasWidth, $tasHeight, $tasColor, $tasEvnUid, $tasBoundary, $tasDerivationScreenTpl)
- {
- try {
- $obj = TaskPeer::retrieveByPK($tasUid);
-
- $obj->setProUid($proUid);
- $obj->setTasType($tasType);
- $obj->setTasDuration($tasDuration);
- $obj->setTasDelayType($tasDelayType);
- $obj->setTasTemporizer($tasTemporizer);
- $obj->setTasTypeDay($tasTypeDay);
- $obj->setTasTimeunit($tasTimeunit);
- $obj->setTasAlert($tasAlert);
- $obj->setTasPriorityVariable($tasPriorityVariable);
- $obj->setTasAssignType($tasAssignType);
- $obj->setTasAssignVariable($tasAssignVariable);
- $obj->setTasMiInstanceVariable($tasMiInstanceVariable);
- $obj->setTasMiCompleteVariable($tasMiCompleteVariable);
- $obj->setTasAssignLocation($tasAssignLocation);
- $obj->setTasAssignLocationAdhoc($tasAssignLocationAdhoc);
- $obj->setTasTransferFly($tasTransferFly);
- $obj->setTasLastAssigned($tasLastAssigned);
- $obj->setTasUser($tasUser);
- $obj->setTasCanUpload($tasCanUpload);
- $obj->setTasViewUpload($tasViewUpload);
- $obj->setTasViewAdditionalDocumentation($tasViewAdditionalDocumentation);
- $obj->setTasCanCancel($tasCanCancel);
- $obj->setTasOwnerApp($tasOwnerApp);
- $obj->setStgUid($stgUid);
- $obj->setTasCanPause($tasCanPause);
- $obj->setTasCanSendMessage($tasCanSendMessage);
- $obj->setTasCanDeleteDocs($tasCanDeleteDocs);
- $obj->setTasSelfService($tasSelfService);
- $obj->setTasStart($tasStart);
- $obj->setTasToLastUser($tasToLastUser);
- $obj->setTasSendLastEmail($tasSendLastEmail);
- $obj->setTasDerivation($tasDerivation);
- $obj->setTasPosx($tasPosx);
- $obj->setTasPosy($tasPosy);
- $obj->setTasWidth($tasWidth);
- $obj->setTasHeight($tasHeight);
- $obj->setTasColor($tasColor);
- $obj->setTasEvnUid($tasEvnUid);
- $obj->setTasBoundary($tasBoundary);
- $obj->setTasDerivationScreenTpl($tasDerivationScreenTpl);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $tasUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($tasUid)
- {
- $conn = Propel::getConnection(TaskPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = TaskPeer::retrieveByPK($tasUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/TaskUser.php b/workflow/engine/services/rest/crud/TaskUser.php
index fd8997516..44f5e5c14 100644
--- a/workflow/engine/services/rest/crud/TaskUser.php
+++ b/workflow/engine/services/rest/crud/TaskUser.php
@@ -39,78 +39,5 @@ class Services_Rest_TaskUser
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $tasUid, $usrUid, $tuType, $tuRelation Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($tasUid, $usrUid, $tuType, $tuRelation)
- {
- try {
- $result = array();
- $obj = new TaskUser();
-
- $obj->setTasUid($tasUid);
- $obj->setUsrUid($usrUid);
- $obj->setTuType($tuType);
- $obj->setTuRelation($tuRelation);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $tasUid, $usrUid, $tuType, $tuRelation Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($tasUid, $usrUid, $tuType, $tuRelation)
- {
- try {
- $obj = TaskUserPeer::retrieveByPK($tasUid, $usrUid, $tuType, $tuRelation);
-
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $tasUid, $usrUid, $tuType, $tuRelation Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($tasUid, $usrUid, $tuType, $tuRelation)
- {
- $conn = Propel::getConnection(TaskUserPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = TaskUserPeer::retrieveByPK($tasUid, $usrUid, $tuType, $tuRelation);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Translation.php b/workflow/engine/services/rest/crud/Translation.php
index 81a06d46e..0a8908ee5 100644
--- a/workflow/engine/services/rest/crud/Translation.php
+++ b/workflow/engine/services/rest/crud/Translation.php
@@ -40,81 +40,5 @@ class Services_Rest_Translation
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $trnCategory, $trnId, $trnLang Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($trnCategory, $trnId, $trnLang, $trnValue, $trnUpdateDate)
- {
- try {
- $result = array();
- $obj = new Translation();
-
- $obj->setTrnCategory($trnCategory);
- $obj->setTrnId($trnId);
- $obj->setTrnLang($trnLang);
- $obj->setTrnValue($trnValue);
- $obj->setTrnUpdateDate($trnUpdateDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $trnCategory, $trnId, $trnLang Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($trnCategory, $trnId, $trnLang, $trnValue, $trnUpdateDate)
- {
- try {
- $obj = TranslationPeer::retrieveByPK($trnCategory, $trnId, $trnLang);
-
- $obj->setTrnValue($trnValue);
- $obj->setTrnUpdateDate($trnUpdateDate);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $trnCategory, $trnId, $trnLang Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($trnCategory, $trnId, $trnLang)
- {
- $conn = Propel::getConnection(TranslationPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = TranslationPeer::retrieveByPK($trnCategory, $trnId, $trnLang);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Triggers.php b/workflow/engine/services/rest/crud/Triggers.php
index 55fe08a21..645cb5b49 100644
--- a/workflow/engine/services/rest/crud/Triggers.php
+++ b/workflow/engine/services/rest/crud/Triggers.php
@@ -40,83 +40,5 @@ class Services_Rest_Triggers
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $triUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($triUid, $proUid, $triType, $triWebbot, $triParam)
- {
- try {
- $result = array();
- $obj = new Triggers();
-
- $obj->setTriUid($triUid);
- $obj->setProUid($proUid);
- $obj->setTriType($triType);
- $obj->setTriWebbot($triWebbot);
- $obj->setTriParam($triParam);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $triUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($triUid, $proUid, $triType, $triWebbot, $triParam)
- {
- try {
- $obj = TriggersPeer::retrieveByPK($triUid);
-
- $obj->setProUid($proUid);
- $obj->setTriType($triType);
- $obj->setTriWebbot($triWebbot);
- $obj->setTriParam($triParam);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $triUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($triUid)
- {
- $conn = Propel::getConnection(TriggersPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = TriggersPeer::retrieveByPK($triUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/Users.php b/workflow/engine/services/rest/crud/Users.php
index d09edac77..ea7d427a9 100644
--- a/workflow/engine/services/rest/crud/Users.php
+++ b/workflow/engine/services/rest/crud/Users.php
@@ -61,125 +61,5 @@ class Services_Rest_Users
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($usrUid, $usrUsername, $usrPassword, $usrFirstname, $usrLastname, $usrEmail, $usrDueDate, $usrCreateDate, $usrUpdateDate, $usrStatus, $usrCountry, $usrCity, $usrLocation, $usrAddress, $usrPhone, $usrFax, $usrCellular, $usrZipCode, $depUid, $usrPosition, $usrResume, $usrBirthday, $usrRole, $usrReportsTo, $usrReplacedBy, $usrUx)
- {
- try {
- $result = array();
- $obj = new Users();
-
- $obj->setUsrUid($usrUid);
- $obj->setUsrUsername($usrUsername);
- $obj->setUsrPassword($usrPassword);
- $obj->setUsrFirstname($usrFirstname);
- $obj->setUsrLastname($usrLastname);
- $obj->setUsrEmail($usrEmail);
- $obj->setUsrDueDate($usrDueDate);
- $obj->setUsrCreateDate($usrCreateDate);
- $obj->setUsrUpdateDate($usrUpdateDate);
- $obj->setUsrStatus($usrStatus);
- $obj->setUsrCountry($usrCountry);
- $obj->setUsrCity($usrCity);
- $obj->setUsrLocation($usrLocation);
- $obj->setUsrAddress($usrAddress);
- $obj->setUsrPhone($usrPhone);
- $obj->setUsrFax($usrFax);
- $obj->setUsrCellular($usrCellular);
- $obj->setUsrZipCode($usrZipCode);
- $obj->setDepUid($depUid);
- $obj->setUsrPosition($usrPosition);
- $obj->setUsrResume($usrResume);
- $obj->setUsrBirthday($usrBirthday);
- $obj->setUsrRole($usrRole);
- $obj->setUsrReportsTo($usrReportsTo);
- $obj->setUsrReplacedBy($usrReplacedBy);
- $obj->setUsrUx($usrUx);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($usrUid, $usrUsername, $usrPassword, $usrFirstname, $usrLastname, $usrEmail, $usrDueDate, $usrCreateDate, $usrUpdateDate, $usrStatus, $usrCountry, $usrCity, $usrLocation, $usrAddress, $usrPhone, $usrFax, $usrCellular, $usrZipCode, $depUid, $usrPosition, $usrResume, $usrBirthday, $usrRole, $usrReportsTo, $usrReplacedBy, $usrUx)
- {
- try {
- $obj = UsersPeer::retrieveByPK($usrUid);
-
- $obj->setUsrUsername($usrUsername);
- $obj->setUsrPassword($usrPassword);
- $obj->setUsrFirstname($usrFirstname);
- $obj->setUsrLastname($usrLastname);
- $obj->setUsrEmail($usrEmail);
- $obj->setUsrDueDate($usrDueDate);
- $obj->setUsrCreateDate($usrCreateDate);
- $obj->setUsrUpdateDate($usrUpdateDate);
- $obj->setUsrStatus($usrStatus);
- $obj->setUsrCountry($usrCountry);
- $obj->setUsrCity($usrCity);
- $obj->setUsrLocation($usrLocation);
- $obj->setUsrAddress($usrAddress);
- $obj->setUsrPhone($usrPhone);
- $obj->setUsrFax($usrFax);
- $obj->setUsrCellular($usrCellular);
- $obj->setUsrZipCode($usrZipCode);
- $obj->setDepUid($depUid);
- $obj->setUsrPosition($usrPosition);
- $obj->setUsrResume($usrResume);
- $obj->setUsrBirthday($usrBirthday);
- $obj->setUsrRole($usrRole);
- $obj->setUsrReportsTo($usrReportsTo);
- $obj->setUsrReplacedBy($usrReplacedBy);
- $obj->setUsrUx($usrUx);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($usrUid)
- {
- $conn = Propel::getConnection(UsersPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = UsersPeer::retrieveByPK($usrUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}
diff --git a/workflow/engine/services/rest/crud/UsersProperties.php b/workflow/engine/services/rest/crud/UsersProperties.php
index 6afdceb1a..80095b3bc 100644
--- a/workflow/engine/services/rest/crud/UsersProperties.php
+++ b/workflow/engine/services/rest/crud/UsersProperties.php
@@ -39,81 +39,5 @@ class Services_Rest_UsersProperties
return $result;
}
- /**
- * Implementation for 'POST' method for Rest API
- *
- * @param mixed $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function post($usrUid, $usrLastUpdateDate, $usrLoggedNextTime, $usrPasswordHistory)
- {
- try {
- $result = array();
- $obj = new UsersProperties();
-
- $obj->setUsrUid($usrUid);
- $obj->setUsrLastUpdateDate($usrLastUpdateDate);
- $obj->setUsrLoggedNextTime($usrLoggedNextTime);
- $obj->setUsrPasswordHistory($usrPasswordHistory);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'PUT' method for Rest API
- *
- * @param mixed $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function put($usrUid, $usrLastUpdateDate, $usrLoggedNextTime, $usrPasswordHistory)
- {
- try {
- $obj = UsersPropertiesPeer::retrieveByPK($usrUid);
-
- $obj->setUsrLastUpdateDate($usrLastUpdateDate);
- $obj->setUsrLoggedNextTime($usrLoggedNextTime);
- $obj->setUsrPasswordHistory($usrPasswordHistory);
-
- $obj->save();
- } catch (Exception $e) {
- throw new RestException(412, $e->getMessage());
- }
- }
-
- /**
- * Implementation for 'DELETE' method for Rest API
- *
- * @param mixed $usrUid Primary key
- *
- * @return array $result Returns array within multiple records or a single record depending if
- * a single selection was requested passing id(s) as param
- */
- protected function delete($usrUid)
- {
- $conn = Propel::getConnection(UsersPropertiesPeer::DATABASE_NAME);
-
- try {
- $conn->begin();
-
- $obj = UsersPropertiesPeer::retrieveByPK($usrUid);
- if (! is_object($obj)) {
- throw new RestException(412, 'Record does not exist.');
- }
- $obj->delete();
-
- $conn->commit();
- } catch (Exception $e) {
- $conn->rollback();
- throw new RestException(412, $e->getMessage());
- }
- }
-
}