Sends a user-action-on-item request.

@param action name of the action performed
@param uid ID of the user
@param iid ID of the item
@param properties a map of properties associated with this action
@param eventTime timestamp of the event
504315
public FutureAPIResponse userActionItemAsFuture(String action, String uid, String iid,
      Map<String, Object> properties, DateTime eventTime) throws IOException {
    return createEventAsFuture(new Event()
        .event(action)
        .entityType("user")
        .entityId(uid)
        .targetEntityType("item")
        .targetEntityId(iid)
        .properties(properties)
        .eventTime(eventTime));
  }
1047394
void idChanged(Date date, String id)
    {
        final String oldId = this.id;

        if (oldId != null && oldId.equals(id))
        {
            return;
        }

        this.id = id;
        firePropertyChange(PROPERTY_ID, oldId, id);
    }
592516
public FutureAPIResponse setItemAsFuture(String iid, Map<String, Object> properties)
      throws IOException {
    return setItemAsFuture(iid, properties, new DateTime());
  }
978898
public static Result onUiAsync(Action action) {
        if (Looper.myLooper() == Looper.getMainLooper()) {
            action.call();
            return new ActionAsyncTask(action, true);
        }
        ActionAsyncTask task = new ActionAsyncTask(action);
        getUiPoster().async(task);
        return task;
    }
20726
public function deleteUser($uid, $eventTime=null)
    {
        $eventTime = $this->getEventTime($eventTime);

        $json = json_encode([
            'event' => '$delete',
            'entityType' => 'user',
            'entityId' => $uid,
            'eventTime' => $eventTime,
        ]);

        return $this->sendRequest('POST', $this->eventUrl, $json);
    }
1019872
@SuppressWarnings("unchecked")
    void onItemClick(MouseEvents.ClickEvent event, Object itemId, Object propertyId) {

        if (!event.isCtrlKey() && !event.isShiftKey()) {

            if (event.getButton().equals(MouseButton.LEFT)) {
                setValue(null);
            }
            changeValueIfNotMultiSelect(itemId);
            // don't interfere with multi-selection using control key
            if (event.getButton().equals(MouseButton.RIGHT) || (propertyId == null)) {
                m_menu.removeAllItems();
                fillContextMenu((Set<Logger>)getValue());
                m_menu.openForTable(event, itemId, propertyId, this);
            }

        }
    }
835083
public void addIndependentAction(I_CmsListAction action) {

        action.setListId(getListId());
        m_indepActions.addIdentifiableObject(action.getId(), action);
    }
314726
@Override
    public void setAction(final Runnable action) {
        super.setAction(new Runnable() {
            @Override
            public void run() {
                if (!isRunning) {
                    thread = new Thread(wrappedAction(action), "wunderboss-daemon-thread[" + name + "]");
                    thread.start();
                    isRunning = true;
                }
            }
        });
    }
496206
@Activate
    protected void activate(Map<String, Object> properties) throws Exception {
        this.host = (String) properties.get("host");
        Integer iiopPort = (Integer) properties.get("iiopPort");
        this.iiopPort = iiopPort == null ? -1 : iiopPort;

        iiopsOptions = Nester.nest("iiopsOptions", properties);
    }
136321
public void addActionComponent( JComponent item )
  {
    if( !SwingUtilities.isEventDispatchThread() )
    {
      throw new RuntimeException( "Whoops!  UpdateNotifier is restricted to the EventDispatch thread." );
    }
    _mapItems.put( item, null );
  }
1069855
public String deleteItem(String iid, DateTime eventTime)
      throws ExecutionException, InterruptedException, IOException {
    return createEvent(deleteItemAsFuture(iid, eventTime));
  }
940538
@Override
    public final void run(final IAction action) {
        if (targetPart == null) {
            return;
        }
        try {
            if (!selection.isEmpty() && (selection instanceof IStructuredSelection)) {
                IStructuredSelection ssel = (IStructuredSelection) selection;
                Object element = ssel.getFirstElement();
                if (element instanceof BugGroup) {
                    final BugGroup group = (BugGroup) element;
                    if (group.getType() == GroupType.Project) {
                        PropertyDialogAction paction = new PropertyDialogAction(new IShellProvider() {
                            @Override
                            public Shell getShell() {
                                return null;
                            }
                        }, new ISelectionProvider() {
                            @Override
                            public void addSelectionChangedListener(ISelectionChangedListener listener) {
                                // noop
                            }

                            @Override
                            public ISelection getSelection() {
                                return new StructuredSelection(group.getData());
                            }

                            @Override
                            public void removeSelectionChangedListener(ISelectionChangedListener listener) {
                                // noop
                            }

                            @Override
                            public void setSelection(ISelection selection) {
                                // noop
                            }
                        });
                        paction.run();
                        return;
                    }
                }
                targetPart.getSite().getPage().showView(IPageLayout.ID_PROP_SHEET);
            }
        } catch (CoreException e) {
            FindbugsPlugin.getDefault().logException(e, "Exception while parsing content of SpotBugs markers.");
        } finally {
            targetPart = null;
        }
    }
796271
private void fireEvent(String action, ESigItem item) {
        if (eventManager != null) {
            eventManager.fireLocalEvent("ESIG." + action, item);
        }
    }
155411
public FutureAPIResponse unsetUserAsFuture(String uid, List<String> properties)
      throws IOException {
    return unsetUserAsFuture(uid, properties, new DateTime());
  }
509137
public ManagerResponse sendAction(ManagerAction action, long timeout)
            throws IOException, TimeoutException, IllegalArgumentException, IllegalStateException
    {
        ResponseHandlerResult result = new ResponseHandlerResult();
        SendActionCallback callbackHandler = new DefaultSendActionCallback(result);

        sendAction(action, callbackHandler);

        // definitely return null for the response of user events
        if (action instanceof UserEventAction)
        {
            return null;
        }

        // only wait if we did not yet receive the response.
        // Responses may be returned really fast.
        if (result.getResponse() == null)
        {
            try
            {
                result.await(timeout);
            }
            catch (InterruptedException ex)
            {
                logger.warn("Interrupted while waiting for result");
                Thread.currentThread().interrupt();
            }
        }

        // still no response?
        if (result.getResponse() == null)
        {
            throw new TimeoutException("Timeout waiting for response to " + action.getAction()
                    + (action.getActionId() == null ? "" : " (actionId: " + action.getActionId() + ")"));
        }

        return result.getResponse();
    }
675714
function (action) {
        var targetID = action.originalTarget.id,
            element = this.targets[targetID]

        if (!element) {
            return
        }

        var actionIndex = element.actions.indexOf(action)

        if (actionIndex == -1) {
            return
        }

        if (this.currentTarget == element) {
            element.currentActionSalvaged = true
        }

        element.actions[actionIndex] = null
        element.actions.splice(actionIndex, 1); // Delete array item

        if (element.actions.length === 0) {
            if (this.currentTarget == element) {
                this.currentTargetSalvaged = true
            }
        }

    }
1336008
@Override
  public void sendUserAuthorizationRequest(JUserAuthorizationRequest request)
      throws InternalException, IllegalDiameterStateException, RouteException, OverloadException {
    send(Event.Type.SEND_MESSAGE, request, null);
  }