/** * Sets the group Parent.<p> * * @param groupParent the group Parent to set */ public void setGroupParent(String groupParent) { m_groupParent = OpenCms.getImportExportManager().translateGroup(groupParent); }
/** * Sets the group Name.<p> * * @param groupName the name to set */ public void setGroupName(String groupName) { m_groupName = OpenCms.getImportExportManager().translateGroup(groupName); }
/** * Sets the group Parent.<p> * * @param groupParent the group Parent to set */ public void setGroupParent(String groupParent) { m_groupParent = OpenCms.getImportExportManager().translateGroup(groupParent); }
/** * Sets the user Name.<p> * * @param userName the name to set */ public void setUserName(String userName) { m_userName = OpenCms.getImportExportManager().translateUser(userName); }
/** * Sets the group Parent.<p> * * @param groupParent the group Parent to set */ public void setGroupParent(String groupParent) { m_groupParent = OpenCms.getImportExportManager().translateGroup(groupParent); }
/** * Sets the group Name.<p> * * @param groupName the name to set */ public void setGroupName(String groupName) { m_groupName = OpenCms.getImportExportManager().translateGroup(groupName); }
/** * Sets the group Name.<p> * * @param groupName the name to set */ public void setGroupName(String groupName) { m_groupName = OpenCms.getImportExportManager().translateGroup(groupName); }
/** * Sets the user Name.<p> * * @param userName the name to set */ public void setUserName(String userName) { m_userName = OpenCms.getImportExportManager().translateUser(userName); }
/** * Sets the user Name.<p> * * @param userName the name to set */ public void setUserName(String userName) { m_userName = OpenCms.getImportExportManager().translateUser(userName); }
/** * Returns the list of properties to ignore during import.<p> * * @return the list of properties to ignore during import */ protected List<String> getIgnoredProperties() { if (m_ignoredProperties == null) { // get list of ignored properties m_ignoredProperties = OpenCms.getImportExportManager().getIgnoredProperties(); if (m_ignoredProperties == null) { m_ignoredProperties = Collections.emptyList(); } } return m_ignoredProperties; }
/** * Returns the list of properties to ignore during import.<p> * * @return the list of properties to ignore during import */ protected List<String> getIgnoredProperties() { if (m_ignoredProperties == null) { // get list of ignored properties m_ignoredProperties = OpenCms.getImportExportManager().getIgnoredProperties(); if (m_ignoredProperties == null) { m_ignoredProperties = Collections.emptyList(); } } return m_ignoredProperties; }
/** * Returns the list of properties to ignore during import.<p> * * @return the list of properties to ignore during import */ protected List getIgnoredProperties() { if (m_ignoredProperties == null) { // get list of ignored properties m_ignoredProperties = OpenCms.getImportExportManager().getIgnoredProperties(); if (m_ignoredProperties == null) { m_ignoredProperties = Collections.EMPTY_LIST; } } return m_ignoredProperties; }
/** * Constructs a new import object which imports the resources from an OpenCms * export zip file or a folder in the "real" file system.<p> * * @param cms the cms context * @param report the output report * * @throws CmsRoleViolationException if the current user dies not have role permissions to import the database */ public CmsImport(CmsObject cms, I_CmsReport report) throws CmsRoleViolationException { // check the role permissions OpenCms.getRoleManager().checkRole(cms, CmsRole.DATABASE_MANAGER); // set member variables m_importImplementations = OpenCms.getImportExportManager().getImportVersionClasses(); m_cms = cms; m_report = report; }
/** * @see java.lang.Runnable#run() */ @Override public void run() { CmsImportParameters parameters = new CmsImportParameters(m_importFile, "/", m_keepPermissions); try { OpenCms.getImportExportManager().importData(getCms(), getReport(), parameters); } catch (Throwable e) { getReport().println(e); if (LOG.isErrorEnabled()) { LOG.error(Messages.get().getBundle().key(Messages.ERR_DB_IMPORT_0), e); } } } }
/** * Imports a module.<p> * * @param importFile the absolute path of the import module file * * @throws Exception if something goes wrong * * @see org.opencms.importexport.CmsImportExportManager#importData(CmsObject, I_CmsReport, CmsImportParameters) */ public void importModule(String importFile) throws Exception { CmsImportParameters params = new CmsImportParameters(importFile, "/", true); OpenCms.getImportExportManager().importData( m_cms, new CmsShellReport(m_cms.getRequestContext().getLocale()), params); }
/** * Imports a module.<p> * * @param importFile the absolute path of the import module file * * @throws Exception if something goes wrong * * @see org.opencms.importexport.CmsImportExportManager#importData(CmsObject, I_CmsReport, CmsImportParameters) */ public void importModule(String importFile) throws Exception { CmsImportParameters params = new CmsImportParameters(importFile, "/", true); OpenCms.getImportExportManager().importData( m_cms, new CmsShellReport(m_cms.getRequestContext().getLocale()), params); }
/** * @see java.lang.Runnable#run() */ @Override public void run() { try { OpenCms.getImportExportManager().exportData(getCms(), m_handler, getReport()); } catch (Throwable e) { getReport().println(e); LOG.error(Messages.get().getBundle().key(Messages.ERR_DB_EXPORT_0), e); } } }
/** * @see java.lang.Runnable#run() */ @Override public void run() { try { OpenCms.getImportExportManager().exportData(getCms(), m_handler, getReport()); } catch (Throwable e) { getReport().println(e); LOG.error(Messages.get().getBundle().key(Messages.ERR_DB_EXPORT_0), e); } } }
/** * Imports a module (zipfile) from the default module directory, * creating a temporary project for this.<p> * * @param importFile the name of the import module located in the default module directory * * @throws Exception if something goes wrong * * @see org.opencms.importexport.CmsImportExportManager#importData(CmsObject, org.opencms.report.I_CmsReport, CmsImportParameters) */ protected void importModuleFromDefault(String importFile) throws Exception { String fileName = getModuleFolder() + importFile; OpenCms.getImportExportManager().importData( m_cms, new CmsShellReport(m_cms.getRequestContext().getLocale()), new CmsImportParameters(fileName, "/", true)); }
/** * Enumeration class for the mode parameter in the * {@link CmsDriverManager#readChangedResourcesInsideProject(CmsDbContext, CmsUUID, CmsReadChangedProjectResourceMode)} * method.<p> */ private static class CmsReadChangedProjectResourceMode { /** * Default constructor.<p> */ protected CmsReadChangedProjectResourceMode() { // noop } }