protected CmsProject createAndSetModuleImportProject ( CmsObject cms , CmsModule module ) throws CmsException { CmsProject importProject = cms . createProject ( org . opencms . module . Messages . get ( ) . getBundle ( cms . getRequestContext ( ) . getLocale ( ) ) . key ( org . opencms . module . Messages . GUI_IMPORT_MODULE_PROJECT_NAME_1 , new Object [ ] { module . getName ( ) } ) , org . opencms . module . Messages . get ( ) . getBundle ( cms . getRequestContext ( ) . getLocale ( ) ) . key ( org . opencms . module . Messages . GUI_IMPORT_MODULE_PROJECT_DESC_1 , new Object [ ] { module . getName ( ) } ) , OpenCms . getDefaultUsers ( ) . getGroupAdministrators ( ) , OpenCms . getDefaultUsers ( ) . getGroupAdministrators ( ) , CmsProject . PROJECT_TYPE_TEMPORARY ) ; cms . getRequestContext ( ) . setCurrentProject ( importProject ) ; cms . copyResourceToProject ( "/" ) ; return importProject ; }
Creates the project used to import module resources and sets it on the CmsObject .