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 .