Package org.ametys.odf.clientsideelement
Class ShareableCourseStatusButtonClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.cms.clientsideelement.SmartContentClientSideElement
-
- org.ametys.odf.clientsideelement.ShareableCourseContentClientSideElement
-
- org.ametys.odf.clientsideelement.ShareableCourseStatusButtonClientSideElement
-
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
public class ShareableCourseStatusButtonClientSideElement extends ShareableCourseContentClientSideElement
Client side element for shareable course status button
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description protected ShareableCourseStatusHelper_shareableCourseStatusHelperThe shareable course status helper-
Fields inherited from class org.ametys.odf.clientsideelement.ShareableCourseContentClientSideElement
_shareableCourseHelper
-
Fields inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_contentHelper, _resolver, _smartHelper
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description ShareableCourseStatusButtonClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanChangeStatus(ShareableCourseStatusHelper.ShareableStatus buttonShareableStatus, ShareableCourseStatusHelper.ShareableStatus contentShareableStatus)True if the button is enablevoidservice(ServiceManager manager)voidsetShareableCourseStatus(List<String> contentIds, String status, String comment)Set the shareable course status to the contents-
Methods inherited from class org.ametys.odf.clientsideelement.ShareableCourseContentClientSideElement
getScripts
-
Methods inherited from class org.ametys.cms.clientsideelement.SmartContentClientSideElement
_getAllRightDescription, _getIncorrectWorkflowStepDescription, _getLockedDescription, _getNoModifiableDescription, _getNoRightDescription, _getWorkflowActionUnvailableDescription, _hasRight, _isAllRight, _isLocked, _isModifiable, _isWorkflowStepCorrect, _workflowAction, getContentDefaultParameters, getStatus
-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_shareableCourseStatusHelper
protected ShareableCourseStatusHelper _shareableCourseStatusHelper
The shareable course status helper
-
-
Constructor Detail
-
ShareableCourseStatusButtonClientSideElement
public ShareableCourseStatusButtonClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classShareableCourseContentClientSideElement- Throws:
ServiceException
-
canChangeStatus
public boolean canChangeStatus(ShareableCourseStatusHelper.ShareableStatus buttonShareableStatus, ShareableCourseStatusHelper.ShareableStatus contentShareableStatus)
True if the button is enable- Parameters:
buttonShareableStatus- the button statuscontentShareableStatus- the content status- Returns:
- true if the button is enable
-
setShareableCourseStatus
public void setShareableCourseStatus(List<String> contentIds, String status, String comment)
Set the shareable course status to the contents- Parameters:
contentIds- the list of content idsstatus- the shareable course statuscomment- the comment. Can be null
-
-