@Test public void testGetMultiValueContentStringLanguage() { assertEquals(2, pagelet.getMultiValueContent(multivalueContentName, german).length); assertEquals(multivalueGermanContent[0], pagelet.getMultiValueContent(multivalueContentName, german)[0]); assertEquals(multivalueGermanContent[1], pagelet.getMultiValueContent(multivalueContentName, german)[1]); assertEquals(2, pagelet.getMultiValueContent(multivalueContentName, french).length); assertEquals(multivalueFrenchContent[0], pagelet.getMultiValueContent(multivalueContentName, french)[0]); assertEquals(multivalueFrenchContent[1], pagelet.getMultiValueContent(multivalueContentName, french)[1]); assertEquals(2, pagelet.getMultiValueContent(multivalueContentName, italian).length); assertEquals(multivalueGermanContent[0], pagelet.getMultiValueContent(multivalueContentName, italian)[0]); assertEquals(multivalueGermanContent[1], pagelet.getMultiValueContent(multivalueContentName, italian)[1]); }
public String[] getMultiValueContent(String name, Language language, boolean force) { Map<String, String[]> languageContent = content.get(language, force); if (languageContent == null) return new String[] {}; else if (languageContent.get(name) == null) return new String[] {}; return languageContent.get(name); }
PageletImpl extends LocalizableObject implements Pagelet { public String[] getMultiValueContent(String name, Language language, boolean force) { Map<String, String[]> languageContent = content.get(language, force); if (languageContent == null) return new String[] {}; else if (languageContent.get(name) == null) return new String[] {}; return languageContent.get(name); } }
PageletImpl extends LocalizableObject implements Pagelet { public String[] getMultiValueContent(String name, Language language, boolean force) { Map<String, String[]> languageContent = content.get(language, force); if (languageContent == null) return new String[] {}; else if (languageContent.get(name) == null) return new String[] {}; return languageContent.get(name); } PageletImpl();  PageletImpl(PageletRenderer renderer);  PageletImpl(String module, String id);  PageletImpl(PageletURI location, String module, String id); }
PageletImpl extends LocalizableObject implements Pagelet { public String[] getMultiValueContent(String name, Language language, boolean force) { Map<String, String[]> languageContent = content.get(language, force); if (languageContent == null) return new String[] {}; else if (languageContent.get(name) == null) return new String[] {}; return languageContent.get(name); } PageletImpl();  PageletImpl(PageletRenderer renderer);  PageletImpl(String module, String id);  PageletImpl(PageletURI location, String module, String id); String getModule(); String getIdentifier(); String[] getPropertyNames(); String getProperty(String key); boolean isMultiValueProperty(String key); String[] getMultiValueProperty(String key); void addProperty(String key, String value); void setProperty(String key, String value); void removeProperty(String key); void setOwner(User owner); User getOwner(); @Override boolean isDefaultAccess(); @Override void setAllowDenyOrder(Order order); Order getAllowDenyOrder(); @Override void addAccessRule(AccessRule rule); @Override SortedSet<AccessRule> getAccessRules(); boolean isAllowed(Action action, Authority authority); boolean isDenied(Action action, Authority authority); Action[] getActions(); void addSecurityListener(SecurityListener listener); void removeSecurityListener(SecurityListener listener); void setURI(PageletURI uri); PageletURI getURI(); void setCreated(User creator, Date creationDate); void setCreationDate(Date date); Date getCreationDate(); boolean isCreatedAfter(Date date); void setCreator(User user); User getCreator(); Date getPublishFrom(); Date getPublishTo(); User getPublisher(); void setPublished(User publisher, Date from, Date to); boolean isPublished(); boolean isPublished(Date date); Date getModificationDate(); User getModifier(); Date getLastModificationDate(); User getLastModifier(); Date getModificationDate(Language language); User getModifier(Language language); void setModified(User user, Date date, Language language); void setContent(Object content); Object getContent(); String[] getContentNames(Language language); boolean isMultiValueContent(String name); String getContent(String name, Language language, boolean force); String getContent(String name, Language language); String getContent(String name); String[] getMultiValueContent(String name, Language language,
      boolean force); String[] getMultiValueContent(String name, Language language); String[] getMultiValueContent(String name); void setContent(String name, String value, Language language); int hashCode(); boolean equals(Object o); int compareTo(Localizable o, Language l); String toString(); String toXml(); }
PageletImpl extends LocalizableObject implements Pagelet { public String[] getMultiValueContent(String name, Language language, boolean force) { Map<String, String[]> languageContent = content.get(language, force); if (languageContent == null) return new String[] {}; else if (languageContent.get(name) == null) return new String[] {}; return languageContent.get(name); } PageletImpl();  PageletImpl(PageletRenderer renderer);  PageletImpl(String module, String id);  PageletImpl(PageletURI location, String module, String id); String getModule(); String getIdentifier(); String[] getPropertyNames(); String getProperty(String key); boolean isMultiValueProperty(String key); String[] getMultiValueProperty(String key); void addProperty(String key, String value); void setProperty(String key, String value); void removeProperty(String key); void setOwner(User owner); User getOwner(); @Override boolean isDefaultAccess(); @Override void setAllowDenyOrder(Order order); Order getAllowDenyOrder(); @Override void addAccessRule(AccessRule rule); @Override SortedSet<AccessRule> getAccessRules(); boolean isAllowed(Action action, Authority authority); boolean isDenied(Action action, Authority authority); Action[] getActions(); void addSecurityListener(SecurityListener listener); void removeSecurityListener(SecurityListener listener); void setURI(PageletURI uri); PageletURI getURI(); void setCreated(User creator, Date creationDate); void setCreationDate(Date date); Date getCreationDate(); boolean isCreatedAfter(Date date); void setCreator(User user); User getCreator(); Date getPublishFrom(); Date getPublishTo(); User getPublisher(); void setPublished(User publisher, Date from, Date to); boolean isPublished(); boolean isPublished(Date date); Date getModificationDate(); User getModifier(); Date getLastModificationDate(); User getLastModifier(); Date getModificationDate(Language language); User getModifier(Language language); void setModified(User user, Date date, Language language); void setContent(Object content); Object getContent(); String[] getContentNames(Language language); boolean isMultiValueContent(String name); String getContent(String name, Language language, boolean force); String getContent(String name, Language language); String getContent(String name); String[] getMultiValueContent(String name, Language language,
      boolean force); String[] getMultiValueContent(String name, Language language); String[] getMultiValueContent(String name); void setContent(String name, String value, Language language); int hashCode(); boolean equals(Object o); int compareTo(Localizable o, Language l); String toString(); String toXml();  }