CourseUnitMetadata

public abstract class CourseUnitMetadata extends MdsEntity

Common metadata shared by all course sub classes.

Constructors

CourseUnitMetadata

public CourseUnitMetadata(String name, CourseUnitState state, String content, String description)

Constructor with all arguments.

Parameters:
  • name – Name of the unit
  • state – Status of the unit
  • content – Content reference for the unit
  • description – the description for the unit

Methods

equals

public boolean equals(Object obj)

getContent

public String getContent()

getDescription

public String getDescription()

getName

public String getName()

getState

public CourseUnitState getState()

hashCode

public int hashCode()

setContent

public void setContent(String content)

setDescription

public void setDescription(String description)

setName

public void setName(String name)

setState

public void setState(CourseUnitState state)

toUnitDto

public CourseUnitDto toUnitDto()

Builds the dto representation of the unit used by the tree view.

Returns:the dto representation of the unit