/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IAmplificationService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IAmplificationService.class).merge(getEntity());
}
/** {@inheritDoc} */
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public void addPages() {
addPage(new CollectionWizardPage(formFactory, getConversationHolder(), getEntity()));
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
*/
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(ICollectionService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(ICollectionService.class).merge(getEntity());
}
/* (non-Javadoc)
protected String getEntityName() {
return "Collection";
}
-
+
}
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IOccurrenceService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IOccurrenceService.class).merge(getEntity());
}
@Override
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IOccurrenceService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IOccurrenceService.class).merge(getEntity());
}
@Override
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* @created Sept 13 2012
*/
public class NewGrantedAuthorityWizard extends AbstractNewEntityWizard<GrantedAuthorityImpl> {
-
+
private GrantedAuthorityDetailWizardPage authorityPage;
-
+
/* (non-Javadoc)
* @see org.eclipse.jface.wizard.Wizard#addPages()
*/
*/
@Override
protected void saveEntity() {
- CdmStore.getService(IGrantedAuthorityService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IGrantedAuthorityService.class).merge(getEntity());
}
/* (non-Javadoc)
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public class NewGroupWizard extends AbstractNewEntityWizard<Group> {
private GroupDetailWizardPage groupPage;
-
+
/* (non-Javadoc)
* @see org.eclipse.jface.wizard.Wizard#addPages()
*/
groupPage = new GroupDetailWizardPage(formFactory, getConversationHolder(), getEntity());
super.addPage(groupPage);
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard#saveEntity()
*/
@Override
protected void saveEntity() {
- CdmStore.getService(IGroupService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IGroupService.class).merge(getEntity());
}
/* (non-Javadoc)
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public void addPages() {
addPage(new InstitutionWizardPage(formFactory, getConversationHolder(), getEntity()));
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
*/
@Override
protected void saveEntity() {
- CdmStore.getService(IAgentService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IAgentService.class).merge(getEntity());
}
/* (non-Javadoc)
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public void addPages() {
addPage(new NonViralNameWizardPage(formFactory, getConversationHolder(), getEntity()));
}
-
+
/** {@inheritDoc} */
@Override
protected NonViralName createNewEntity() {
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(INameService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(INameService.class).merge(getEntity());
}
@Override
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public void addPages() {
addPage(new PersonWizardPage(formFactory, getConversationHolder(), getEntity()));
}
-
+
/** {@inheritDoc} */
@Override
protected Person createNewEntity() {
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IAgentService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IAgentService.class).merge(getEntity());
}
@Override
/**
- *
+ *
*/
package eu.etaxonomy.taxeditor.newWizard;
public class NewPolytomousKeyWizard extends AbstractNewEntityWizard<PolytomousKey> {
private PolytomousKeyWizardPage polytomousKeyPage;
-
+
@Override
public void addPages() {
polytomousKeyPage = new PolytomousKeyWizardPage(formFactory, getConversationHolder(), getEntity());
super.addPage(polytomousKeyPage);
}
-
+
public String getPolytomousKeyName() {
return polytomousKeyPage.getPolytomousKeyName();
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
*/
@Override
protected void saveEntity() {
if(!polytomousKeyPage.getPolytomousKeyName().equals("")) {
- CdmStore.getService(IPolytomousKeyService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IPolytomousKeyService.class).merge(getEntity());
}
}
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IPrimerService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IPrimerService.class).merge(getEntity());
}
/** {@inheritDoc} */
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
* @version 1.0
*/
public class NewReferenceWizard extends AbstractNewEntityWizard<Reference> {
-
+
private ReferenceWizardPage referencePage;
-
+
/** {@inheritDoc} */
@Override
public void addPages() {
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IReferenceService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IReferenceService.class).save(getEntity());
}
/** {@inheritDoc} */
// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
public void addPages() {
addPage(new TeamWizardPage(formFactory, getConversationHolder(), getEntity()));
}
-
+
/* (non-Javadoc)
* @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
*/
/** {@inheritDoc} */
@Override
protected void saveEntity() {
- CdmStore.getService(IAgentService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IAgentService.class).merge(getEntity());
}
@Override
/**
- *
+ *
*/
package eu.etaxonomy.taxeditor.newWizard;
public class NewUserWizard extends AbstractNewEntityWizard<User> {
private UserDetailWizardPage userPage;
-
+
@Override
public void addPages() {
userPage = new UserDetailWizardPage(formFactory, getConversationHolder(), getEntity());
addPage(userPage);
}
-
+
@Override
protected void saveEntity() {
- CdmStore.getService(IUserService.class).saveOrUpdate(getEntity());
+ CdmStore.getService(IUserService.class).merge(getEntity());
}
@Override
protected T cdmBaseToBeFiltered;
+
/**
* <p>Constructor for AbstractFilteredCdmResourceSelectionDialog.</p>
*
if (status == IStatus.OK) {
T entity = (T) wizard.getEntity();
+ model.add(new UuidAndTitleCache<T>(entity.getUuid(),
+ entity.getId(),
+ getTitle(entity)));
refresh();
setPattern(entity);
getConversationHolder().bind();