DLEditFileEntryTypeDisplayContext { public boolean isFieldNameEditionDisabled() { DDMStructure ddmStructure = _getDDMStructure(); if (ddmStructure == null) { return false; } int count = _ddmStorageLinkLocalService.getStructureStorageLinksCount( ddmStructure.getStructureId()); if (count > 0) { return true; } return false; } DLEditFileEntryTypeDisplayContext(
		DDM ddm, DDMStorageLinkLocalService ddmStorageLinkLocalService,
		DDMStructureLocalService ddmStructureLocalService, Language language,
		LiferayPortletRequest liferayPortletRequest,
		LiferayPortletResponse liferayPortletResponse); List<Map<String, Object>> getAdditionalPanels(
		String npmResolvedPackageName); String getAvailableFields(); Locale[] getAvailableLocales(); String getAvailableLocalesString(); String getDefaultLanguageId(); String getFieldsJSONArrayString(); String getLocalesMapString(); boolean isChangeableDefaultLanguage(); boolean isFieldNameEditionDisabled(); boolean useDataEngineEditor();  }
@Test public void testGetFieldNameEditionDisabled() { DLEditFileEntryTypeDisplayContext dlEditFileEntryTypeDisplayContext = new DLEditFileEntryTypeDisplayContext( _ddm, _ddmStorageLinkLocalService, _ddmStructureLocalService, _language, new MockLiferayPortletRenderRequest( new MockHttpServletRequestBuilder().withAttribute( WebKeys.DOCUMENT_LIBRARY_DYNAMIC_DATA_MAPPING_STRUCTURE, _getRandomDDMStructure() ).build()), null); Assert.assertTrue( dlEditFileEntryTypeDisplayContext.isFieldNameEditionDisabled()); }