Class ImportArchiveClientSideElement
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.plugins.contentio.archive.ImportArchiveClientSideElement
-
- All Implemented Interfaces:
ClientSideElement
,LogEnabled
,PluginAware
,Configurable
,Serviceable
public class ImportArchiveClientSideElement extends StaticClientSideElement
ClientSideElement
for import archive button.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description ImportArchiveClientSideElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Map<String,String>>
getArchiveFiles()
Enumerates the archive files managed by the archive mechanismList<Map<String,Object>>
getAvailablePartialImports(String archiveName)
Enumerates the available partial imports of the given archiveList<Map<String,Object>>
getMergePolicies()
Gets as JSON theMergePolicies
Map<String,Object>
scheduleImport(Map<String,Object> values)
Schedules the importvoid
service(ServiceManager smanager)
-
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, getScripts, hasRight, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Constructor Detail
-
ImportArchiveClientSideElement
public ImportArchiveClientSideElement()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classStaticFileImportsClientSideElement
- Throws:
ServiceException
-
getMergePolicies
public List<Map<String,Object>> getMergePolicies()
Gets as JSON theMergePolicies
- Returns:
- the merge policies
-
getArchiveFiles
public List<Map<String,String>> getArchiveFiles()
Enumerates the archive files managed by the archive mechanism- Returns:
- the archive files
-
getAvailablePartialImports
public List<Map<String,Object>> getAvailablePartialImports(String archiveName) throws IOException
Enumerates the available partial imports of the given archive- Parameters:
archiveName
- The archive name- Returns:
- the available partial imports
- Throws:
IOException
- if an IO exception occured
-
-