public class PathDetailsController
extends java.lang.Object
ILearningAction
or a ILearningPath
Constructor and Description |
---|
PathDetailsController(org.tencompetence.business.model.learningpath.ILPElement element)
Instantiates a new element controller.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
doToggleDescription()
The server faces action handler for the show / hide description command.
|
java.lang.String |
doToggleMetadata()
The server faces action handler for the show / hide meta data command.
|
java.lang.String |
getDescription()
Gets the description.
|
org.tencompetence.business.model.learningpath.ILPElement |
getElement()
Gets the element associated with this controller.
|
java.lang.String |
getImageUrl()
Gets the 48x48 image url.
|
java.util.List<org.tencompetence.business.model.learningpath.MetaDataEntry> |
getMetadata()
Gets the meta data entries from the element.
|
java.lang.String |
getTitle()
Gets the title.
|
java.lang.String |
getToggleDescriptionText()
Gets the toggle description text.
|
java.lang.String |
getToggleMetadataDescription()
Gets the toggle meta data description.
|
boolean |
isLongDescription()
Checks if the description is longer than the threshold.
|
boolean |
isMetadataExpanded()
Checks if the meta data is shown.
|
void |
setInput(org.tencompetence.business.model.learningpath.ILPElement input)
Sets the ILPElement input for this controller.
|
public PathDetailsController(org.tencompetence.business.model.learningpath.ILPElement element)
element
- the ILPElement that is shown in the facelet.public java.lang.String getTitle()
public java.lang.String getDescription()
public java.lang.String getImageUrl()
public java.util.List<org.tencompetence.business.model.learningpath.MetaDataEntry> getMetadata()
Returns an empty list if the element is null.
public java.lang.String getToggleDescriptionText()
public java.lang.String getToggleMetadataDescription()
public org.tencompetence.business.model.learningpath.ILPElement getElement()
public boolean isLongDescription()
public boolean isMetadataExpanded()
public java.lang.String doToggleDescription()
Toggles the state of the long description text.
public java.lang.String doToggleMetadata()
public void setInput(org.tencompetence.business.model.learningpath.ILPElement input)
This input should not be null, otherwise an IllegalArgumentException is thrown
input
- the new input for the controller