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, toStringgetLogger, setLoggerprotected ShareableCourseStatusHelper _shareableCourseStatusHelper
public ShareableCourseStatusButtonClientSideElement()
public void service(ServiceManager manager) throws ServiceException
service in interface Serviceableservice in class ShareableCourseContentClientSideElementServiceExceptionpublic 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