SectionService Class
Service for managing the site's navigation
Constructor
SectionService
        
            (
    
    - 
                        options
Parameters:
- 
                        optionsObject- 
                                    siteStringuid 
- 
                                    onlyThisSiteBooleanshould section service only return value set specifically by site rather than defaulting to global 
 
- 
                                    
Item Index
Methods
- _removeFromSectionMap
- deleteChildren
- formatUrl static
- getFormattedSections
- getParentSelectList
- getPillNavOptions static
- getSectionData static
- getSectionMapIndex
- static
- isValidType static
- removeFromSectionMap
- save
- trimForType static
- updateNavMap
- validate
- validateContentNavItem
- validateLinkNavItem
- validateNavItemContent
- validateNavItemEditor
- validateNavItemName
- validateNavItemParent
- validateSectionNavItem
Properties
- VALID_TYPES static
Methods
_removeFromSectionMap
        
            (
        private
    
    - 
                        sid
- 
                        sectionMap
Parameters:
- 
                        sidString
- 
                        sectionMapArray
deleteChildren
        
            (
    
    - 
                        parentId
- 
                        cb
Parameters:
- 
                        parentIdString
- 
                        cbFunction
formatUrl
        
            (
        static
    
    - 
                        navItem
Parameters:
- 
                        navItemObject
getFormattedSections
        
            (
    
    - 
                        localizationService
- 
                        [currUrl]
- 
                        cb
Parameters:
- 
                        localizationServiceLocalization
- 
                        [currUrl]String optional
- 
                        cbFunction
getParentSelectList
        
            (
    
    - 
                        currItem
- 
                        cb
Parameters:
- 
                        currItemString | ObjectID
- 
                        cbFunction
getSectionData
        
            (
        static
    
    - 
                        uid
- 
                        navItems
- 
                        currUrl
Parameters:
- 
                        uidString
- 
                        navItemsObject
- 
                        currUrlString
getSectionMapIndex
        
            (
        
            Object
        
        private
    
    - 
                        sid
- 
                        sectionMap
Parameters:
- 
                        sidString
- 
                        sectionMapArray
Returns:
                        Object:
            
        isValidType
        
            (
        
            Boolean
        
        static
    
    - 
                        type
Parameters:
- 
                        typeString | Object
Returns:
                        Boolean:
            
        removeFromSectionMap
        
            (
    
    - 
                        section
- 
                        [sectionMap]
- 
                        cb
Parameters:
- 
                        sectionObject
- 
                        [sectionMap]Array optional
- 
                        cbFunction
save
        
            (
    
    - 
                        navItem
- 
                        [options]
- 
                        cb
Parameters:
- 
                        navItemObject
- 
                        [options]Object optional
- 
                        cbFunction
trimForType
        
            (
        static
    
    - 
                        navItem
Parameters:
- 
                        navItemObject
validate
        
            (
    
    - 
                        navItem
- 
                        cb
Parameters:
- 
                        navItemObject
- 
                        cbFunction
