Sets the same intent to be executed when the user taps on the notification
for all the notification statuses.

@param clickIntent {@link android.app.PendingIntent} containing the user's action
@return {@link UploadNotificationConfig}
172784
public final UploadNotificationConfig setClickIntentForAllStatuses(PendingIntent clickIntent) {
        progress.clickIntent = clickIntent;
        completed.clickIntent = clickIntent;
        error.clickIntent = clickIntent;
        cancelled.clickIntent = clickIntent;
        return this;
    }
742224
@SuppressWarnings({"unused", "WeakerAccess"})
    public void showAppInbox(CTInboxStyleConfig styleConfig){

            synchronized (inboxControllerLock) {
                if (ctInboxController == null) {
                    getConfigLogger().debug(getAccountId(), "Notification Inbox not initialized");
                    return;
                }
            }

            // make styleConfig immutable
            final CTInboxStyleConfig _styleConfig = new CTInboxStyleConfig(styleConfig);

            Intent intent = new Intent(context, CTInboxActivity.class);
            intent.putExtra("styleConfig", _styleConfig);
            intent.putExtra("config", config);
            try {
                Activity currentActivity = getCurrentActivity();
                if (currentActivity == null) {
                    throw new IllegalStateException("Current activity reference not found");
                }
                currentActivity.startActivity(intent);
                Logger.d("Displaying Notification Inbox");

            } catch (Throwable t) {
                Logger.v("Please verify the integration of your app." +
                        " It is not setup to support Notification Inbox yet.", t);
            }

    }
123210
public static Intent setupIntentFlags(Intent i) {
    if (Build.VERSION.SDK_INT > Build.VERSION_CODES.HONEYCOMB) {
      i.setFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
    }
    return i;
  }
1065449
protected void updateUploadTarget(String uploadTarget) {

        if (CmsStringUtil.isEmptyOrWhitespaceOnly(uploadTarget)) {
            m_uploadTarget = m_configuration.getUploadFolder();
        } else {
            m_uploadTarget = uploadTarget;
        }
        if (CmsStringUtil.isEmptyOrWhitespaceOnly(m_uploadTarget)) {
            // disable the upload button as no target folder is available
            m_uploadButton.disable(
                org.opencms.ade.upload.client.Messages.get().key(
                    org.opencms.ade.upload.client.Messages.GUI_UPLOAD_BUTTON_NO_TARGET_0));
        } else {
            // make sure the upload button is available
            m_uploadButton.enable();
            ((CmsDialogUploadButtonHandler)m_uploadButton.getButtonHandler()).setTargetFolder(m_uploadTarget);
            m_uploadButton.setTitle(Messages.get().key(Messages.GUI_GALLERY_UPLOAD_TITLE_1, m_uploadTarget));
        }
    }
139720
@SuppressWarnings("unchecked")
    public <T extends IEntity> T upload(T entity, InputStream docContent) throws FMSException {

        IntuitMessage intuitMessage = prepareUpload(entity, docContent);

        //execute interceptors
        executeInterceptors(intuitMessage);

        return (T) getReturnEntity(intuitMessage);
    }
200616
@Override
    public void onNewIntent(Intent intent) {
        super.onNewIntent(intent);

        // Verify OAuth callback
        Uri uri = intent.getData();
        if (uri != null && uri.getScheme().equals(OAUTH_CALLBACK_SCHEME)) {
            String verifier = uri.getQueryParameter(OAuth.OAUTH_VERIFIER);

            new UpworkRetrieveAccessTokenTask().execute(verifier);
        }
    }
74579
public ResponseBuilder addConfirmIntentDirective(Intent updatedIntent) {
        ConfirmIntentDirective confirmIntentDirective = ConfirmIntentDirective.builder()
                .withUpdatedIntent(updatedIntent)
                .build();
        return addDirective(confirmIntentDirective);
    }
152843
public void notifyStart(String projectApiId, String projectVersion, String category) {
		try {
			if (isStarted()) {
				JSONObject startNotification = new JSONObject().
					put("project", new JSONObject().
						put("apiId", projectApiId).
						put("version", projectVersion)
					).
					put("category", category);
				
				socket.emit("run:start", startNotification);
			}
			else {
				LOGGER.log(Level.WARNING, "Probe Dock RT is not available to send the start notification");
			}
		}
		catch (Exception e) {
			LOGGER.log(Level.INFO, "Unable to send the start notification to the agent. Cause: " + e.getMessage());
			
			if (LOGGER.getLevel() == Level.FINEST) {
				LOGGER.log(Level.FINEST, "Exception: ", e);
			}
		}
	}
530271
@Override
    public void onReceive(Context context, Intent intent) {
        String messageId = intent.getStringExtra(ID);
        MFPPush.getInstance().changeStatus(messageId, MFPPushNotificationStatus.DISMISSED);
    }
323161
public static InternalEvent createActivityNotifyMessage(ActivityInstance ai,
            Integer eventType, String masterRequestId, String compCode) {
        InternalEvent event = new InternalEvent();
        event.workId = ai.getActivityId();
        event.transitionInstanceId = null;
        event.eventType = eventType;
        event.ownerType = OwnerType.PROCESS_INSTANCE;
        event.ownerId = ai.getProcessInstanceId();
        event.masterRequestId = masterRequestId;
        event.workInstanceId = ai.getId();
        event.completionCode = compCode;
        return event;
    }
359106
static void requestNotify(Source source) {
        Intent intent = new Intent(source.getContext(), BridgeActivity.class);
        intent.putExtra(KEY_TYPE, BridgeRequest.TYPE_NOTIFY);
        source.startActivity(intent);
    }
1099579
public static boolean isApptentivePushNotification(Map<String, String> data) {
		try {
			if (!ApptentiveInternal.checkRegistered()) {
				return false;
			}
			return ApptentiveInternal.getApptentivePushNotificationData(data) != null;
		} catch (Exception e) {
			ApptentiveLog.e(PUSH, e, "Exception while checking for Apptentive push notification data");
			logException(e);
		}
		return false;
	}
1335235
public T tap(TapOptions tapOptions) {
        ActionParameter action = new ActionParameter("tap", tapOptions);
        parameterBuilder.add(action);
        return (T) this;
    }
1199285
public void setNotificationProject(String notificationProject) {

        m_notificationProject = notificationProject;
        if (CmsLog.INIT.isInfoEnabled()) {
            CmsLog.INIT.info(
                Messages.get().getBundle().key(Messages.INIT_NOTIFICATION_PROJECT_1, m_notificationProject));
        }
    }
1111524
public PendingIntent buildPendingIntent(int requestCode, int flags, IntentFactoryStrategy parameters){
        return PendingIntent.getActivity(context, requestCode, buildIntent(parameters), flags);
    }
140164
private void updateStateAndNotifyListener(UploadState uploadState) throws IOException {
    this.uploadState = uploadState;
    if (progressListener != null) {
      progressListener.progressChanged(this);
    }
  }
1096264
@Override
    public void uploadStarted(final StartedEvent event) {
        // reset internal state here because instance is reused for next upload!
        resetState();

        final SoftwareModule softwareModule = getSelectedSoftwareModule();

        this.fileUploadId = new FileUploadId(event.getFilename(), softwareModule);

        if (getUploadState().isFileInUploadState(this.fileUploadId)) {
            // actual interrupt will happen a bit late so setting the below
            // flag
            interruptUploadDueToDuplicateFile();
            event.getUpload().interruptUpload();
        } else {
            LOG.info("Uploading file {}", fileUploadId);
            publishUploadStarted(fileUploadId);

            if (RegexCharacterCollection.stringContainsCharacter(event.getFilename(), ILLEGAL_FILENAME_CHARACTERS)) {
                LOG.info("Filename contains illegal characters {} for upload {}", fileUploadId.getFilename(),
                        fileUploadId);
                interruptUploadDueToIllegalFilename();
                event.getUpload().interruptUpload();
            } else if (isFileAlreadyContainedInSoftwareModule(fileUploadId, softwareModule)) {
                LOG.info("File {} already contained in Software Module {}", fileUploadId.getFilename(), softwareModule);
                interruptUploadDueToDuplicateFile();
                event.getUpload().interruptUpload();
            }
        }
    }