public Map < String , Object > addMenuProperties ( String strSubDomain , Record recMenus , Map < String , Object > mapDomainProperties ) { try { recMenus . getField ( Menus . CODE ) . setString ( strSubDomain ) ; if ( recMenus . seek ( "=" ) ) { Map < String , Object > properties = ( ( PropertiesField ) recMenus . getField ( Menus . PARAMS ) ) . getProperties ( ) ; if ( properties == null ) properties = new HashMap < String , Object > ( ) ; if ( properties . get ( DBParams . HOME ) == null ) properties . put ( DBParams . HOME , strSubDomain ) ; Map < String , Object > oldProperties = m_systemRecordOwner . getProperties ( ) ; m_systemRecordOwner . setProperties ( properties ) ; // All I want are the db (global) properties. properties = BaseDatabase . addDBProperties ( null , m_systemRecordOwner , null ) ; m_systemRecordOwner . setProperties ( oldProperties ) ; if ( mapDomainProperties == null ) mapDomainProperties = properties ; else { properties . putAll ( mapDomainProperties ) ; mapDomainProperties = properties ; } } } catch ( DBException ex ) { ex . printStackTrace ( ) ; } return mapDomainProperties ; }
Add the properies from this menu item .