@SuppressWarnings("serial")
public class DistributionStatusUI extends UI{
+ @SuppressWarnings("unused")
private final static Logger logger = Logger.getLogger(DistributionStatusUI.class);
public static final String NAME = "distribution";
}
- /**
- *
- * {@inheritDoc}
- */
@Override
protected void init(VaadinRequest request) {
/**
* @author a.kohlbecker
* @since Feb 24, 2017
- *
*/
@Theme("edit-valo")
@Title("Registration")
return defaultBeanInstantiator;
}
- /**
- * {@inheritDoc}
- */
@Override
protected Collection loadCdmEntity(UUID identifier) {
List<String> initStrategy = Arrays.asList(new String []{
-
"$",
"institute.$",
"superCollection.$",
return bean;
}
- /**
- * {@inheritDoc}
- */
@Override
protected void guaranteePerEntityCRUDPermissions(UUID identifier) {
if(crud != null){
}
- /**
- * {@inheritDoc}
- */
@Override
protected void guaranteePerEntityCRUDPermissions(Collection bean) {
if(crud != null){
newAuthorityCreated = UserHelperAccess.userHelper().createAuthorityForCurrentUser(bean, crud, null);
}
-
}
- /**
- * {@inheritDoc}
- */
@Override
protected IService<Collection> getService() {
// TODO Auto-generated method stub
return null;
}
- /**
- * {@inheritDoc}
- */
@Override
public void handleViewEntered() {
super.handleViewEntered();
/**
* @author a.kohlbecker
* @since Dec 21, 2017
- *
*/
@SpringComponent
@Scope("prototype")
private static final int GRID_ROWS = 4;
- TextField nameField;
- TextField codeField;
- TextField codeStandardField;
- TextField townOrLocationField;
- ToOneRelatedEntityCombobox<Collection> superCollectionCombobox;
- ToOneRelatedEntityCombobox<Institution> institutionCombobox;
+ private TextField nameField;
+ private TextField codeField;
+ private TextField codeStandardField;
+ private TextField townOrLocationField;
+ private ToOneRelatedEntityCombobox<Collection> superCollectionCombobox;
+ private ToOneRelatedEntityCombobox<Institution> institutionCombobox;
-
- /**
- * @param layout
- * @param dtoType
- */
public CollectionPopupEditor() {
super(new GridLayout(GRID_COLS, GRID_ROWS), Collection.class);
}
- /**
- * {@inheritDoc}
- */
@Override
public String getWindowCaption() {
return "Collection editor";
}
-
-
- /**
- * {@inheritDoc}
- */
@Override
public int getWindowWidth() {
return 500;
}
- /**
- * {@inheritDoc}
- */
@Override
public void focusFirst() {
codeField.focus();
}
- /**
- * {@inheritDoc}
- */
@Override
protected String getDefaultComponentStyles() {
return "tiny";
}
- /**
- * {@inheritDoc}
- */
@Override
protected void initContent() {
/*
);
}
});
-
}
/* ------------------ View Interface methods -------------------- */
/**
* @author a.kohlbecker
* @since Dec 21, 2017
- *
*/
public interface CollectionPopupEditorView extends ApplicationView<CollectionEditorPresenter> {
- ToOneRelatedEntityCombobox<Collection> getSuperCollectionCombobox();
+ public ToOneRelatedEntityCombobox<Collection> getSuperCollectionCombobox();
- ToOneRelatedEntityCombobox<Institution> getInstitutionCombobox();
+ public ToOneRelatedEntityCombobox<Institution> getInstitutionCombobox();
}
/**
* @author a.kohlbecker
* @since Mar 2, 2017
- *
*/
@SpringView(name=DashBoardView.NAME)
public class DashBoardView extends DashBoardDesign implements View {
*
* @author a.kohlbecker
* @since Apr 5, 2017
- *
*/
public abstract class CdmEditorPresenterBase<DTO, CDM extends CdmBase, V extends ApplicationView<?>> extends AbstractEditorPresenter<DTO, V>
implements CachingPresenter {
@Override
protected void deleteBean(DTO bean){
CDM cdmEntity = cdmEntity(bean);
- EntityChangeEvent changeEvent = cdmStore.deleteBean(cdmEntity, (AbstractView) getView());
+ EntityChangeEvent<?> changeEvent = cdmStore.deleteBean(cdmEntity, (AbstractView) getView());
if(changeEvent != null){
viewEventBus.publish(this, changeEvent);
}
}
-
- /**
- * @param crud
- */
public void setGrantsForCurrentUser(EnumSet<CRUD> crud) {
this.crud = crud;
}
- /**
- * {@inheritDoc}
- */
@Override
public ICdmEntityUuidCacher getCache() {
return cache;
}
- /**
- * {@inheritDoc}
- */
@Override
public void addRootEntity(CdmBase entity) {
rootEntities.add(entity);
}
-
- /**
- * {@inheritDoc}
- */
@Override
public Collection<CdmBase> getRootEntities() {
return rootEntities;
}
-
- /**
- * {@inheritDoc}
- */
@Override
public void destroy() throws Exception {
super.destroy();
disposeCache();
}
- /**
- * {@inheritDoc}
- */
@Override
public void disposeCache() {
cache.dispose();
+/**
+* Copyright (C) 2017 EDIT
+* 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.
+*/
package eu.etaxonomy.vaadin.ui.navigation;
import java.util.List;
+/**
+* Copyright (C) 2017 EDIT
+* 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.
+*/
package eu.etaxonomy.vaadin.ui.navigation;
import java.util.Arrays;