DDMStructureContentDashboardItemType implements ContentDashboardItemType<DDMStructure> { @Override public String toJSONString(Locale locale) { return JSONUtil.put( "className", _infoItemReference.getClassName() ).put( "classPK", _infoItemReference.getClassPK() ).put( "title", getFullLabel(locale) ).toJSONString(); } DDMStructureContentDashboardItemType(
		DDMStructure ddmStructure, Group group); @Override boolean equals(Object object); @Override String getFullLabel(Locale locale); @Override InfoItemReference getInfoItemReference(); @Override String getLabel(Locale locale); @Override Date getModifiedDate(); @Override long getUserId(); @Override int hashCode(); @Override String toJSONString(Locale locale);  }
@Test public void testToJSONString() throws PortalException { DDMStructure ddmStructure = _getDDMStructure("structureName"); DDMStructureContentDashboardItemType ddmStructureContentDashboardItemType = new DDMStructureContentDashboardItemType( ddmStructure, _getGroup("groupName")); InfoItemReference infoItemReference = ddmStructureContentDashboardItemType.getInfoItemReference(); Assert.assertEquals( JSONUtil.put( "className", infoItemReference.getClassName() ).put( "classPK", infoItemReference.getClassPK() ).put( "title", ddmStructureContentDashboardItemType.getFullLabel(LocaleUtil.US) ).toJSONString(), ddmStructureContentDashboardItemType.toJSONString(LocaleUtil.US)); }