User Level
System Administrator
User LevelSystem Administrator SyntaxThe command uses this syntax.
Add LocationUse the Syntax
The Add Location clauses are:
Host ClauseThis clause identifies the system that is to contain the location being defined. If a host is not specified, the current host is assumed and assigned. If the location is to be physically located on a PC and accessed through a
network drive, the host name must be set to
Protocol and Port Clauses When creating a location object for captured stores, you can include the
parameters
This protocol is not related to the protocol used for file transfers between FCSs during synchronization operations. The HTTP/S protocol is always used for these operations. Each protocol has a default port that is used if not specified in the location definition. Include the Port clause to specify a port other than the default.
If a location does not have a protocol specified, 3DSpace looks at other object attributes to determine which protocol was likely intended.
These checks eliminate the need to add protocol/port parameters to store/locations added prior to version 9. Password ClauseThe password provides access to the DesignSync account. The Password clause uses the following syntax:
Path ClauseThe path identifies where the location is to be placed on the host. A location should NOT point to the same directory as a store since this could cause unnecessary file copying. When a location is defined, a directory for the captured files is created. If an invalid directory is specified for the PATH parameter during location or store creation, only a warning is issued. The transaction will not abort and the location or store is created with the invalid directory. Any checkin or copy operation using this new location or store will fail. For example, you could use the following clause:
An absolute path can also be entered; however, the parent directory must already exist. For example, in the following command, if the /stores directory does not exist on the target host, the location will not be created.
Prefix ClauseA prefix can be added to the path defined for a captured store or location to enhance file management operations. For more information, see Prefix Clause (for the store command). Permission ClauseFile permissions are no longer supported for captured stores, and have no effect on files and folders that are managed by the FCS.
User ClauseWhen moving files to/from a store location, the DesignSync username defines the DesignSync account used. The User clause uses the following syntax:
FCS ClauseIf using FCS for file checkins and checkouts with a captured location, you must specify the URL for the location’s server. Include the Web application name. The syntax is: fcs http://host:port/WEBAPPNAME For example: fcs http://host:port/ematrix If using Single Sign On (SSO) with FCS, the FCS URL should have the fully qualified domain name for the host. For example: fcs http://HOSTNAME.MatrixOne.net:PORT#/ematrix You can also specify a JPO that will return a URL. For example: fcs ${CLASS:prog} [-method methodName] [ args0 … argN] For information about FCS processing and configuration, see the File Collaboration Server Guide. Delete Trigger ClauseThe DeleteTrigger clause allows you to implement alternate behavior for when files are being deleted from a store or location. To add a no-delete policy on a location, you can use the out of the box implementation in com.matrixone.fcs.backend.NoFileDelete. For example:
You can also write your own Java class that implements the com.matrixone.fcs.mcs.DeleteTrigger interface to insert any customized behavior, such as altering the file delete list. It can be either a JPO or a regular Java class that can be found in the classpath. The DeleteTrigger that is set for a store automatically applies to all locations that are associated with that store, unless it is overridden at a particular location. Copy LocationYou can copy a location based on an existing location, and change the definition of the new location as part of the copy process. copy location SRC_NAME DST_NAME [MOD_ITEM {MOD_ITEM}];
Modify LocationAfter a location is defined, you can change the definition with the Modify Location command. This command lets you add or remove defining clauses and change the value of clause arguments.
Each modification clause is related to the clauses and arguments that define the location. When you modify a location, you first name the location and then list the modifications. For example, the following command changes the permissions of the NY-Documents location:
When this command is executed, the permissions of the location become read/write for the owner and read-only for group and world. Print LocationThe Print Location command prints the location definition to the screen allowing you to view it. When a Print command is entered, MQL displays the various clauses that make up the definition.
Synchronize LocationSynchronization ensures that users access the latest versions of files when checking out or viewing files in a replicated environment. After a new location is added for a store, you can synchronize the location with an existing location defined for that store. Before you can synchronize two locations, a copy of the files checked into the source location must be available to the FCS of the destination location and the exact file system checked into the source location must be copied to the destination location via HTTP or other means. After the file system is copied, a System Administrator must verify that it has been copied exactly to the destination location, retaining all directories and physical files. The sync command will not attempt to verify this. If any files are not correctly copied to the destination location, errors could result in subsequent commands that attempt to access those absent files. Once the file system is copied correctly, you can then synchronize the two
locations with the It is highly recommended that the destination location be empty with no records referring to it before the source location directory is copied. Errors could occur if the new location is not empty. To synchronize two locations defined for a store, use the Sync Location command:
Validate LocationThe Validate Location command can be used to identify files in a location that are not associated with any business object in the database. The command requires an input file that lists all files relative to the store’s or location's directory. You must have System Administrator privileges to run the validate command. Syntax
For more information, see validate Command. Delete LocationIf a location becomes obsolete, you can delete that location using the Delete Location command.
Searches the list of defined locations. If the name is not found, an error message is displayed. If the name is found, the location is deleted. Purge LocationThe Purge Location command removes all files from the location.
The date restriction allows you to remove only files that were last checked in prior to the date specified in the command. For example, if you want to purge only files last checked in prior to February 28, 2008 at 9:57:32 AM EST in the location called Shelton, you would enter the following MQL command:
The date format used in this command must be the same format configured in the variable MX_NORMAL_DATETIME_FORMAT for dates in the 3DEXPERIENCE Platform. The time zone in the date restriction must be the MCS time zone and should not be the location time zone. Emptyprefix Location
The Emptyprefix Location command clears the location that uses that prefix. Clearing the prefix results in copying files stored under that prefix to other eligible prefixes (results in a new hashname for the file), and then deleting the file in the cleared prefix. The copy location for the files is determined the same was as when writing new files (for more information, see the prefix row above). You cannot stop and restart the emptyprefix command. If the prefix does not exist, no error occurs and the command does nothing.
Rehash LocationThe rehash location command regenerates file names in the existing format for the specified location. If the specified location contains files that are not hashed, the command copies the file using the current prefix (generating a hash name), commits the change, and safely deletes the non-hashed file if the commit succeeded. If the specified location contains files that are already hashed, by default, the command preserves the files and does not rehash those files.
|