notification-portlet-webapp/src/main/java/org/jasig/portlet/notice/service/ssp/SSPTaskNotificationService.java
private void attachActions(PortletRequest request, NotificationEntry entry) {
        PortletPreferences prefs = request.getPreferences();
        String stringVal = prefs.getValue(SSP_NOTIFICATIONS_ENABLE_MARK_COMPLETED, "false");
        boolean enableMarkCompleted = ("true".equalsIgnoreCase(stringVal));

        List<NotificationAction> actions = new ArrayList<>();

        if (enableMarkCompleted) {
            MarkTaskCompletedAction action = new MarkTaskCompletedAction(entry.getId());
            actions.add(action);
        }

        entry.setAvailableActions(actions);
    }
private void attachActions(PortletRequest request, NotificationEntry entry) {
        PortletPreferences prefs = request.getPreferences();
        String stringVal = prefs.getValue(SSP_NOTIFICATIONS_ENABLE_MARK_COMPLETED, "false");
        boolean enableMarkCompleted = ("true".equalsIgnoreCase(stringVal));

        List<NotificationAction> actions = new ArrayList<>();

        if (enableMarkCompleted) {
            MarkTaskCompletedAction action = new MarkTaskCompletedAction(entry.getId());
            actions.add(action);
        }

        entry.setAvailableActions(actions);
    }
private void attachActions ( PortletRequest request , NotificationEntry entry ) { PortletPreferences prefs = request . getPreferences ( ) ; String stringVal = prefs . getValue ( SSP_NOTIFICATIONS_ENABLE_MARK_COMPLETED , "false" ) ; boolean enableMarkCompleted = ( "true" . equalsIgnoreCase ( stringVal ) ) ; List < NotificationAction > actions = new ArrayList <> ( ) ; if ( enableMarkCompleted ) { MarkTaskCompletedAction action = new MarkTaskCompletedAction ( entry . getId ( ) ) ; actions . add ( action ) ; } entry . setAvailableActions ( actions ) ; }
Attach any SSP specific actions to this entry, if enabled.

@param request the portlet request
@param entry the entry
Attach any SSP specific actions to this entry if enabled .