import eu.etaxonomy.cdm.io.common.IImportConfigurator;\r
import eu.etaxonomy.cdm.model.agent.AgentBase;\r
import eu.etaxonomy.cdm.model.common.DefinedTermBase;\r
+import eu.etaxonomy.cdm.model.common.User;\r
import eu.etaxonomy.cdm.model.name.TaxonNameBase;\r
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase;\r
import eu.etaxonomy.cdm.model.reference.ReferenceBase;\r
int homotypicalGroupRows = numberOfRows;\r
int UserRows= numberOfRows;\r
\r
+ if (jaxbExpConfig.isDoUsers() == true) {\r
+ \r
+ if (UserRows == 0) { UserRows = MAX_ROWS; }\r
+ logger.info("# User");\r
+ List<User> users = getUserService().list(null, UserRows, 0, null, null);\r
+ \r
+ \r
+ for (User user: users){\r
+ dataSet.addUser( (User)HibernateProxyHelper.deproxy(user));\r
+ }\r
+ \r
+ }\r
if (jaxbExpConfig.isDoTermVocabularies() == true) {\r
if (termVocabularyRows == 0) { termVocabularyRows = MAX_ROWS; }\r
logger.info("# TermVocabulary");\r
dataSet.setTermVocabularies((List)getVocabularyService().list(null,termVocabularyRows, 0, null, null));\r
}\r
\r
- if (jaxbExpConfig.isDoUsers() == true) {\r
- \r
- if (UserRows == 0) { UserRows = MAX_ROWS; }\r
- logger.info("# User");\r
- dataSet.setUsers(getUserService().list(null,UserRows, 0,null,null));\r
- }\r
+ \r
\r
// if (jaxbExpConfig.isDoLanguageData() == true) {\r
// if (languageDataRows == 0) { languageDataRows = MAX_ROWS; }\r
logger.info("# DefinedTermBase: " + definedTermBaseRows);\r
dataSet.setTerms(getTermService().list(null,definedTermBaseRows, 0,null,null));\r
}\r
-\r
+ \r
if (jaxbExpConfig.isDoAuthors() == true) {\r
if (agentRows == 0) { agentRows = getAgentService().count(AgentBase.class); }\r
logger.info("# Agents: " + agentRows);\r
//logger.info(" # Team: " + appCtr.getAgentService().count(Team.class));\r
dataSet.setAgents(getAgentService().list(null,agentRows, 0,null,null));\r
}\r
+ \r
+ \r
\r
if (jaxbExpConfig.getDoReferences() != IImportConfigurator.DO_REFERENCES.NONE) {\r
if (referenceBaseRows == 0) { referenceBaseRows = getReferenceService().count(ReferenceBase.class); }\r