com.sap.cds.services.mt.UpgradeEventContext Maven / Gradle / Ivy
/**************************************************************************
* (C) 2019-2024 SAP SE or an SAP affiliate company. All rights reserved. *
**************************************************************************/
package com.sap.cds.services.mt;
import java.util.List;
import java.util.Map;
import com.sap.cds.services.EventContext;
import com.sap.cds.services.EventName;
@EventName(DeploymentService.EVENT_UPGRADE)
public interface UpgradeEventContext extends EventContext {
/**
* Creates an {@link EventContext} already overlayed with this interface. The event is set to be
* {@link DeploymentService#EVENT_UPGRADE}
* @return the {@link UpgradeEventContext}
*/
static UpgradeEventContext create() {
return EventContext.create(UpgradeEventContext.class, null);
}
@Override
DeploymentService getService();
/**
* @return the tenant IDs
*/
List getTenants();
/**
* Sets the tenant IDs
* @param tenants the tenant IDs
*/
void setTenants(List tenants);
/**
* @return the optional additional options
*/
Map getOptions();
/**
* Sets the optional additional options
* @param options the optional additional options
*/
void setOptions(Map options);
}