Package org.infoglue.cms.entities.management

Examples of org.infoglue.cms.entities.management.RepositoryLanguage


    Repository repository = RepositoryController.getController().getRepositoryWithId(repositoryId, db);
    Collection<RepositoryLanguage> repositoryLanguageList = repository.getRepositoryLanguages();
    Iterator<RepositoryLanguage> repositoryLanguageIterator = repositoryLanguageList.iterator();
    while(repositoryLanguageIterator.hasNext())
    {
      RepositoryLanguage repositoryLanguage = repositoryLanguageIterator.next();
      languageVOList.add(repositoryLanguage.getLanguage().getValueObject());
    }

      if(languageVOList != null)
        CacheController.cacheObject("languageCache", key, languageVOList);
View Full Code Here


    Repository repository = RepositoryController.getController().getRepositoryWithId(repositoryId, db);
    Collection repositoryLanguageList = repository.getRepositoryLanguages();
    Iterator repositoryLanguageIterator = repositoryLanguageList.iterator();
    while(repositoryLanguageIterator.hasNext())
    {
      RepositoryLanguage repositoryLanguage = (RepositoryLanguage)repositoryLanguageIterator.next();
      languageList.add(repositoryLanguage.getLanguage());
    }

    return languageList;
  }
View Full Code Here

      Collection repositoryLanguages = repositoryRead.getRepositoryLanguages();
      Iterator repositoryLanguagesIterator = repositoryLanguages.iterator();
      while(repositoryLanguagesIterator.hasNext())
      {
        RepositoryLanguage repositoryLanguage = (RepositoryLanguage)repositoryLanguagesIterator.next();
        Language originalLanguage = repositoryLanguage.getLanguage();
       
        Language language = LanguageController.getController().getLanguageWithCode(originalLanguage.getLanguageCode(), db);
        if(language == null)
        {
            db.create(originalLanguage);
            language = originalLanguage;
        }
       
        repositoryLanguage.setLanguage(language);
        repositoryLanguage.setRepository(repositoryRead);

        db.create(repositoryLanguage);
       
        logger.info("language:" + language);
        logger.info("language.getRepositoryLanguages():" + language.getRepositoryLanguages());
View Full Code Here

      Collection repositoryLanguages = repositoryRead.getRepositoryLanguages();
      Iterator repositoryLanguagesIterator = repositoryLanguages.iterator();
      while(repositoryLanguagesIterator.hasNext())
      {
        RepositoryLanguage repositoryLanguage = (RepositoryLanguage)repositoryLanguagesIterator.next();
        Language originalLanguage = repositoryLanguage.getLanguage();
       
        Language language = LanguageController.getController().getLanguageWithCode(originalLanguage.getLanguageCode(), db);
        if(language == null)
        {
            db.create(originalLanguage);
            language = originalLanguage;
        }
       
        repositoryLanguage.setLanguage(language);
        repositoryLanguage.setRepository(repositoryRead);

        db.create(repositoryLanguage);
       
        logger.info("language:" + language);
        logger.info("language.getRepositoryLanguages():" + language.getRepositoryLanguages());
View Full Code Here

TOP

Related Classes of org.infoglue.cms.entities.management.RepositoryLanguage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.