Class AbstractExportClientSideElement
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.core.ui.StaticFileImportsClientSideElement
org.ametys.core.ui.StaticClientSideElement
org.ametys.cms.clientsideelement.AbstractContentClientSideElement
org.ametys.plugins.odfsync.export.AbstractExportClientSideElement
- All Implemented Interfaces:
ClientSideElement,LogEnabled,PluginAware,Initializable,Configurable,Serviceable
- Direct Known Subclasses:
ApogeeExportClientSideElement,PegaseExportClientSideElement
public abstract class AbstractExportClientSideElement
extends AbstractContentClientSideElement
implements Initializable
Client side element for connector export buttons
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ContentTypeExtensionPointThe content type extension pointprotected ServiceManagerThe avalon service managerprotected AmetysObjectResolverThe Ametys object resolverprotected AbstractStructureComponentThe structure component (depending of the current implementationFields inherited from class org.ametys.cms.clientsideelement.AbstractContentClientSideElement
_contentHelper, _userManagerFields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_getContentParams(Content content, Set<I18nizableText> invalidMessages) Get content paramsexportProgram(String programId) Export a program to external connectorprotected abstract StringGet the name of the configuration parameter to check to associated buttons.getExportReportInfo(String programId) Get the report informations of the export of the program idgetScripts(boolean ignoreRights, Map<String, Object> contextParameters) This method return the scripts that will be used on client side.protected abstract StringGet the role of the structure component, depending of the implementation.voidvoidservice(ServiceManager smanager) Methods inherited from class org.ametys.cms.clientsideelement.AbstractContentClientSideElement
getAllRightContentDescription, getContentDefaultParameters, getLockedContentDescription, getNoModifiableContentDescription, getNoRightContentDescription, hasRight, isLockedMethods 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, hasRight, setPluginInfo, toStringMethods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
_manager
The avalon service manager -
_resolver
The Ametys object resolver -
_ctExtPoint
The content type extension point -
_structureComponent
The structure component (depending of the current implementation
-
-
Constructor Details
-
AbstractExportClientSideElement
public AbstractExportClientSideElement()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractContentClientSideElement- Throws:
ServiceException
-
getScripts
public List<ClientSideElement.Script> getScripts(boolean ignoreRights, Map<String, Object> contextParameters) Description copied from interface:ClientSideElementThis method return the scripts that will be used on client side. This class will be parametrized by initial and current parameters.- Specified by:
getScriptsin interfaceClientSideElement- Overrides:
getScriptsin classStaticFileImportsClientSideElement- Parameters:
ignoreRights- True to ignore the rights verification.contextParameters- Contextuals parameters transmitted by the environment.- Returns:
- The list of scripts or an empty list.
-
getActivateParam
Get the name of the configuration parameter to check to associated buttons.- Returns:
- The name of the configuration parameter
-
getStructureComponentRole
Get the role of the structure component, depending of the implementation.- Returns:
- The role of the structure component
-
getExportReportInfo
Get the report informations of the export of the program id- Parameters:
programId- the program id to export- Returns:
- the export results
-
exportProgram
Export a program to external connector- Parameters:
programId- the program id to export- Returns:
- the export results
-
_getContentParams
protected Map<String,Object> _getContentParams(Content content, Set<I18nizableText> invalidMessages) Get content params- Parameters:
content- The contentinvalidMessages- The modelItems- Returns:
- parameters of the content
-