Click or drag to resize

GlobalConfigurationsServicesGetAssetTreeMenuConfig Method


Retrieves the configuration for Asset Tree context menu. It indicates what commands are available for current user on the Asset Tree.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<TreeMenuItemInformation[]> GetAssetTreeMenuConfig()

Return Value

Type: XHRServiceResponseGenericTreeMenuItemInformation

The collection of commands that current user is allow to carry out. Note that they are available commands. The actual command on specific asset or asset folder node may vary.

Examples
Sample JSON return
JavaScript
{
  "ContentFreezeEndTime": "",
  "ContentFreezeStartTime": "",
  "code": 0,
  "error": null,
  "message": [
    {
      "Caption": "Empty Recycle Folder",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "delete16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "emptyrecyclefolder"
    },
    {
      "Caption": "New",
      "Children": [
        {
          "Caption": "Folder",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "folder16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "folder"
        },
        {
          "Caption": "",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "",
          "IsDisplayed": true,
          "IsSeparator": true,
          "Name": "separator1"
        },
        {
          "Caption": "Asset",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "upload16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "asset"
        }
      ],
      "HasSubMenu": true,
      "Icon": "new16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "new"
    },
    {
      "Caption": "Rename",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "rename16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "rename"
    },
    {
      "Caption": "Refresh",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "refresh16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "refresh"
    },
    {
      "Caption": "",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "",
      "IsDisplayed": true,
      "IsSeparator": true,
      "Name": "separator2"
    },
    {
      "Caption": "Cut",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "cut16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "cut"
    },
    {
      "Caption": "Copy",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "copy16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "copy"
    },
    {
      "Caption": "Paste",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "paste16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "paste"
    },
    {
      "Caption": "Delete",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "delete16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "delete"
    },
    {
      "Caption": "",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "",
      "IsDisplayed": true,
      "IsSeparator": true,
      "Name": "separator3"
    },
    {
      "Caption": "Add to Workflow",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "advance16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "addtoworkflow"
    },
    {
      "Caption": "Remove from Workflow",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "revert16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "removefromworkflow"
    },
    {
      "Caption": "Assign To...",
      "Children": [
        {
          "Caption": "Me",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "user16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "assigntome"
        },
        {
          "Caption": "User",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "user16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "assigntouser"
        },
        {
          "Caption": "Group",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "usergroup16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "assigntogroup"
        }
      ],
      "HasSubMenu": true,
      "Icon": "assignto16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "assignto"
    },
    {
      "Caption": "Advance",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "advance16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "advance"
    },
    {
      "Caption": "Show History",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "differences16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "showhistory"
    },
    {
      "Caption": "",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "",
      "IsDisplayed": true,
      "IsSeparator": true,
      "Name": "separator4"
    },
    {
      "Caption": "Check Out",
      "Children": [
        {
          "Caption": "Folder",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "document16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "checkoutpage"
        },
        {
          "Caption": "Folder and Children",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "revision16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "checkoutpageandchildren"
        }
      ],
      "HasSubMenu": true,
      "Icon": "checkout16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "checkout"
    },
    {
      "Caption": "Check In",
      "Children": [
        {
          "Caption": "Folder",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "document16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "checkinpage"
        },
        {
          "Caption": "Folder and Children",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "revision16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "checkinpageandchildren"
        }
      ],
      "HasSubMenu": true,
      "Icon": "checkin16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "checkin"
    },
    {
      "Caption": "Propagate publishes to latest version",
      "Children": [
        {
          "Caption": "Folder",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "document16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "propagatecheckinpage"
        },
        {
          "Caption": "Folder and Children",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "revision16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "propagatecheckinpageandchildren"
        }
      ],
      "HasSubMenu": true,
      "Icon": "checkin16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "propagatecheckin"
    },
    {
      "Caption": "Undo Check Out",
      "Children": [
        {
          "Caption": "Folder",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "document16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "undocheckoutpage"
        },
        {
          "Caption": "Folder and Children",
          "Children": [],
          "HasSubMenu": false,
          "Icon": "revision16.png",
          "IsDisplayed": true,
          "IsSeparator": false,
          "Name": "undocheckoutpageandchildren"
        }
      ],
      "HasSubMenu": true,
      "Icon": "undocheckout16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "undocheckout"
    },
    {
      "Caption": "Rollback",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "revert16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "rollback"
    },
    {
      "Caption": "",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "",
      "IsDisplayed": true,
      "IsSeparator": true,
      "Name": "separator5"
    },
    {
      "Caption": "Mark/Unmark For Publish",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "markforpublish16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "markforpublish"
    },
    {
      "Caption": "",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "",
      "IsDisplayed": true,
      "IsSeparator": true,
      "Name": "separator6"
    },
    {
      "Caption": "Asset Item Properties",
      "Children": [],
      "HasSubMenu": false,
      "Icon": "page16.png",
      "IsDisplayed": true,
      "IsSeparator": false,
      "Name": "assetproperties"
    }
  ]
}
See Also