Skip to main content

constants

Constants : d2/sdk/utils/constants

Some utility constants.

Extends: Object

Constants.MediaTypes : Object

Supported AJAX media types.

Kind: static property of Constants
Properties

NameTypeDescription
DCTM_JSONstring

"application/vnd.emc.documentum+json".

DCTM_XMLstring

"application/vnd.emc.documentum+xml".

DCTM_D2_V1_JSONstring

"application/vnd.documentum.d2.v1+json".

Constants.Types : Object

Object types. Used for type equality comparison for NodeModels.

Kind: static property of Constants
Properties

NameType
FOLDERnumber
OBJECTnumber
REPOSITORYnumber
CABINETnumber
DOCUMENTnumber
RENDITIONnumber
WORKFLOW_STEPnumber
TASKnumber
TASK_PERFORMERnumber
WORKFLOWnumber
WORKFLOW_EVENTnumber
TASK_EVENTnumber
EMAILnumber
DQLnumber
ACCESSORnumber

Example

define(['d2/sdk/utils/constants'], function(constants){
//supposing 'node' is an instance of NodeModel
if(node.get('type') === constants.Types.FOLDER) {
console.log('This is a folder');
}
});

Constants.MenuTypes : Object

Values used as 'type' query-parameter while making AJAX call to retrieve menu actions associated with a NodeModel

Kind: static property of Constants
Properties

NameTypeDescription
CONTEXTstring

'MenuContext'

NEW_OBJECTstring

'MenuNewObject'

USERstring

'MenuUser'

VDOCstring

'MenuContextVD'

SUBMENU_VD_ADD_CHILDstring

'MenuContextVDAddChildOption'

SUBMENU_VD_REPLACE_CHILDstring

'MenuContextVDReplaceChildOption'

TASKSstring

'MenuContextTasksList'

SUBMENU_CHANGE_TASK_PRIORITYstring

'MenuContextTaskPriority'

TASK_DOCUMENTSstring

'MenuContextTaskDocument'

WORKFLOWSstring

'MenuContextWorkflowOverview'

SAVED_SEARCHstring

'MenuContextSavedSearchObject'

SUBMENU_LAUNCH_WORKFLOWstring

'MenuDocumentWorkflow'

DETAIL_RELATIONSstring

'MenuContextDetailRelations'

DETAIL_RENDITIONSstring

'MenuContextDetailRenditions'

DETAIL_VERSIONSstring

'MenuContextDetailVersions'

SUBMENU_SHAREstring

'MenuDocumentShare'

SUBMENU_MASS_UPDATEstring

'MenuToolsMassUpdate'

SUBMENU_DOCUMENT_LIFECYCLEstring

'MenuDocumentLifeCycle'

SUBMENU_DOCUMENT_LIFECYCLE_ATTACHstring

'MenuDocumentLifeCycleAttach'

SUBMENU_DOCUMENT_D2_LIFECYCLE_ATTACHstring

'MenuDocumentD2LifeCycleAttach'

Constants.ISODateFormats : Object

Date formats used by D2-REST APIs.

Kind: static property of Constants
Properties

NameTypeDescription
DATE_ONLYstring

'YYYY-MM-DD'

DATE_TIMEstring

'YYYY-MM-DDTHH:mm:ss.SSSZZ'