SysFileStoreManager Class [AX 2012]

The SysFileStoreManager class supplies an API to securely work with files that are supplied by or generated for clients.

Syntax

class SysFileStoreManager extends Object

Run On

Server

Methods

  Method Description
Gg929402.pubmethod(en-us,AX.60).gif addFile Creates mapping from client side file to server side temporary file.
Gg929402.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif close Marks the active SysFileStore as completed.
Gg929402.protmethod(en-us,AX.60).gif copyFileToClient
Gg929402.protmethod(en-us,AX.60).gif copyFileToServer
Gg929402.pubmethod(en-us,AX.60).gif delete Deletes the active SysFileStore record.
Gg929402.pubmethod(en-us,AX.60).gif deleteFile Deletes the SysFileStoreFile record indicated by the _sysFileStoreFileIdparameter.
Gg929402.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg929402.protmethod(en-us,AX.60).gif generateUniqueFileName
Gg929402.pubmethod(en-us,AX.60).gif getFileNameServer Retrieves the server side filename for the file indicated by the _sysFileStoreFileId parameter.
Gg929402.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg929402.protmethod(en-us,AX.60).gif insertSysFileStore
Gg929402.protmethod(en-us,AX.60).gif new Initializes a new instance of the SysFileStoreManager class. (Overrides the new Method.)
Gg929402.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.)
Gg929402.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.)
Gg929402.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif parmBatchJobId Gets or sets the BatchJobId parameter.
Gg929402.pubmethod(en-us,AX.60).gif parmDescription Gets or sets the Description parameter.
Gg929402.pubmethod(en-us,AX.60).gif parmSysFileStoreRecId Gets or sets the SysFileStoreRecId parameter.
Gg929402.pubmethod(en-us,AX.60).gif parmUserId Gets or sets the UserId parameter.
Gg929402.pubmethod(en-us,AX.60).gif saveToClient Saves all the files linked to the active SysFileStore record to the client.
Gg929402.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif uploadFile Uploads a file from client to the server and creates mapping from client side file to server side temporary file.
Gg929402.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.)
Gg929402.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg929402.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg929402.protmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::assertValidUser Asserts that the currently logged in user is either a system administrator or is the owner of the _sysFileStore record.
Gg929402.pubmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::construct Initializes a new instance of the SysFileStoreManager class.
Gg929402.protmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::copyFileToClient_Client
Gg929402.protmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::getPackedFileClient
Gg929402.protmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::getPackedFileServer
Gg929402.pubmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::newFileStoreManager Creates a new instance of SysFileStoreManager based on the supplied parameters.
Gg929402.pubmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::newFromSysFileStoreFileRecId Creates a new instance of SysFileStoreManager by using the supplied _sysFileStoreFileRecId parameter.
Gg929402.pubmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::newFromSysFileStoreRecId Creates a new instance of SysFileStoreManager by using the supplied _sysFileStoreRecId parameter.
Gg929402.pubmethod(en-us,AX.60).gif Gg929402.static(en-us,AX.60).gif ::promptSaveToClient Prompts the user for a location and saves the file to the client.

Top

Remarks

The RunBaseBatch classes can use this API to upload files that are supplied by the user at the time of scheduling, so that these are available at execution time. Other classes can also use this API to abstract the need for caching, so that files are always processed at server side, without the user having to know about UNC paths.

Inheritance Hierarchy

Object Class
  SysFileStoreManager Class