Skip to main content
Home

Search form

Menu

Search form

  • Overview
  • How To videos
  • Getting Started tutorials
  • Using SkyVault
  • Customizing
  • Programming
    • Integrating your application with SkyVault
    • Designing your application
    • Programming with CMIS
    • Programming with SkyVault services
    • Programming with Surf
    • Web Scripts
    • Scripting API
      • Root objects
      • ScriptNode Object API
        • childByNamePath
        • childrenByXPath
        • childFileFolders
        • getActiveWorkflows
        • isScriptContent
        • hasAspect
        • isSubType
        • Security API
        • Ownership API
        • Modifying and creating API
        • Check In/Check Out API
        • Versions API
        • Content API
        • ScriptContentData API
        • Transformation API
        • Thumbnail API
        • Tagging API
      • Search API
      • People API
      • Actions API
      • ScriptAction API
      • Logging API
      • Session API
      • Classification API
      • AVM API
      • WCM Web Projects
      • Utility methods
    • Services API
  • Copyright
  • Disclaimer
  • You are here

    SkyVault Enterprise 4.0.2 » Programming » SkyVault API Reference » Repository JavaScript API » Scripting API » ScriptNode Object API

    hasAspect

    hasAspect(type)

    This method returns true if an aspect was applied to the node.

    Parameters

    type
    The type of aspect whose presence will be checked for. Examples include cm:versionable and cm:templatable.

    Returns

    Boolean

    Example

    var isTemplatable = document.hasAspect("cm:templatable");
    var node = companyhome.childByNamePath("TEST_FILE_0.TXT");
    model.result = node.hasAspect("cm:versionable");
    
    Parent topic: ScriptNode Object API

    © 2017 TBS-LLC. All Rights Reserved.    Follow @twitter