ResourceDto

public class ResourceDto implements Serializable

Represent a content from CMS-Lite in the jqgrid. Does not carry any actual content, only information about the name, type and languages of the content.

Constructors

ResourceDto

public ResourceDto(Content content)

Constructs an instance for the given content.

Parameters:
  • content – the content this instance should represent

ResourceDto

public ResourceDto(String name, String type, String... languages)
Parameters:
  • name – the name of the content
  • type – the type of the content, either string or stream
  • languages – the languages supported by this content

Methods

addLanguage

public void addLanguage(String language)

Adds a language to the set of languages for this content.

Parameters:
  • language – the language to add

equals

public boolean equals(Object obj)

getLanguages

public Set<String> getLanguages()
Returns:the languages supported by this content

getName

public String getName()
Returns:the name of the content

getType

public String getType()
Returns:the type of the content, either string or stream

hashCode

public int hashCode()

toString

public String toString()