public class ShareableCourseStatusButtonClientSideElement extends ShareableCourseContentClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
Modifier and Type | Field and Description |
---|---|
protected ShareableCourseStatusHelper |
_shareableCourseStatusHelper
The shareable course status helper
|
_shareableCourseHelper
_contentHelper, _resolver, _smartHelper
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
Constructor and Description |
---|
ShareableCourseStatusButtonClientSideElement() |
Modifier and Type | Method and Description |
---|---|
boolean |
canChangeStatus(ShareableCourseStatusHelper.ShareableStatus buttonShareableStatus,
ShareableCourseStatusHelper.ShareableStatus contentShareableStatus)
True if the button is enable
|
void |
service(ServiceManager manager) |
void |
setShareableCourseStatus(List<String> contentIds,
String status)
Set the shareable course status to the contents
|
getScripts
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParameters, getStatus
_configureClass, _configureParameters, _configureScript, configureInitialParameters
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
getLogger, setLogger
protected ShareableCourseStatusHelper _shareableCourseStatusHelper
public ShareableCourseStatusButtonClientSideElement()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
service
in class ShareableCourseContentClientSideElement
ServiceException
public boolean canChangeStatus(ShareableCourseStatusHelper.ShareableStatus buttonShareableStatus, ShareableCourseStatusHelper.ShareableStatus contentShareableStatus)
buttonShareableStatus
- the button statuscontentShareableStatus
- the content statuspublic void setShareableCourseStatus(List<String> contentIds, String status)
contentIds
- the list of content idsstatus
- the shareable course status