229 is_disabled
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
//variables.framework.docs={};
|
//variables.framework.docs={};
|
||||||
variables.framework.docs.APIName="svc-api";
|
variables.framework.docs.APIName="svc-api";
|
||||||
variables.framework.docs.APIVersion="0.229"; /*$ git config --global --unset user.password*/
|
variables.framework.docs.APIVersion="0.230"; /*$ git config --global --unset user.password*/
|
||||||
|
|
||||||
variables.framework.globalHeaders = structNew();
|
variables.framework.globalHeaders = structNew();
|
||||||
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
variables.framework.globalHeaders["Access-Control-Expose-Headers"] = "Location";
|
||||||
|
|||||||
@@ -480,6 +480,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
<m:field>u.shortname as creator_shortname</m:field>
|
<m:field>u.shortname as creator_shortname</m:field>
|
||||||
<m:field formatter=#request.castToBool#>sop.is_sensitive</m:field>
|
<m:field formatter=#request.castToBool#>sop.is_sensitive</m:field>
|
||||||
<m:field formatter=#request.castToBool#>sop.is_hidden</m:field>
|
<m:field formatter=#request.castToBool#>sop.is_hidden</m:field>
|
||||||
|
<m:field formatter=#request.castToBool#>sop.is_disabled</m:field>
|
||||||
<m:field>sop.man</m:field>
|
<m:field>sop.man</m:field>
|
||||||
|
|
||||||
<m:field>sop.func</m:field>
|
<m:field>sop.func</m:field>
|
||||||
@@ -716,6 +717,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
,sp.unique_scope
|
,sp.unique_scope
|
||||||
,sp.default_compute
|
,sp.default_compute
|
||||||
,sp.is_hidden
|
,sp.is_hidden
|
||||||
|
,sp.is_disabled
|
||||||
from svc_operation_cfs_subparam sp
|
from svc_operation_cfs_subparam sp
|
||||||
where sp.svc_operation_cfs_param_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.qParam.svc_operation_cfs_param_id#"/>
|
where sp.svc_operation_cfs_param_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.qParam.svc_operation_cfs_param_id#"/>
|
||||||
order by sp.sort
|
order by sp.sort
|
||||||
@@ -769,6 +771,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
"isRequired":#request.castToBool(local.qSubparam.is_required)#,
|
"isRequired":#request.castToBool(local.qSubparam.is_required)#,
|
||||||
"isSensitive":#request.castToBool(local.qSubparam.is_sensitive)#,
|
"isSensitive":#request.castToBool(local.qSubparam.is_sensitive)#,
|
||||||
"isHidden":#request.castToBool(local.qSubparam.is_hidden)#,
|
"isHidden":#request.castToBool(local.qSubparam.is_hidden)#,
|
||||||
|
"isHidden":#request.castToBool(local.qSubparam.is_disabled)#,
|
||||||
"refSvcId":"#local.qSubparam.ref_svc_id#",
|
"refSvcId":"#local.qSubparam.ref_svc_id#",
|
||||||
"uniqueScope":"#local.qSubparam.unique_scope#",
|
"uniqueScope":"#local.qSubparam.unique_scope#",
|
||||||
"defaultCompute":"#local.qSubparam.default_compute#",
|
"defaultCompute":"#local.qSubparam.default_compute#",
|
||||||
|
|||||||
@@ -87,6 +87,9 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
<m:field>sop.svc_operation_cfs_param</m:field>
|
<m:field>sop.svc_operation_cfs_param</m:field>
|
||||||
<m:field>sop.sort</m:field>
|
<m:field>sop.sort</m:field>
|
||||||
<m:field formatter=#request.castToBool#>sop.is_sensitive</m:field>
|
<m:field formatter=#request.castToBool#>sop.is_sensitive</m:field>
|
||||||
|
<m:field formatter=#request.castToBool#>sop.is_required</m:field>
|
||||||
|
<m:field formatter=#request.castToBool#>sop.is_hidden</m:field>
|
||||||
|
<m:field formatter=#request.castToBool#>sop.is_disabled</m:field>
|
||||||
<m:field>sop.data_type</m:field>
|
<m:field>sop.data_type</m:field>
|
||||||
<m:field formatter=#(x)=>((isArray(x) OR isEmpty(x))? x : listToArray(x))#>sop.value_list</m:field>
|
<m:field formatter=#(x)=>((isArray(x) OR isEmpty(x))? x : listToArray(x))#>sop.value_list</m:field>
|
||||||
<m:field>sop.default_value</m:field>
|
<m:field>sop.default_value</m:field>
|
||||||
@@ -220,7 +223,7 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
</cfquery>
|
</cfquery>
|
||||||
|
|
||||||
<cfquery name="local.qTemplateSvc" result="local.result">
|
<cfquery name="local.qTemplateSvc" result="local.result">
|
||||||
select so.svc_id, so.operation
|
select so.svc_id, so.operation, sop.is_disabled
|
||||||
from svc_operation_cfs_param sop
|
from svc_operation_cfs_param sop
|
||||||
join svc_operation so on (sop.svc_operation_id=so.svc_operation_id)
|
join svc_operation so on (sop.svc_operation_id=so.svc_operation_id)
|
||||||
where sop.svc_operation_cfs_param_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.svcOperationCfsParamId#"/>
|
where sop.svc_operation_cfs_param_id=<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.svcOperationCfsParamId#"/>
|
||||||
@@ -236,6 +239,9 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
<cfreturn representationOf(this.helper.formatMessage("Invalid CFS parameter", "Parameter specified does not belong to this operation")).withStatus(400)/>
|
<cfreturn representationOf(this.helper.formatMessage("Invalid CFS parameter", "Parameter specified does not belong to this operation")).withStatus(400)/>
|
||||||
</cfif>
|
</cfif>
|
||||||
|
|
||||||
|
<!--- <cfif local.qTemplateSvc.isDisabled GT 0>
|
||||||
|
<cfreturn noData().withStatus(202, "Accepted")/>
|
||||||
|
<cfelse> --->
|
||||||
<cfquery name="local.qSave">
|
<cfquery name="local.qSave">
|
||||||
insert into instance_operation_cfs_param (
|
insert into instance_operation_cfs_param (
|
||||||
instance_operation_cfs_param_uid,instance_operation_uid,svc_operation_cfs_param_id,param_value,note,dt_created,creator_id
|
instance_operation_cfs_param_uid,instance_operation_uid,svc_operation_cfs_param_id,param_value,note,dt_created,creator_id
|
||||||
@@ -248,7 +254,8 @@ arguments.requestArguments.specificationId=usrCustomerInfo.specificationId; //In
|
|||||||
,<cfqueryparam cfsqltype="cf_sql_timestamp" value="#Now()#" />
|
,<cfqueryparam cfsqltype="cf_sql_timestamp" value="#Now()#" />
|
||||||
,<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.usrId#" />
|
,<cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.usrId#" />
|
||||||
);
|
);
|
||||||
</cfquery>
|
</cfquery>
|
||||||
|
<!--- </cfif> --->
|
||||||
<!--- <cfcatch type="invalidParamValue">
|
<!--- <cfcatch type="invalidParamValue">
|
||||||
<cfreturn representationOf(this.helper.formatBadRequestError(cfcatch)).withStatus(400)/>
|
<cfreturn representationOf(this.helper.formatBadRequestError(cfcatch)).withStatus(400)/>
|
||||||
</cfcatch> --->
|
</cfcatch> --->
|
||||||
|
|||||||
@@ -81,6 +81,7 @@
|
|||||||
<m:field>p.ref_svc_id</m:field>
|
<m:field>p.ref_svc_id</m:field>
|
||||||
<m:field formatter=#request.castToBool#>p.is_required</m:field>
|
<m:field formatter=#request.castToBool#>p.is_required</m:field>
|
||||||
<m:field formatter=#request.castToBool#>p.is_hidden</m:field>
|
<m:field formatter=#request.castToBool#>p.is_hidden</m:field>
|
||||||
|
<m:field formatter=#request.castToBool#>p.is_disabled</m:field>
|
||||||
<m:field>p.default_value</m:field><!--- can be overridden by default_compute --->
|
<m:field>p.default_value</m:field><!--- can be overridden by default_compute --->
|
||||||
<m:field>p.default_compute</m:field>
|
<m:field>p.default_compute</m:field>
|
||||||
<m:field>p.regex</m:field>
|
<m:field>p.regex</m:field>
|
||||||
@@ -172,6 +173,7 @@
|
|||||||
,sp.expression
|
,sp.expression
|
||||||
,sp.is_required
|
,sp.is_required
|
||||||
,sp.is_hidden
|
,sp.is_hidden
|
||||||
|
,sp.is_disabled
|
||||||
,sp.descr
|
,sp.descr
|
||||||
,sp.man
|
,sp.man
|
||||||
,sp.default_value
|
,sp.default_value
|
||||||
@@ -242,6 +244,7 @@
|
|||||||
"defaultValue":"#def#",
|
"defaultValue":"#def#",
|
||||||
"isRequired":#request.castToBool(local.qSubparam.is_required)#,
|
"isRequired":#request.castToBool(local.qSubparam.is_required)#,
|
||||||
"isHidden":#request.castToBool(local.qSubparam.is_hidden)#,
|
"isHidden":#request.castToBool(local.qSubparam.is_hidden)#,
|
||||||
|
"isHidden":#request.castToBool(local.qSubparam.is_disabled)#,
|
||||||
"isSensitive":#request.castToBool(local.qSubparam.is_sensitive)#,
|
"isSensitive":#request.castToBool(local.qSubparam.is_sensitive)#,
|
||||||
"refSvcId":#local.qSubparam.ref_svc_id#,
|
"refSvcId":#local.qSubparam.ref_svc_id#,
|
||||||
"uniqueScope":"#local.qSubparam.unique_scope#",
|
"uniqueScope":"#local.qSubparam.unique_scope#",
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
<m:field>p.ref_svc_id</m:field>
|
<m:field>p.ref_svc_id</m:field>
|
||||||
<m:field formatter=#request.castToBool#>p.is_required</m:field>
|
<m:field formatter=#request.castToBool#>p.is_required</m:field>
|
||||||
<m:field formatter=#request.castToBool#>p.is_hidden</m:field>
|
<m:field formatter=#request.castToBool#>p.is_hidden</m:field>
|
||||||
|
<m:field formatter=#request.castToBool#>p.is_disabled</m:field>
|
||||||
<m:field>p.default_value</m:field><!--- can be overridden bu default_compute --->
|
<m:field>p.default_value</m:field><!--- can be overridden bu default_compute --->
|
||||||
<m:field>p.default_compute</m:field>
|
<m:field>p.default_compute</m:field>
|
||||||
<m:field>p.func</m:field>
|
<m:field>p.func</m:field>
|
||||||
|
|||||||
Reference in New Issue
Block a user