public static LocalDocument createIndexPageDocument ( Delfoi delfoi , Locale locale , User user ) { LocalDocumentDAO localDocumentDAO = new LocalDocumentDAO ( ) ; String urlName = String . format ( "%s-%s" , INDEX_PAGE_URLNAME , locale . getLanguage ( ) ) ; return localDocumentDAO . create ( urlName , urlName , delfoi . getRootFolder ( ) , user , 0 ) ; }
Creates index page document