Package org.ametys.cms.clientsideelement
Class SmartContentClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.cms.clientsideelement.SmartContentClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Configurable,Serviceable
- Direct Known Subclasses:
ArchiveContentClientSideElement,CopyODFContentClientSideElement,DeleteContentClientSideElement,PilotageSmartContentClientSideElement,PilotageStatusButtonClientSideElement,SCCSmartContentClientSideElement,ShareableCourseContentClientSideElement,SmartContentMenu
Edit HMI item
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentHelperThe content helperprotected AmetysObjectResolverAmetys object resolverprotected SmartContentClientSideElementHelperHelper for smart content client elementsFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected I18nizableText_getAllRightDescription(Content content) Get i18n description when user can do actionprotected I18nizableTextGet i18n description when user can not do action because the workflow step is incorrectprotected I18nizableText_getLockedDescription(Content content) Get i18n description when user can not do action because the content is lockedprotected I18nizableText_getNoModifiableDescription(Content content) Get i18n description when user can not do action because the content is not modifiableprotected I18nizableText_getNoRightDescription(Content content) Get i18n description when user can not do action because he has no right on contentprotected I18nizableTextGet i18n description when user can not do action because there is no workflow action unvailableprotected booleanDetermines if the user has sufficient right for the given contentprotected boolean_isAllRight(Content content, boolean hasError, Map<String, Object> results) Determines if the user can finally do action on contentprotected booleanDetermines if the content is lockedprotected boolean_isModifiable(Content content) Determines if the content is modifiableprotected boolean_isWorkflowStepCorrect(Content content) Determines if the workflow step is correctprotected int_workflowAction(Content content) Determines if the workflow action is correctgetContentDefaultParameters(Content content) Get the default content's parametersGet informations on contents' statevoidservice(ServiceManager manager) Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParametersMethods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, configure, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_resolver
Ametys object resolver -
_contentHelper
The content helper -
_smartHelper
Helper for smart content client elements
-
-
Constructor Details
-
SmartContentClientSideElement
public SmartContentClientSideElement()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classStaticFileImportsClientSideElement- Throws:
ServiceException
-
getStatus
Get informations on contents' state- Parameters:
contentsId- the ids of contents- Returns:
- informations on contents' state
-
_isAllRight
Determines if the user can finally do action on content- Parameters:
content- The contenthasError- true if a error has already occursresults- The result parameters to be passed to client side- Returns:
- true if the user can finally do action on content
-
getContentDefaultParameters
Get the default content's parameters- Parameters:
content- The content- Returns:
- The default parameters
-
_isLocked
Determines if the content is locked- Parameters:
content- the content- Returns:
- true if the content is locked
-
_isModifiable
Determines if the content is modifiable- Parameters:
content- the content- Returns:
- true if the content is modifiable
-
_hasRight
Determines if the user has sufficient right for the given content- Parameters:
content- the content- Returns:
- true if user has sufficient right
-
_workflowAction
Determines if the workflow action is correct- Parameters:
content- the content- Returns:
- true if the workflow action is incorrect
-
_isWorkflowStepCorrect
Determines if the workflow step is correct- Parameters:
content- the content- Returns:
- true if the workflow step is incorrect
-
_getNoRightDescription
Get i18n description when user can not do action because he has no right on content- Parameters:
content- The content- Returns:
- The
I18nizableTextdescription
-
_getLockedDescription
Get i18n description when user can not do action because the content is locked- Parameters:
content- The content- Returns:
- The
I18nizableTextdescription
-
_getWorkflowActionUnvailableDescription
Get i18n description when user can not do action because there is no workflow action unvailable- Parameters:
content- The content- Returns:
- The
I18nizableTextdescription
-
_getIncorrectWorkflowStepDescription
Get i18n description when user can not do action because the workflow step is incorrect- Parameters:
content- The content- Returns:
- The
I18nizableTextdescription
-
_getNoModifiableDescription
Get i18n description when user can not do action because the content is not modifiable- Parameters:
content- The content- Returns:
- The
I18nizableTextdescription
-
_getAllRightDescription
Get i18n description when user can do action- Parameters:
content- The content- Returns:
- The
I18nizableTextdescription
-