Waiting for engine...
Skip to main content

Publishing methods

PublishingGetStorage

Get Publishing Storage

Return the storage location on MFT FS server where file published from external application will be stored.

FTHPublishStorageData  
PublishingGetStorage(Guid sessionID, string externalMajorLocationID, string externalMajorLocationName, string externalMinorLocationID, string externalMinorLocationName, string externalFileID)

This method accepts three parameters:

  • Location Major: General identification of external system (such as Sharepoint site url).
  • Location Minor: Detailed identification of file library
  • External File ID

If ExternalFileID is found in MFT FS file system publishing area, this method will return MFT FS parent folder ID and MFT FS file ID.
If not then the method will return only parent folder ID for uploading the file and returned MFT FS file ID will be null.

Parameter NameDescription
sessionIDUser session returned by one of Open functions
externalMajorLocationIDFor Sharepoint Integration: Sharepoint site Url
externalMajorLocationNameFor Sharepoint Integration: Sharepoint site name
externalMinorLocationIDFor Sharepoint Integration: Sharepoint library ID
externalMinorLocationNameFor Sharepoint Integration: Sharepoint library name
externalFileIDFor Sharepoint Integration: Sharepoint file ID

CreateFileExternalSourceMapping

Binds Id of the file in MFT FS server with external IDs of 2 levels to identify the target file on MFT FS site for overwrite operations when the source file in external system is overwritten.

void  
CreateFileExternalSourceMapping (Guid sessionID, int thruFileID, string externalMajorLocationID, string externalMajorLocationName, string externalMinorLocationID, string externalMinorLocationName, string externalFileID, string externalFileName)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
thruFileIDMFT FS File
externalMajorLocationIDFor Sharepoint Integration: Sharepoint site Url
externalMajorLocationNameName of Sharepoint Application
externalMinorLocationIDFor Sharepoint Integration: Sharepoint library ID
externalMinorLocationNameName of Document Library
externalFileIDFor Sharepoint Integration: Sharepoint file ID
externalFileNameSharepoint file name

PublishingGetFileInfo

Retrieve information on the publishing status of the file

FTHPublishFileData PublishingGetFileInfo (Guid sessionID, int fileID)

Parameter NameDescription
sessionIDUser session returned by one of Open functions
fileIDID of the file in MFT FS database

PublishingCreateRequest

Create request to publish the file

FTHPublishRequestData  
PublishingCreateRequest (Guid sessionID, int publishLinkID, int publishCollectionID, bool useDefaultLinkInfo, string overWriteLinkText, string overWriteDescription, string requestText )
Parameter NameDescription
sessionIDUser session returned by one of Open functions
publishLinkIDID of the file in MFT FS server file system that is requested to be published. In the future could be used for a folder publishing.
publishCollectionIDCollection that should contain the published file
useDefaultLinkInfoIf set, use default information for the published link: Name, Description
overWriteLinkTextText to overwrite default link name
overWriteDescriptionText to overwrite default Description
requestTextText of request.

PublishingDeletePendingRequest

Delete pending publishing request

Void PublishingDeletePendingRequest (Guid sessionID, int publishingRequestID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
publishingRequestIDID of the pending publishing request

PublishingSavePendingRequest

Saves changed information to a pending publishing request.

void PublishingSavePendingRequest (Guid sessionID, FTHPublishRequestData requestData)
Parameter NameDescription
sessionIDSession ID for the current user
requestDataData for the pending request that will be saved

PublishingGetCollections

Method returns collection list which is used in collection drop-down in new request form

FTHPublishCollectionData[]  
PublishingGetCollections(Guid sessionID, int publishLinkID)
Parameter NameDescription
sessionIDUser session returned by one of Open functions
publishLinkIDID of the collection link object

PublishingTagDictionaryGetItems

Retrieve tags from publishing Tag dictionary

FTHPublishTagData[]  
PublishingTagDictionaryGetItems(Guid sessionID)
Parameter NameDescription
sessionIDSession ID for the current user returned by one of the Open functions.`

PublishingTagDictionaryAddItems

Add tags to dictionary

void PublishingTagDictionaryAddItems(Guid sessionID, string commadDelimitedTagList)
Parameter NameDescription
sessionIDSession ID for the current user returned by one of the Open functions.
commadDelimitedTagListNew tags (Duplicates and existing tags are silently ignored)

PublishingTagDictionaryRemoveItems

Remove items from publishing Tag dictionary

void PublishingTagDictionaryRemoveItems(Guid sessionID, string commadDelimitedTagList)
Parameter NameDescription
sessionIDSession ID for the current user returned by one of the Open functions.
commadDelimitedTagListTags to remove (Non existing tags are silently ignored).

Use this method to update the default link, description and tags. Link is a virtual entity that holds file metadata and is pointed to by ‘Collection Links’ which are links to the file that exist in the context of a collection.

void PublishingSaveLink(Guid sessionID, FTHPublishLinkData publishLinkData)
Parameter NameDescription
sessionIDSession ID for the current user returned by one of the Open functions.
publishLinkDataData for the publishing file link

Use this method to delete the collection link

void PublishingDeleteCollectionLink(Guid sessionID, int publishCollectionLinkID)
Parameter NameDescription
sessionIDSession ID for the current user returned by one of the Open functions.
publishCollectionLinkIDID of the publishing collection link

Use this method to save the changed data for ‘collection link’ which is the file link existing in the context of collection

void  
PublishingSaveCollectionLink (Guid sessionID, FTHPublishCollectionLinkData collectionLinkData)
Parameter NameDescription
sessionIDUser session
collectionLinkDataCollection data to save
On this Page