Share via


SysFileDeployment Class [AX 2012]

The SysFileDeployment class is used for deploying files from the server to the clients.

Syntax

class SysFileDeployment

Run On

Called

Methods

  Method Description
Gg929362.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif copy
Gg929362.protmethod(en-us,AX.60).gif destinationPath Returns the destination path of the file, which is the path where the file is copied to.
Gg929362.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif filename Must be overridden to return the name of the file to deploy.
Gg929362.protmethod(en-us,AX.60).gif getClientVersion
Gg929362.pubmethod(en-us,AX.60).gif getServerVersion
Gg929362.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif isClientUpdated
Gg929362.pubmethod(en-us,AX.60).gif new Initializes a new instance of the Object class. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif parmClientVersion Gets the ClientVersion parameter.
Gg929362.pubmethod(en-us,AX.60).gif parmServerVersion Gets the ServerVersion parameter.
Gg929362.protmethod(en-us,AX.60).gif register
Gg929362.pubmethod(en-us,AX.60).gif run
Gg929362.pubmethod(en-us,AX.60).gif setServerVersion
Gg929362.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg929362.protmethod(en-us,AX.60).gif sourcePath Must return the source path of the file, which is the path where the file is copied from. If this method is not overridden, it assumes that the file is placed in the share/include directory.
Gg929362.pubmethod(en-us,AX.60).gif tempFilePrefix
Gg929362.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg929362.protmethod(en-us,AX.60).gif unRegister
Gg929362.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg929362.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg929362.privmethod(en-us,AX.60).gif Gg929362.static(en-us,AX.60).gif ::getServerFile
Gg929362.pubmethod(en-us,AX.60).gif Gg929362.static(en-us,AX.60).gif ::getServerFileTimeAccessed
Gg929362.pubmethod(en-us,AX.60).gif Gg929362.static(en-us,AX.60).gif ::getServerFileTimeCreated
Gg929362.pubmethod(en-us,AX.60).gif Gg929362.static(en-us,AX.60).gif ::getServerFileTimeModified
Gg929362.protmethod(en-us,AX.60).gif Gg929362.static(en-us,AX.60).gif ::isNameValid
Gg929362.pubmethod(en-us,AX.60).gif Gg929362.static(en-us,AX.60).gif ::setFileTimeServer2Client

Top

Remarks

The files will be copied through the Microsoft Dynamics AX client/server protocols, so do not worry about Microsoft Windows security aspects.

The file deployment feature will only copy newer or nonexistent files to the client. It performs the checks when the client starts for the first time.

To deploy a file, follow these steps:

  1. Create a class that extends either SysFileDeploymentFile Class or SysFileDeploymentDLL Class.

  2. Override the SysFileDeployment.filename Method so that it returns the name of the file.

  3. Modify the SysFileDeployer::filesToDeploy Method to also return the class ID of the new class.

  4. Make sure that the file is present in the share/include directory on the server. Otherwise, override the SysFileDeployment.sourcePath Method to return the path of the file.

  5. Override the SysFileDeployment.destinationPath Method to return the path where you want the file copied to. This is not necessary when extending SysFileDeploymentDLL Class, as it defaults to the bin directory.

  6. Change the build number of the application. It is done in the ApplicationVersion::buildNo Method. This is only necessary for a system that is already running.

Inheritance Hierarchy

Object Class
  SysFileDeployment Class
    SysFileDeploymentFile Class

See Also

SysFileDeploymentFile Class

SysFileDeploymentDLL Class