gcube-ckan-datacatalog/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/client/event/PublishOnZenodoEvent.java

50 lines
1.1 KiB
Java
Raw Normal View History

2019-12-09 12:03:51 +01:00
package org.gcube.portlets.gcubeckan.gcubeckandatacatalog.client.event;
import com.google.gwt.event.shared.GwtEvent;
/**
* The Class PublishOnZenodoEvent.
*
* @author Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it)
*
* Dec 9, 2019
*/
public class PublishOnZenodoEvent extends GwtEvent<PublishOnZenodoEventHandler>{
public static Type<PublishOnZenodoEventHandler> TYPE = new Type<PublishOnZenodoEventHandler>();
2020-02-07 11:58:25 +01:00
private String itemId;
2019-12-09 12:03:51 +01:00
2020-02-07 11:58:25 +01:00
2019-12-09 12:03:51 +01:00
/**
2020-02-07 11:58:25 +01:00
* Instantiates a new publish on zenodo event.
2019-12-09 12:03:51 +01:00
*
2020-02-07 11:58:25 +01:00
* @param itemId the item id
2019-12-09 12:03:51 +01:00
*/
2020-02-07 11:58:25 +01:00
public PublishOnZenodoEvent(String itemId) {
this.itemId = itemId;
2019-12-09 12:03:51 +01:00
}
2020-02-07 11:58:25 +01:00
public String getItemId() {
return itemId;
2019-12-09 12:03:51 +01:00
}
/* (non-Javadoc)
* @see com.google.gwt.event.shared.GwtEvent#getAssociatedType()
*/
@Override
public Type<PublishOnZenodoEventHandler> getAssociatedType() {
return TYPE;
}
/* (non-Javadoc)
* @see com.google.gwt.event.shared.GwtEvent#dispatch(com.google.gwt.event.shared.EventHandler)
*/
@Override
protected void dispatch(PublishOnZenodoEventHandler handler) {
handler.onPublishOnZenodo(this);
}
}