F.3.3.1 CloseAndUpdate signature

This Method closes the File and applies updates to the ConnectionConfigurationSets. It can only be called if the File was opened for writing. If the Close Method is called, any cached data is discarded, and the ConnectionManager configuration is not changed.

The file content shall be a UABinaryFileDataType as defined in Table F.36.

The Client shall be authorised to modify the configuration for the ConnectionManager functionality when invoking this Method on the Server. It is recommended that this Method be restricted to Client connections that have the well-known Role ConfigureAdmin (see 5.9). If the file also contains SKS configuration, then it is recommended that the Client also have the well-known Role SecurityKeyServerAdmin (see OPC 10000-14).

The signature of the Method is described below, and the arguments are described in Table F.38.

Signature

	CloseAndUpdate (
		[in]	UInt32				FileHandle,
		[in]	Boolean			RequireCompleteUpdate,
		[in]	ConnectionConfigurationSetOperation[]		Operations,
		[out]	Boolean			ChangesApplied,
		[out]	StatusCode[]			OperationResults,
		[out]	NodeId[]			ConfigurationObjects
		);
	
Table F.38 – CloseAndUpdate Arguments
Argument Description
FileHandleThe handle of the previously opened file.
RequireCompleteUpdateIf TRUE, the modification is only applied if all changes can be applied to all objects.
Operations

Defines the operations to apply to a ConnectionManager’s ConnectionConfigurationSets for the array of ConnectionConfigurationSetConfDataType elements in the written file.

The length of the array and the order of its elements shall match the array of ConnectionConfigurationSetConfDataType in the written file.

ChangesApplied

If TRUE and RequireCompleteUpdate was set to TRUE, all changes were applied.

If TRUE and RequireCompleteUpdate was set to FALSE, one or more changes were applied.

If FALSE, no changes were applied.

Detailed errors are provided in the OperationResults argument.

OperationResults

Results of the Operations.

The length of the array and the order of its elements shall match the length and order of the Operations array.

ConfigurationObjects

NodeIds of the related Objects

If NodeIds are returned, the length of the array and the order of its elements shall match the array contained in the written file.

If the Server does not support the creation of NodeIds, the array is null or empty.

The possible Method result codes are formally defined in Table F.39, and the OperationResult Element Result Codes are defined in Table F.40.

Table F.39 – CloseAndUpdate Method Result Codes
ResultCode Description
Bad_TypeMismatchThe file content is not a UABinaryFileDataType with an array of ConnectionConfigurationSetConfDataType as Body.
Bad_InvalidArgumentThe FileHandle is not valid.
Bad_InvalidStateThe File was not opened for write access.
Bad_UserAccessDeniedThe Session user is not allowed to modify the ConnectionManager configuration.
Bad_NothingToDoThe array in the Body of the File is null or empty.
Table F.40 – CloseAndUpdate OperationResult Element Result Codes
ResultCode Description
Bad_BrowseNameDuplicatedA ConnectionConfigurationSet with the BrowseName already exists in the ConnectionConfigurationSetFolder.
The ConnectionConfigurationSet cannot be added.
Bad_NoMatchA ConnectionConfigurationSet with the BrowseName does not exist in the ConnectionConfigurationSetFolder.
The ConnectionConfigurationSet cannot be removed or replaced.
Bad_NothingToDoNo ConnectionConfigurationSetOperation was specified.
Bad_InvalidArgumentAn invalid combination of ConnectionConfigurationSetOperation was set, or a ConnectionConfigurationSetOperation unknown to the implementation.
Bad_UserAccessDeniedThe user has no permissions to modify the ConnectionConfigurationSets.
Bad_InvalidStateA ConnectionConfigurationSet with the name is currently being processed or edited. The ConnectionConfigurationSet cannot be removed or replaced.

The CloseAndUpdate Method representation in the AddressSpace is formally defined in Table F.41.

Table F.41 – CloseAndUpdate Method AddressSpace definition
Attribute Value
BrowseName4:CloseAndUpdate
References Node Class BrowseName DataType TypeDefinition Other
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyTypeM
0:HasPropertyVariable0:OutputArguments0:Argument[] 0:PropertyTypeM
ConformanceUnits
UAFX ConnectionManager File Configuration