public class CreateAction extends AbstractComponentWidgetAdapterAware implements CockpitAction<Object,Object>
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_ACTION_CONTEXT |
static String |
SETTING_CONTEXT_COMPONENT_NAME |
static String |
SETTING_INITIALIZE_ENTITY |
static String |
SOCKET_INPUT_CREATED_OBJECT |
static String |
SOCKET_OUTPUT_CREATE_CONTEXT |
static String |
SOCKET_OUTPUT_CREATED_OBJECT |
static String |
VALUE_SETTING_TARGET_COMPONENT_CONFIGURABLE_FLOW
Deprecated.
since 6.6
|
static String |
VALUE_SETTING_TARGET_COMPONENT_EDITOR_AREA
Deprecated.
since 6.6
|
| Constructor and Description |
|---|
CreateAction() |
addSocketInputEventListener, getComponentID, handleSocketInputEvent, initialize, registerStubInstance, sendOutput, setComponentID, unregisterStubInstancepublic static final String SOCKET_OUTPUT_CREATE_CONTEXT
public static final String SOCKET_OUTPUT_CREATED_OBJECT
public static final String SOCKET_INPUT_CREATED_OBJECT
public static final String SETTING_INITIALIZE_ENTITY
public static final String SETTING_CONTEXT_COMPONENT_NAME
@Deprecated public static final String VALUE_SETTING_TARGET_COMPONENT_CONFIGURABLE_FLOW
@Deprecated public static final String VALUE_SETTING_TARGET_COMPONENT_EDITOR_AREA
public static final String PARAM_ACTION_CONTEXT
public ActionResult<Object> perform(ActionContext<Object> ctx)
CockpitActionperform in interface CockpitAction<Object,Object>ctx - context containing the data and other informationprotected String findTypeCode(ActionContext<Object> ctx)
@Deprecated protected String getNotificationSource(ActionContext<Object> ctx)
NotificationService.getWidgetNotificationSource(ActionContext) instead.protected void sendConfiguredOutput(ActionContext<Object> ctx, String typeCode) throws ObjectCreationException
ObjectCreationExceptionprotected boolean shouldInitializeEntity(ActionContext<Object> ctx)
public void initializeDefaultEventListeners()
ComponentWidgetAdapterAwareinitializeDefaultEventListeners in interface ComponentWidgetAdapterAwareinitializeDefaultEventListeners in class AbstractComponentWidgetAdapterAwarepublic boolean canPerform(ActionContext<Object> ctx)
CockpitActioncanPerform in interface CockpitAction<Object,Object>ctx - context containing the data and other informationprotected boolean isAllowed(String typeCode)
protected boolean canCreateInstance(DataType type)
public boolean needsConfirmation(ActionContext<Object> ctx)
CockpitActionneedsConfirmation in interface CockpitAction<Object,Object>ctx - context containing the data and other informationpublic String getConfirmationMessage(ActionContext<Object> ctx)
CockpitActionCockpitAction.needsConfirmation(ActionContext)).getConfirmationMessage in interface CockpitAction<Object,Object>ctx - context containing the data and other informationCockpitAction.needsConfirmation(ActionContext)protected PermissionFacade getPermissionFacade()
public void setPermissionFacade(PermissionFacade permissionFacade)
public TypeFacade getTypeFacade()
public void setTypeFacade(TypeFacade typeFacade)
public ObjectFacade getObjectFacade()
public void setObjectFacade(ObjectFacade objectFacade)
public FieldSearchFacade getFieldSearchFacade()
public void setFieldSearchFacade(FieldSearchFacade fieldSearchFacade)
protected NotificationService getNotificationService()
public void setNotificationService(NotificationService notificationService)
Copyright © 2018. All rights reserved.